diff options
author | Frank Vibrans <frank.vibrans@amd.com> | 2011-05-05 16:45:36 +0000 |
---|---|---|
committer | Marc Jones <marc.jones@amd.com> | 2011-05-05 16:45:36 +0000 |
commit | ec40260ade7f9d03978f3a15b5c4e8343d3e6065 (patch) | |
tree | 5abee0f352ada1576bfbc50d35cf8813a39891f4 /Makefile.inc | |
parent | 2f81c03d3a0d3183061ca56aecc306995dd648f2 (diff) |
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.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile.inc b/Makefile.inc index 6267539884..ea27dd11fd 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 |