[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 01/21] tests/tcg: add softmmu awareness to Makefi
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v4 01/21] tests/tcg: add softmmu awareness to Makefile |
Date: |
Tue, 12 Mar 2019 15:59:27 +0000 |
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
---
tests/tcg/Makefile | 17 ++++++++++++++++-
tests/tcg/Makefile.include | 2 +-
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/tests/tcg/Makefile b/tests/tcg/Makefile
index bf06415390..55feab0f67 100644
--- a/tests/tcg/Makefile
+++ b/tests/tcg/Makefile
@@ -26,7 +26,7 @@
#
# We also accept SPEED=slow to enable slower running tests
#
-# We also expect to be in the tests build dir for the FOO-linux-user.
+# We also expect to be in the tests build dir for the FOO-(linux-user|softmmu).
#
-include ../../config-host.mak
@@ -52,7 +52,11 @@ QEMU_CFLAGS=
LDFLAGS=
# The QEMU for this TARGET
+ifdef CONFIG_USER_ONLY
QEMU=../qemu-$(TARGET_NAME)
+else
+QEMU=../qemu-system-$(TARGET_NAME)
+endif
# If TCG debugging is enabled things are a lot slower
ifeq ($(CONFIG_DEBUG_TCG),y)
@@ -61,6 +65,7 @@ else
TIMEOUT=15
endif
+ifdef CONFIG_USER_ONLY
# The order we include is important. We include multiarch, base arch
# and finally arch if it's not the same as base arch.
-include $(SRC_PATH)/tests/tcg/multiarch/Makefile.target
@@ -77,6 +82,16 @@ endif
%: %.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $< -o $@ $(LDFLAGS)
+else
+# For softmmu targets we include a different Makefile fragement as the
+# build options for bare programs are usually pretty different. They
+# are expected to provide their own build recipes.
+-include $(SRC_PATH)/tests/tcg/$(TARGET_BASE_ARCH)/Makefile.softmmu-target
+ifneq ($(TARGET_BASE_ARCH),$(TARGET_NAME))
+-include $(SRC_PATH)/tests/tcg/$(TARGET_NAME)/Makefile.softmmu-target
+endif
+
+endif
all: $(TESTS)
diff --git a/tests/tcg/Makefile.include b/tests/tcg/Makefile.include
index c581bd6ffc..73b5626fc5 100644
--- a/tests/tcg/Makefile.include
+++ b/tests/tcg/Makefile.include
@@ -67,7 +67,7 @@ endif
ifneq ($(GUEST_BUILD),)
guest-tests: $(GUEST_BUILD)
-run-guest-tests: guest-tests qemu-$(TARGET_NAME)
+run-guest-tests: guest-tests qemu-$(subst
y,system-,$(CONFIG_SOFTMMU))$(TARGET_NAME)
$(call quiet-command, \
(cd tests && $(MAKE) -f $(TCG_MAKE) SPEED=$(SPEED) run), \
"RUN", "tests for $(TARGET_NAME)")
--
2.20.1
- [Qemu-devel] [PATCH v4 00/21] final tcg tests for 4.0, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 10/21] tests/docker: add fedora-cris-cross compilers, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 08/21] tests/tcg/xtensa: enable system tests, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 09/21] tests/tcg/arm: add ARMv6-M UNDEFINED 32-bit instruction test, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 02/21] tests/tcg: enable tcg tests for softmmu, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 07/21] tests/docker: add debian-xtensa-cross image, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 11/21] tests/tcg/cris: cleanup sys.c, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 06/21] tests/tcg/mips: fix hello-mips compilation, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 03/21] tests/tcg: add QEMU_OPT option for test runner, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 01/21] tests/tcg: add softmmu awareness to Makefile,
Alex Bennée <=
- [Qemu-devel] [PATCH v4 12/21] tests/tcg: split cris tests into bare and libc directories, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 13/21] tests/tcg/cris: comment out the ccs test, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 04/21] tests/tcg: split run-test into user and system variants, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 05/21] tests/tcg: add gdb runner variant, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 21/21] .travis.yml: add softmmu check-tcg tests, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 20/21] .travis.yml: separate softfloat from check-tcg, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 18/21] tests/tcg/i386: add memory test to exercise softmmu, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 15/21] tests/tcg: enable cris base user-mode tests, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 14/21] tests/tcg/cris: align mul operations, Alex Bennée, 2019/03/12
- [Qemu-devel] [PATCH v4 19/21] tests/tcg/arm: account for pauth randomness, Alex Bennée, 2019/03/12