Refine make tests_clean target
Remove some redundancy, and also clean up *.test.dt.yaml files generated during the tests. Also add the latter to gitignore. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>main
parent
99284c4db9
commit
d45bf1f5f2
|
@ -1,6 +1,7 @@
|
||||||
*.dtb
|
*.dtb
|
||||||
*.dts.test.s
|
*.dts.test.s
|
||||||
*.test.dts
|
*.test.dts
|
||||||
|
*.test.dt.yaml
|
||||||
tmp.*
|
tmp.*
|
||||||
/fs/
|
/fs/
|
||||||
/add_subnode_with_nops
|
/add_subnode_with_nops
|
||||||
|
|
|
@ -47,8 +47,9 @@ TESTS_TARGETS = $(TESTS) $(TESTS_TREES)
|
||||||
TESTS_DEPFILES = $(TESTS:%=%.d) \
|
TESTS_DEPFILES = $(TESTS:%=%.d) \
|
||||||
$(addprefix $(TESTS_PREFIX),testutils.d trees.d dumptrees.d)
|
$(addprefix $(TESTS_PREFIX),testutils.d trees.d dumptrees.d)
|
||||||
|
|
||||||
TESTS_CLEANFILES_L = *.output vglog.* vgcore.* *.dtb *.test.dts *.dtsv1 tmp.*
|
TESTS_CLEANFILES_L = $(STD_CLEANFILES) \
|
||||||
TESTS_CLEANFILES_L += dumptrees
|
*.dtb *.test.dts *.test.dt.yaml *.dtsv1 tmp.* \
|
||||||
|
dumptrees
|
||||||
TESTS_CLEANFILES = $(TESTS) $(TESTS_CLEANFILES_L:%=$(TESTS_PREFIX)%)
|
TESTS_CLEANFILES = $(TESTS) $(TESTS_CLEANFILES_L:%=$(TESTS_PREFIX)%)
|
||||||
TESTS_CLEANDIRS_L = fs
|
TESTS_CLEANDIRS_L = fs
|
||||||
TESTS_CLEANDIRS = $(TESTS_CLEANDIRS_L:%=$(TESTS_PREFIX)%)
|
TESTS_CLEANDIRS = $(TESTS_CLEANDIRS_L:%=$(TESTS_PREFIX)%)
|
||||||
|
@ -76,7 +77,6 @@ $(TESTS_TREES): $(TESTS_PREFIX)dumptrees
|
||||||
|
|
||||||
tests_clean:
|
tests_clean:
|
||||||
@$(VECHO) CLEAN "(tests)"
|
@$(VECHO) CLEAN "(tests)"
|
||||||
rm -f $(STD_CLEANFILES:%=$(TESTS_PREFIX)%)
|
|
||||||
rm -f $(TESTS_CLEANFILES)
|
rm -f $(TESTS_CLEANFILES)
|
||||||
rm -rf $(TESTS_CLEANDIRS)
|
rm -rf $(TESTS_CLEANDIRS)
|
||||||
|
|
||||||
|
@ -97,4 +97,3 @@ checkv: tests ${TESTS_BIN} $(TESTS_PYLIBFDT)
|
||||||
ifneq ($(DEPTARGETS),)
|
ifneq ($(DEPTARGETS),)
|
||||||
-include $(TESTS_DEPFILES)
|
-include $(TESTS_DEPFILES)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue