[Skiboot] [PATCH 1/3] hw/test: generalise makefile
Stewart Smith
stewart at linux.ibm.com
Thu Dec 13 17:07:03 AEDT 2018
Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
hw/test/Makefile.check | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/hw/test/Makefile.check b/hw/test/Makefile.check
index b7b0bce80171..f722ff6e6bcf 100644
--- a/hw/test/Makefile.check
+++ b/hw/test/Makefile.check
@@ -1,18 +1,18 @@
# -*-Makefile-*-
-PHYS_MAP_TEST := hw/test/phys-map-test
+HW_TEST := hw/test/phys-map-test
-.PHONY : hw-phys-map-check
-hw-phys-map-check: $(PHYS_MAP_TEST:%=%-check)
+.PHONY : hw-check
+hw-check: $(HW_TEST:%=%-check)
-check: hw-phys-map-check
+check: hw-check
-$(PHYS_MAP_TEST:%=%-check) : %-check: %
+$(HW_TEST:%=%-check) : %-check: %
$(call Q, RUN-TEST ,$(VALGRIND) $<, $<)
-$(PHYS_MAP_TEST) : % : %.c hw/phys-map.o
+$(HW_TEST) : % : %.c hw/phys-map.o
$(call Q, HOSTCC ,$(HOSTCC) $(HOSTCFLAGS) -O0 -g -I include -I . -o $@ $<, $<)
-clean: hw-phys-map-clean
+clean: hw-clean
-hw-phys-map-clean:
- $(RM) -f hw/test/*.[od] $(PHYS_MAP_TEST)
+hw-clean:
+ $(RM) -f hw/test/*.[od] $(HW_TEST)
--
2.20.0
More information about the Skiboot
mailing list