aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@ieee.org>2014-11-24 17:18:28 -0500
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-11-25 09:20:52 +1100
commit95aa970ccd291dfb86365ca5433ea3e423f01941 (patch)
treee94808ee6e59f5b6f0855cedc20709aea0339ecf
parentc1862061cae04f6fd2c4bd4a723a408a76e8be81 (diff)
downloadskiboot-95aa970ccd291dfb86365ca5433ea3e423f01941.zip
skiboot-95aa970ccd291dfb86365ca5433ea3e423f01941.tar.gz
skiboot-95aa970ccd291dfb86365ca5433ea3e423f01941.tar.bz2
use $(wildcard ) in test Makefiles
The core/test/ and libc/test/ Makefile.check files both contain: -include core/test/*.d (or libc/test/*d) which is incorrect, since that evaluates literally to a *.d file. This results in each build trying to find that file, and creating it when not found (in an incorrect way because of other problems in the Makefile). The correct way to specify it is: -include $(wildcard core/test/*.d) Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r--core/test/Makefile.check2
-rw-r--r--libc/test/Makefile.check2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/test/Makefile.check b/core/test/Makefile.check
index 840ce25..7ffbfc4 100644
--- a/core/test/Makefile.check
+++ b/core/test/Makefile.check
@@ -31,7 +31,7 @@ core/test/stubs.o: core/test/stubs.d
core/test/%.d: core/test/%.c
$(HOSTCC) $(HOSTCFLAGS) -I include -I . -I libfdt -M $< > $@
--include core/test/*.d
+-include $(wildcard core/test/*.d)
clean: core-test-clean
diff --git a/libc/test/Makefile.check b/libc/test/Makefile.check
index 58664a7..dc9f1ff 100644
--- a/libc/test/Makefile.check
+++ b/libc/test/Makefile.check
@@ -24,7 +24,7 @@ $(LIBC_TEST:%=%-gcov): % : $(%.d:-gcov=)
libc/test/%.d: libc/test/%.c
$(HOSTCC) $(HOSTCFLAGS) -I include -I . -I libfdt -I libc/include -M $< > $@
--include libc/test/*.d
+-include $(wildcard libc/test/*.d)
clean: libc-test-clean