mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
tests: simplify Makefile invocation for tests/tcg
Remove the DOCKER_SCRIPT and TARGET variable from the Makefile invocation for tests/tcg. For DOCKER_SCRIPT, resolve the path to docker.py in configure; for TARGET, move it to config-$(TARGET).mak and use a symbolic link to break the cycle. The symbolic link is still needed because tests/tcg includes dummy config files for targets that are not buildable. Once that is cleaned up, the symbolic link will go away too. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20220929114231.583801-20-alex.bennee@linaro.org>
This commit is contained in:
parent
c4575b5915
commit
a3e28f81fd
3 changed files with 18 additions and 16 deletions
|
@ -50,23 +50,20 @@ $(foreach TARGET,$(TCG_TESTS_TARGETS), \
|
|||
.PHONY: $(TCG_TESTS_TARGETS:%=build-tcg-tests-%)
|
||||
$(TCG_TESTS_TARGETS:%=build-tcg-tests-%): build-tcg-tests-%: $(BUILD_DIR)/tests/tcg/config-%.mak
|
||||
$(call quiet-command, \
|
||||
$(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS) \
|
||||
DOCKER_SCRIPT="$(DOCKER_SCRIPT)" \
|
||||
TARGET="$*" SRC_PATH="$(SRC_PATH)", \
|
||||
$(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS), \
|
||||
"BUILD","$* guest-tests")
|
||||
|
||||
.PHONY: $(TCG_TESTS_TARGETS:%=run-tcg-tests-%)
|
||||
$(TCG_TESTS_TARGETS:%=run-tcg-tests-%): run-tcg-tests-%: build-tcg-tests-%
|
||||
$(call quiet-command, \
|
||||
$(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS) \
|
||||
TARGET="$*" SRC_PATH="$(SRC_PATH)" SPEED=$(SPEED) run, \
|
||||
SPEED=$(SPEED) run, \
|
||||
"RUN", "$* guest-tests")
|
||||
|
||||
.PHONY: $(TCG_TESTS_TARGETS:%=clean-tcg-tests-%)
|
||||
$(TCG_TESTS_TARGETS:%=clean-tcg-tests-%): clean-tcg-tests-%:
|
||||
$(call quiet-command, \
|
||||
$(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS) \
|
||||
TARGET="$*" SRC_PATH="$(SRC_PATH)" clean, \
|
||||
$(MAKE) -C tests/tcg/$* -f ../Makefile.target $(SUBDIR_MAKEFLAGS) clean, \
|
||||
"CLEAN", "$* guest-tests")
|
||||
|
||||
.PHONY: build-tcg
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
all:
|
||||
-include ../config-host.mak
|
||||
-include ../config-$(TARGET).mak
|
||||
-include config-target.mak
|
||||
|
||||
# Get semihosting definitions for user-mode emulation
|
||||
ifeq ($(filter %-softmmu, $(TARGET)),)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue