[Skiboot] [PATCH] hw/test: include -gcov binaries in clean target

Eric Richter erichte at linux.ibm.com
Wed Sep 4 07:48:16 AEST 2019

This patch fixes an oversight in the hw-clean make target that removes the
.gcno object, but does not remove the -gcovr test binary. Therefore, the
.gcno object is not recreated on a subsequent coverage-report build,
which causes an error that fails the build.

Signed-off-by: Eric Richter <erichte at linux.ibm.com>
 hw/test/Makefile.check | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/test/Makefile.check b/hw/test/Makefile.check
index 1681027a..f9f233c6 100644
--- a/hw/test/Makefile.check
+++ b/hw/test/Makefile.check
@@ -26,4 +26,4 @@ $(HW_TEST:%=%-gcov): %-gcov : %.c %
 clean: hw-clean
-	$(RM) -f hw/test/*.[od] $(HW_TEST)
+	$(RM) -f hw/test/*.[od] $(HW_TEST) $(HW_TEST:%=%-gcov)

More information about the Skiboot mailing list