From a83dfc00d81773ca5d6445be9dcae83490a2b039 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 9 Jun 2011 15:16:05 -0700 Subject: Modify u-boot code to allow building coreboot payload. Two tweaks are required: - prevent the preprocessor from complaining when processing variadic macros - use the bfd linker instead of GOLD BUG=chrome-os-partner:3895 TEST=manual: while in chroot in u-boot-next/files directory run the following commands: rm -rf /tmp/c-u-boot make -j16 ARCH=i386 CROSS_COMPILE=i686-pc-linux-gnu- coreboot-x86_config O=/tmp/c-u-boot make -j16 ARCH=i386 CROSS_COMPILE=i686-pc-linux-gnu- all O=/tmp/c-u-boot observe the build succeed. Change-Id: I028afd9bb7269db8b16730a065dd64d83e5a158a Signed-off-by: Vadim Bendebury Reviewed-on: http://gerrit.chromium.org/gerrit/2425 Reviewed-by: Simon Glass --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2af059c0a6..df2cd12810 100644 --- a/Makefile +++ b/Makefile @@ -509,8 +509,8 @@ $(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h @$(XECHO) Generating $@ ; \ set -e ; \ : Generate the dependancies ; \ - $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(CPPFLAGS) \ - -MQ $(obj)include/autoconf.mk include/common.h > $@ + $(CC) -x c -DDO_DEPS_ONLY -M $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) \ + $(CPPFLAGS) -MQ $(obj)include/autoconf.mk include/common.h > $@ $(obj)include/autoconf.mk: $(obj)include/config.h @$(XECHO) Generating $@ ; \ -- cgit v1.2.3