summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorFrank Vibrans <frank.vibrans@amd.com>2011-05-05 16:45:36 +0000
committerMarc Jones <marc.jones@amd.com>2011-05-05 16:45:36 +0000
commitec40260ade7f9d03978f3a15b5c4e8343d3e6065 (patch)
tree5abee0f352ada1576bfbc50d35cf8813a39891f4 /Makefile.inc
parent2f81c03d3a0d3183061ca56aecc306995dd648f2 (diff)
downloadcoreboot-staging-ec40260ade7f9d03978f3a15b5c4e8343d3e6065.zip
coreboot-staging-ec40260ade7f9d03978f3a15b5c4e8343d3e6065.tar.gz
Remove AMD Agesa requirement for standard include files
This change modifies Makefile.inc to add the -nostdinc flag to the default CFLAGS value and removes the test for non-AMD Agesa builds. Other code is added to the gcc-intrin.h file in the Agesa Include folder to make the requirement for the standard includes obsolete from the Agesa perspective. Signed-off-by: Frank Vibrans <frank.vibrans@amd.com> Acked-by: Marc Jones <marcj303@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6555 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 6267539..ea27dd1 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -106,16 +106,13 @@ INCLUDES += -Isrc/devices/oprom/include
# abspath is a workaround for romcc
INCLUDES += -include $(abspath $(obj)/config.h)
-CFLAGS = $(INCLUDES) -Os -pipe -g
+CFLAGS = $(INCLUDES) -Os -pipe -g -nostdinc
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
additional-dirs := $(objutil)/cbfstool $(objutil)/romcc $(objutil)/options
OpenPOWER on IntegriCloud