[oe-commits] Richard Purdie : ltp: Work around parallel make race
git at git.openembedded.org
git at git.openembedded.org
Sat Mar 1 15:58:19 UTC 2014
Module: openembedded-core.git
Branch: master-next
Commit: 181d8b37508c4167f37921d84d637a4861c45b7d
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=181d8b37508c4167f37921d84d637a4861c45b7d
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Sat Mar 1 15:17:50 2014 +0000
ltp: Work around parallel make race
As per the comments, the makefiles use make -C extensively and
this causes particular problems around the kernel syscall header. We
therefore ensure its up to date in advance.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-extended/ltp/ltp_20140115.bb | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/meta/recipes-extended/ltp/ltp_20140115.bb b/meta/recipes-extended/ltp/ltp_20140115.bb
index 361eccb..b04debf 100644
--- a/meta/recipes-extended/ltp/ltp_20140115.bb
+++ b/meta/recipes-extended/ltp/ltp_20140115.bb
@@ -43,6 +43,14 @@ do_configure_prepend() {
(cd utils/ffsb-6.0-rc2; autoreconf -fvi; ./configure ${CONFIGUREOPTS})
}
+# The makefiles make excessive use of make -C and several include testcases.mk
+# which triggers a build of the syscall header. To reproduce, build ltp,
+# then delete the header, then "make -j XX" and watch regen.sh run multiple
+# times. Its easier to generate this once here instead.
+do_compile_prepend () {
+ ( cd ${S} make -C testcases/kernel include/linux_syscall_numbers.h )
+}
+
do_install(){
install -d ${D}/opt/ltp/
oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install
More information about the Openembedded-commits
mailing list