[LINUXBIOS] Add the CPU_OPT flag to facilitate passing flags into the build
authorJordan Crouse <jordan.crouse@amd.com>
Tue, 30 Oct 2007 17:53:53 +0000 (17:53 +0000)
committerJordan Crouse <jordan.crouse@amd.com>
Tue, 30 Oct 2007 17:53:53 +0000 (17:53 +0000)
buildROM passes build flags through the CPU_OPT environment variable -
especially -fno-stack-protector for those of us lucky enough to have
Debian/Ubuntu.  This adds  to the cache_as_ram_auto.inc target
for the GA-2761GXDK so that the resulting cpu0.S is clean.

Signed-off-by: Jordan Crouse <jordan.crouse@amd.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2911 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/mainboard/gigabyte/ga_2761gxdk/Config.lb

index 46a847f76989e912bb035867eeea9abeb3b7f694..6974de01bc75147c705dd97a2aa699ae25d05443 100644 (file)
@@ -92,7 +92,7 @@ if USE_DCACHE_RAM
        else
                makerule ./cache_as_ram_auto.inc
                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h"
-                       action "$(CC) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
+                       action "$(CC) -I$(TOP)/src -I. $(CPPFLAGS) $(CPU_OPT) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@"
                        action "perl -e 's/.rodata/.rom.data/g' -pi $@"
                        action "perl -e 's/.text/.section .rom.text/g' -pi $@"
                end