Patchwork ltp: Work around parallel make race

mail settings
Submitter Richard Purdie
Date March 1, 2014, 3:17 p.m.
Message ID <1393687070.20876.5.camel@ted>
Download mbox | patch
Permalink /patch/67777/
State New
Headers show


Richard Purdie - March 1, 2014, 3:17 p.m.
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 <>


diff --git a/meta/recipes-extended/ltp/ b/meta/recipes-extended/ltp/
index 361eccb..b04debf 100644
--- a/meta/recipes-extended/ltp/
+++ b/meta/recipes-extended/ltp/
@@ -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
+# which triggers a build of the syscall header. To reproduce, build ltp,
+# then delete the header, then "make -j XX" and watch 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 )
     install -d ${D}/opt/ltp/
     oe_runmake DESTDIR=${D} SKIP_IDCHECK=1 install