[oe-commits] Laurentiu Palcu : elfutils: remove i386_dis.h/x86_64_dis. h compilation targets
git at git.openembedded.org
git at git.openembedded.org
Thu Mar 28 13:53:14 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 0b81ee7df11bcbf02e515b6884e6b2b84c7e3d98
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0b81ee7df11bcbf02e515b6884e6b2b84c7e3d98
Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date: Thu Mar 28 15:51:58 2013 +0200
elfutils: remove i386_dis.h/x86_64_dis.h compilation targets
Since we provide those files manually (i386_gendis, which is needed for
generating those files, has to be run on host and would fail when
compiling for other architectures), the mentioned compilation targets
in libcpu/ are not needed anymore.
This change will avoid a nasty race condition when running "make -jX
install" resulting in a zero size libebl_i386.so file. The issue happens
because, at "make install" time, the *_dis.h prerequisites will be newer
than the target itself, triggering a chain of recompilations while, in
the same time, the binary files are copied to the destination directory.
Hence, the zero sized file...
[YOCTO #4131]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-devtools/elfutils/elfutils_0.148.bb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.148.bb b/meta/recipes-devtools/elfutils/elfutils_0.148.bb
index e8d58fb..9c0a08e 100644
--- a/meta/recipes-devtools/elfutils/elfutils_0.148.bb
+++ b/meta/recipes-devtools/elfutils/elfutils_0.148.bb
@@ -52,7 +52,7 @@ EXTRA_OECONF_append_class-native = " --without-bzlib"
EXTRA_OECONF_append_libc-uclibc = " --enable-uclibc"
do_configure_prepend() {
- sed -i 's:./i386_gendis:echo\ \#:g' ${S}/libcpu/Makefile.am
+ sed -i '/^i386_dis.h:/,+4 {/.*/d}' ${S}/libcpu/Makefile.am
cp ${WORKDIR}/*dis.h ${S}/libcpu
}
More information about the Openembedded-commits
mailing list