[oe-commits] Robert Yang : u-boot-mkimage: fix recompile error

git at git.openembedded.org git at git.openembedded.org
Mon Aug 11 09:56:36 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: b31dd7d1fbdd9165872a31c11c6627549609fcb3
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b31dd7d1fbdd9165872a31c11c6627549609fcb3

Author: Robert Yang <liezhi.yang at windriver.com>
Date:   Wed Aug  6 20:05:22 2014 -0700

u-boot-mkimage: fix recompile error

Fixed:
make: *** No rule to make target `/path/to/sysroot/4.9.0/include/stddef.h', needed by `crc32.o'.  Stop.
make: *** Waiting for unfinished jobs....
ERROR: oe_runmake failed

This happens when upgrade gcc from 4.9.0 to 4.9.1, and the .depend isn't
regenerated when recompile, the content of it are:

[snip]
crc32.o: /path/to/sysroot/4.9.0/include/stddef.h
[snip]

And Makefile includes the .depend file if it exists, so there would be
errors when /path/to/sysroot/4.9.0/include/stddef.h doesn't exist.

Remove .*.d (a few .d files, its Makefile uses this wildcard) will fix
the problem.

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/recipes-bsp/u-boot/u-boot-mkimage_2013.07.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-bsp/u-boot/u-boot-mkimage_2013.07.bb b/meta/recipes-bsp/u-boot/u-boot-mkimage_2013.07.bb
index 2ca6050..93c8102 100644
--- a/meta/recipes-bsp/u-boot/u-boot-mkimage_2013.07.bb
+++ b/meta/recipes-bsp/u-boot/u-boot-mkimage_2013.07.bb
@@ -17,6 +17,9 @@ S = "${WORKDIR}/git"
 EXTRA_OEMAKE = 'HOSTCC="${CC}" HOSTLD="${LD}" HOSTLDFLAGS="${LDFLAGS}" HOSTSTRIP=true'
 
 do_compile () {
+  # Make sure the recompile is OK
+  rm -f ${B}/tools/.depend
+
   oe_runmake tools
 }
 



More information about the Openembedded-commits mailing list