This code fixes a number of build issues related to the AMD Agesa code. The particula...
authorFrank Vibrans <frank.vibrans@amd.com>
Mon, 14 Feb 2011 18:47:37 +0000 (18:47 +0000)
committerMarc Jones <marc.jones@amd.com>
Mon, 14 Feb 2011 18:47:37 +0000 (18:47 +0000)
Signed-off-by: Frank Vibrans <frank.vibrans@amd.com>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6348 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

Makefile
src/arch/x86/init/ldscript_fallback_cbfs.lb

index 35ca0c517ec5229eb8ff88a24c6676d89aa5544d..43be315c89fe5328368be25a44dba6120b6c6e85 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -300,13 +300,16 @@ INCLUDES += -Isrc/devices/oprom/include
 # abspath is a workaround for romcc
 INCLUDES += -include $(abspath $(obj)/config.h)
 
-CFLAGS = $(INCLUDES) -Os -nostdinc -pipe -g
+CFLAGS = $(INCLUDES) -Os -pipe -g
 CFLAGS += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes
 CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs
 CFLAGS += -Wstrict-aliasing -Wshadow
 ifeq ($(CONFIG_WARNINGS_ARE_ERRORS),y)
 CFLAGS += -Werror
 endif
+ifneq ($(CONFIG_AMD_AGESA),y)
+CFLAGS += -nostdinc 
+endif
 CFLAGS += -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer
 
 CBFS_COMPRESS_FLAG:=l
index 480fd32d5df4b185301435f0d868b623bb473690..082b21193c95f9eba83e392ae4c729cb22f8ba12 100644 (file)
@@ -49,5 +49,6 @@ SECTIONS
                *(.comment.*)
                *(.note.*)
        }
-       _bogus = ASSERT((SIZEOF(.bss) + SIZEOF(.data)) == 0, "Do not use global variables in romstage");
+/*     _bogus = ASSERT((SIZEOF(.bss) + SIZEOF(.data)) == 0, "Do not use global variables in romstage"); */
+       _bogus = ASSERT((SIZEOF(.bss)) == 0, "Do not use global variables in romstage"); 
 }