Skip to content

Commit

Permalink
tests/tcg: isolate from QEMU's config-host.mak
Browse files Browse the repository at this point in the history
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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
bonzini authored and stsquad committed Apr 20, 2022
1 parent eebf199 commit 544f4a2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -2937,7 +2937,6 @@ echo "GENISOIMAGE=$genisoimage" >> $config_host_mak
echo "MESON=$meson" >> $config_host_mak
echo "NINJA=$ninja" >> $config_host_mak
echo "CC=$cc" >> $config_host_mak
echo "HOST_CC=$host_cc" >> $config_host_mak
echo "AR=$ar" >> $config_host_mak
echo "AS=$as" >> $config_host_mak
echo "CCAS=$ccas" >> $config_host_mak
Expand Down Expand Up @@ -3057,7 +3056,7 @@ done
(for i in $cross_cc_vars; do
export $i
done
export target_list source_path use_containers cpu
export target_list source_path use_containers cpu host_cc
$source_path/tests/tcg/configure.sh)

# temporary config to build submodules
Expand Down
3 changes: 1 addition & 2 deletions tests/tcg/Makefile.target
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#

all:
-include ../../../config-host.mak
-include ../config-host.mak
-include ../config-$(TARGET).mak

# Get semihosting definitions for user-mode emulation
Expand Down Expand Up @@ -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=
Expand Down
5 changes: 5 additions & 0 deletions tests/tcg/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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%%-*}
Expand Down

0 comments on commit 544f4a2

Please sign in to comment.