summaryrefslogtreecommitdiff
path: root/src/devices/device_util.c
diff options
context:
space:
mode:
authorStefan Reinauer <reinauer@chromium.org>2012-07-31 14:52:04 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-11-07 03:57:28 +0100
commitb6e1237978f6aee4516263980f6bcf002d98ef20 (patch)
tree7f558d9c83ce65554484249728cba44741520353 /src/devices/device_util.c
parentd16d576524d3b9346b72b30c5b50cec4712e4cb0 (diff)
Move global variable check to Makefile
Our linker script for romstage checks for global variables and makes the build fail if there are any (on non-AMD systems). This is great, but having the build fail without any indication which variables are global is not very useful. Moving the check to the Makefile allows us to let the linking stage succeed and reveil which variable names end up in the data and bss sections of the binary. To test, add "int foo;" as the first line in src/mainboard/samsung/lumpy/romstage.c and build coreboot for Lumpy. See the build break the following way: LINK cbfs/fallback/romstage_null.debug Forbidden global variables in romstage: 00006a84 B foo Change-Id: I3c8780888f46a6577ffd36bcea317997b4f84f6f Signed-off-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/1692 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marcj303@gmail.com>
Diffstat (limited to 'src/devices/device_util.c')
0 files changed, 0 insertions, 0 deletions