[U-Boot] build breakage with - Fix building tools alone with host compiler patch

Kumar Gala kumar.gala at freescale.com
Fri May 13 08:33:18 CEST 2011


The following commit breaks building MPC8572DS_config (and a lot more):

commit bbc6353c740064c8e0741b772376a1a67a1c3f01
Author: François Revol <revol at free.fr>
Date:   Fri Mar 18 11:03:03 2011 +0000

   Fix building tools alone with host compiler

   - don't include config.h when building with host cc,
   - HOSTCFLAGS was defined with the wrong name, so wasn't used,
   - make sure make finds sources outside of tools/.

   Signed-off-by: Fran?ois Revol <revol at free.fr>

we get:

/local/home/galak/git/u-boot-85xx/common/env_embedded.c:28:20: error: config.h: No such file or directory
/local/home/galak/git/u-boot-85xx/common/env_embedded.c:30:25: error: environment.h: No such file or directory
/local/home/galak/git/u-boot-85xx/common/image.c:27:20: error: common.h: No such file or directory
/local/home/galak/git/u-boot-85xx/common/image.c:28:22: error: watchdog.h: No such file or directory
/local/home/galak/git/u-boot-85xx/common/image.c:46:19: error: image.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/crc32.c:12:20: error: common.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/crc32.c:14:22: error: compiler.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/crc32.c:15:24: error: u-boot/crc.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/crc32.c:20:25: error: u-boot/zlib.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/md5.c:28:22: error: compiler.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/md5.c:31:20: error: common.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/md5.c:32:22: error: watchdog.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/md5.c:34:24: error: u-boot/md5.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/sha1.c:33:20: error: common.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/sha1.c:38:22: error: watchdog.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/sha1.c:39:18: error: sha1.h: No such file or directory
/local/home/galak/git/u-boot-85xx/tools/bmp_logo.c:1:22: error: compiler.h: No such file or directory
/local/home/galak/git/u-boot-85xx/tools/envcrc.c:35:20: error: config.h: No such file or directory
In file included from /local/home/galak/git/u-boot-85xx/tools/img2srec.c:55:
/local/home/galak/git/u-boot-85xx/tools/os_support.h:22:22: error: compiler.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt.c:51:24: error: libfdt_env.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt.c:54:17: error: fdt.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt.c:55:20: error: libfdt.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_ro.c:51:24: error: libfdt_env.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_ro.c:54:17: error: fdt.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_ro.c:55:20: error: libfdt.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_rw.c:51:24: error: libfdt_env.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_rw.c:54:17: error: fdt.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_rw.c:55:20: error: libfdt.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_strerror.c:51:24: error: libfdt_env.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_strerror.c:54:17: error: fdt.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_strerror.c:55:20: error: libfdt.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_wip.c:51:24: error: libfdt_env.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_wip.c:54:17: error: fdt.h: No such file or directory
/local/home/galak/git/u-boot-85xx/lib/libfdt/fdt_wip.c:55:20: error: libfdt.h: No such file or directory
make[1]: *** No rule to make target `.depend', needed by `_depend'.  Stop.

Issue looks to be with HOSTCFLAGS.  Not sure if rules.mk needs updating or what.

- k


More information about the U-Boot mailing list