coreboot-kgpe-d16/src/arch/x86
Stefan Reinauer b6e1237978 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>
2012-11-07 03:57:28 +01:00
..
acpi After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00
boot acpi: Add support for DMAR tables (Intel IOMMU support) 2012-11-06 22:25:29 +01:00
include acpi: Add support for DMAR tables (Intel IOMMU support) 2012-11-06 22:25:29 +01:00
init Move global variable check to Makefile 2012-11-07 03:57:28 +01:00
lib Fix reading of number of interrupts for IO-APICs 2012-10-29 09:36:33 +01:00
llshell llshell: fix build without romcc 2012-06-14 21:21:06 +02:00
coreboot_ram.ld After this has been brought up many times before, rename src/arch/i386 to 2010-12-11 20:33:41 +00:00
Kconfig hpet: common ACPI generation 2012-10-08 21:23:08 +02:00
Makefile.inc Move global variable check to Makefile 2012-11-07 03:57:28 +01:00