Martin L Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69834 )
Change subject: util/testing: Unify cleanup in all targets ......................................................................
util/testing: Unify cleanup in all targets
Instead of having the what-jenkins-does target clean up before building, have it call the test_cleanup target.
Clean the tegra targets.
Remove distclean from test_cleanup target - I don't think that's expected, and people might be upset by having their .config deleted.
Signed-off-by: Martin Roth gaumless@gmail.com Change-Id: Ia9d585df05343365c89e49b1c01dba9ba865003f --- M util/testing/Makefile.inc 1 file changed, 23 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/69834/1
diff --git a/util/testing/Makefile.inc b/util/testing/Makefile.inc index 1a347983..dfb66be 100644 --- a/util/testing/Makefile.inc +++ b/util/testing/Makefile.inc @@ -88,12 +88,10 @@ exit 1; \ fi
-what-jenkins-does: validate_sec_tools - rm -rf $(COREBOOT_BUILD_DIR)/chromeos $(COREBOOT_BUILD_DIR)/default - rm -rf $(COREBOOT_BUILD_DIR)/chromeos-clang $(COREBOOT_BUILD_DIR)/default-clang ifneq ($(JENKINS_SKIP_UNIT_TESTS),y) util/lint/lint lint-stable --junit util/lint/lint lint-extended --junit +what-jenkins-does: test-cleanup validate_sec_tools endif cd 3rdparty/intel-sec-tools/ ; go mod vendor cd util/goswid ; go mod vendor @@ -122,7 +120,6 @@ util/lint/lint lint-extended
test-abuild: - rm -rf coreboot-builds-chromeos coreboot-builds util/abuild/abuild -o $(COREBOOT_BUILD_DIR)/chromeos -B -e $(if $(TEST_NOCCACHE),,-y) -c $(CPUS) -p $(TEST_PAYLOAD) -x util/abuild/abuild -o $(COREBOOT_BUILD_DIR)/default -B -e $(if $(TEST_NOCCACHE),,-y) -c $(CPUS) -p $(TEST_PAYLOAD) util/abuild/abuild -o $(COREBOOT_BUILD_DIR)/chromeos-clang -B -e $(if $(TEST_NOCCACHE),,-y) -c $(CPUS) -p $(TEST_PAYLOAD) -x -L @@ -139,7 +136,6 @@
test-tools: @echo "Build testing $(TOOLLIST)" - $(foreach tool, $(TOOLLIST), $(MAKE) -C util/$(tool) clean ; ) $(foreach tool, $(TOOLLIST), echo "Building $(tool)";export MFLAGS= ;export MAKEFLAGS= ;$(MAKE) -C util/$(tool) all V=$(V) Q=$(Q) || exit 1; ) @echo "Running gitconfig tests" @for test in $$(find util/gitconfig/test -maxdepth 1 \ @@ -149,10 +145,12 @@ done
test-cleanup: - rm -rf coreboot-builds coreboot-builds-chromeos + rm -rf $(COREBOOT_BUILD_DIR)/chromeos $(COREBOOT_BUILD_DIR)/default + rm -rf $(COREBOOT_BUILD_DIR)/chromeos-clang $(COREBOOT_BUILD_DIR)/default-clang $(MAKE) clean - $(MAKE) distclean $(foreach tool, $(TOOLLIST), $(MAKE) -C util/$(tool) clean ; ) + $(MAKE) -C src/soc/nvidia/tegra124/lp0 clean + $(MAKE) -C src/soc/nvidia/tegra210/lp0 clean
.PHONY: test-basic test-lint test-abuild test-payloads .PHONY: test-tools test-cleanup test-help