diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-08-06 20:05:22 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-11 10:53:06 +0100 |
commit | f0c004089dbf98e0421f50cc975d290c4127d3f9 (patch) | |
tree | a1f8538698634c6df34320bdc8cf5e075c1d4974 /meta/recipes-devtools/syslinux | |
parent | 8371105be5af4ba88b6b4c862eb7cad852922cf1 (diff) | |
download | poky-f0c004089dbf98e0421f50cc975d290c4127d3f9.tar.gz |
syslinux: fix reinstall error
Fixed:
make: *** No rule to make target `/path/to/sysroot/4.9.0/include/stdarg.h', needed by `cpio.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 .cpio.o.d isn't
regenerated when recompile (the compile happens when do_install), the content
of it are:
[snip]
cpio.o: /path/to/sysroot/4.9.0/include/stdarg.h
[snip]
And Makefile includes the .cpio.o.d file if it exists, so there would be
errors when /path/to/sysroot/4.9.0/include/stdarg.h doesn't exist.
Remove .*.d (a few .d files, its Makefile uses this wildcard) will fix
the problem.
(From OE-Core rev: f7dc6e801bba897fd4709a2f4fb0e7dbc198497a)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/syslinux')
-rw-r--r-- | meta/recipes-devtools/syslinux/syslinux_6.01.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/syslinux/syslinux_6.01.bb b/meta/recipes-devtools/syslinux/syslinux_6.01.bb index e8a1fd4ffe..2377cc0047 100644 --- a/meta/recipes-devtools/syslinux/syslinux_6.01.bb +++ b/meta/recipes-devtools/syslinux/syslinux_6.01.bb | |||
@@ -45,6 +45,10 @@ do_configure() { | |||
45 | } | 45 | } |
46 | 46 | ||
47 | do_compile() { | 47 | do_compile() { |
48 | # Make sure the recompile is OK. | ||
49 | # Though the ${B} should always exist, still check it before find and rm. | ||
50 | [ -d "${B}" ] && find ${B} -name '.*.d' -type f -exec rm -f {} \; | ||
51 | |||
48 | # Rebuild only the installer; keep precompiled bootloaders | 52 | # Rebuild only the installer; keep precompiled bootloaders |
49 | # as per author's request (doc/distrib.txt) | 53 | # as per author's request (doc/distrib.txt) |
50 | oe_runmake CC="${CC} ${CFLAGS}" LDFLAGS="${LDFLAGS}" firmware="bios" installer | 54 | oe_runmake CC="${CC} ${CFLAGS}" LDFLAGS="${LDFLAGS}" firmware="bios" installer |