diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2011-06-09 15:16:05 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:39:23 -0700 |
commit | a83dfc00d81773ca5d6445be9dcae83490a2b039 (patch) | |
tree | c95a81c954767b6bcae440e3fc010b9b48698e82 /Makefile | |
parent | d163e35c341f08091813cae034eb7daf4a583ee2 (diff) |
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 <vbendeb@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/2425
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 $@ ; \ |