aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-04-19 10:10:13 +0100
committerAlex Bennée <alex.bennee@linaro.org>2022-04-20 16:04:20 +0100
commit544f4a2578f0e8d0269383950499b2dc291f9fcf (patch)
tree63f97fd3f6d0e1ebeac2ccd2b80139872925a4b8 /tests
parenteebf199c09a250fc2e8ad2098b2687857569d9b3 (diff)
downloadqemu-544f4a2578f0e8d0269383950499b2dc291f9fcf.zip
qemu-544f4a2578f0e8d0269383950499b2dc291f9fcf.tar.gz
qemu-544f4a2578f0e8d0269383950499b2dc291f9fcf.tar.bz2
tests/tcg: isolate from QEMU's config-host.mak
Do not include variables for the QEMU's own compiler, as they are not necessarily related to the cross compiler used for tests/tcg. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20220401141326.1244422-16-pbonzini@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220419091020.3008144-19-alex.bennee@linaro.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/tcg/Makefile.target3
-rwxr-xr-xtests/tcg/configure.sh5
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target
index 95499d8..f427a03 100644
--- a/tests/tcg/Makefile.target
+++ b/tests/tcg/Makefile.target
@@ -30,7 +30,7 @@
#
all:
--include ../../../config-host.mak
+-include ../config-host.mak
-include ../config-$(TARGET).mak
# Get semihosting definitions for user-mode emulation
@@ -77,7 +77,6 @@ EXTRA_TESTS=
# Start with a blank slate, the build targets get to add stuff first
CFLAGS=
-QEMU_CFLAGS=
LDFLAGS=
QEMU_OPTS=
diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh
index a577dd7..75603fe 100755
--- a/tests/tcg/configure.sh
+++ b/tests/tcg/configure.sh
@@ -83,6 +83,11 @@ fi
makefile=tests/tcg/Makefile.prereqs
echo "# Automatically generated by configure - do not modify" > $makefile
+config_host_mak=tests/tcg/config-host.mak
+echo "# Automatically generated by configure - do not modify" > $config_host_mak
+echo "SRC_PATH=$source_path" >> $config_host_mak
+echo "HOST_CC=$host_cc" >> $config_host_mak
+
tcg_tests_targets=
for target in $target_list; do
arch=${target%%-*}