]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
tests/tcg: don't include multiarch tests if not supported
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 25 Jul 2025 15:45:12 +0000 (16:45 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Sat, 26 Jul 2025 22:04:35 +0000 (23:04 +0100)
We are about to change the way the plugin runs are done and having
this included by default will complicate things.

Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-ID: <20250725154517.3523095-10-alex.bennee@linaro.org>

tests/tcg/Makefile.target
tests/tcg/multiarch/system/Makefile.softmmu-target

index 97ebe8f9bc9e8dc76e7266c8a88edbfd6b834888..a12b15637ea5e8eed00e20ceb8d35b3859eeade6 100644 (file)
@@ -127,8 +127,14 @@ else
 # build options for bare programs are usually pretty different. They
 # are expected to provide their own build recipes.
 EXTRA_CFLAGS += -ffreestanding -fno-stack-protector
+
+# We skip the multiarch tests if the target hasn't provided a boot.S
+MULTIARCH_SOFTMMU_TARGETS = i386 alpha aarch64 arm loongarch64 s390x x86_64
+
+ifneq ($(filter $(TARGET_NAME),$(MULTIARCH_SOFTMMU_TARGETS)),)
 -include $(SRC_PATH)/tests/tcg/minilib/Makefile.target
 -include $(SRC_PATH)/tests/tcg/multiarch/system/Makefile.softmmu-target
+endif
 -include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.softmmu-target
 
 endif
index 07be001102bd5de0e33c3f92c14932ed1714492f..5acf2700812385e8862db7a75b8d0522a71df50c 100644 (file)
@@ -6,6 +6,11 @@
 # architecture to add to the test dependencies and deal with the
 # complications of building.
 #
+# To support the multiarch guests the target arch needs to provide a
+# boot.S that jumps to main and provides a __sys_outc functions.
+# Remember to update MULTIARCH_SOFTMMU_TARGETS in the tcg test
+# Makefile.target when this is done.
+#
 
 MULTIARCH_SRC=$(SRC_PATH)/tests/tcg/multiarch
 MULTIARCH_SYSTEM_SRC=$(MULTIARCH_SRC)/system