summaryrefslogtreecommitdiffstats
path: root/recipes-extended/ltp/ltp/regen-makefile.patch
blob: 3e114a1d85a5b97fdfdeefd2089e9a9f392c1609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Fix the dependencies for linux_syscall_numbers.h where in a parallel build it was
finding the temporary file linux_syscall_numbers.h.[pid].sh (where sh is an
architecture name).  Instead don't wildcard *.sh as the only .sh we care about
here is regen.sh, so hard-code that.

Upstream-Status: Pending
Signed-off-by: Ross Burton <ross.burton@intel.com>

diff --git a/testcases/kernel/include/Makefile b/testcases/kernel/include/Makefile
index db21a2a..585eb5e 100644
--- a/testcases/kernel/include/Makefile
+++ b/testcases/kernel/include/Makefile
@@ -28,7 +28,7 @@ INSTALL_DIR		:= $(includedir)
 
 MAKE_TARGETS		:= linux_syscall_numbers.h
 
-linux_syscall_numbers.h: $(wildcard $(abs_srcdir)/*.sh $(abs_srcdir)/*.in)
-	$(SHELL) "$(abs_srcdir)/regen.sh"
+linux_syscall_numbers.h: $(abs_srcdir)/regen.sh $(wildcard $(abs_srcdir)/*.in)
+	$(SHELL) "$<"
 
 include $(top_srcdir)/include/mk/generic_leaf_target.mk