[Skiboot] [PATCH v2 01/52] libflash/test: Generate header dependencies for tests

Andrew Jeffery andrew at aj.id.au
Thu Feb 21 17:28:00 AEDT 2019


Cc: stable
Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
---
 libflash/test/Makefile.check | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libflash/test/Makefile.check b/libflash/test/Makefile.check
index f5ed1ee7c3dd..1e55237193f0 100644
--- a/libflash/test/Makefile.check
+++ b/libflash/test/Makefile.check
@@ -30,7 +30,7 @@ check_PROGRAMS = \
 	libflash/test/test-ecc \
 	libflash/test/test-mbox
 
-TEST_FLAGS = -D__TEST__
+TEST_FLAGS = -D__TEST__ -MMD -MP
 
 .PHONY: libflash-check libflash-coverage
 libflash-check: $(check_PROGRAMS:%=%-check) $(CORE_TEST:%=%-gcov-run)
@@ -162,3 +162,6 @@ libflash-test-gcov-clean:
 	$(RM) $(GCOV_OBJ_STEMS:%=%.d)
 	$(RM) $(GCOV_OBJ_STEMS:%=%.gcda)
 	$(RM) $(GCOV_OBJ_STEMS:%=%.gcno)
+
+-include $(patsubst %,%.d,$(call objstem,$(check_PROGRAMS),$(HOST_TRIPLE)/))
+-include $(patsubst %,%.d,$(call objstem,$(check_PROGRAMS),$(HOST_TRIPLE)/gcov/))
-- 
2.19.1



More information about the Skiboot mailing list