Skip to content

Commit

Permalink
libflash/test: Generate header dependencies for tests
Browse files Browse the repository at this point in the history
[ Upstream commit 0dec1de ]

Cc: stable
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
  • Loading branch information
amboar authored and Vasant Hegde committed Mar 4, 2019
1 parent 44f9087 commit 5d07d06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libflash/test/Makefile.check
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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/))

0 comments on commit 5d07d06

Please sign in to comment.