• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión91ad2244b73ce2b98129bc4ac7ea45fa280ccf62 (tree)
Tiempo2022-01-19 01:42:42
AutorPaolo Bonzini <pbonzini@redh...>
CommiterAlex Bennée

Log Message

tests/tcg: use CONFIG_LINUX_USER, not CONFIG_LINUX

The two more or less overlap, because CONFIG_LINUX is a requirement for Linux
user-mode emulation. However, CONFIG_LINUX is technically a host symbol
that applies even to system emulation. Defining CONFIG_LINUX_USER, and
CONFIG_BSD_USER for eventual future use, is cleaner.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20211210084836.25202-1-pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220105135009.1584676-20-alex.bennee@linaro.org>

Cambiar Resumen

Diferencia incremental

--- a/tests/tcg/configure.sh
+++ b/tests/tcg/configure.sh
@@ -225,8 +225,14 @@ for target in $target_list; do
225225 echo "TARGET_NAME=$arch" >> $config_target_mak
226226 echo "target=$target" >> $config_target_mak
227227 case $target in
228- *-linux-user | *-bsd-user)
228+ *-linux-user)
229229 echo "CONFIG_USER_ONLY=y" >> $config_target_mak
230+ echo "CONFIG_LINUX_USER=y" >> $config_target_mak
231+ echo "QEMU=$PWD/qemu-$arch" >> $config_target_mak
232+ ;;
233+ *-bsd-user)
234+ echo "CONFIG_USER_ONLY=y" >> $config_target_mak
235+ echo "CONFIG_BSD_USER=y" >> $config_target_mak
230236 echo "QEMU=$PWD/qemu-$arch" >> $config_target_mak
231237 ;;
232238 *-softmmu)
--- a/tests/tcg/multiarch/Makefile.target
+++ b/tests/tcg/multiarch/Makefile.target
@@ -10,7 +10,7 @@ MULTIARCH_SRC=$(SRC_PATH)/tests/tcg/multiarch
1010 # Set search path for all sources
1111 VPATH += $(MULTIARCH_SRC)
1212 MULTIARCH_SRCS = $(notdir $(wildcard $(MULTIARCH_SRC)/*.c))
13-ifneq ($(CONFIG_LINUX),)
13+ifneq ($(CONFIG_LINUX_USER),)
1414 VPATH += $(MULTIARCH_SRC)/linux
1515 MULTIARCH_SRCS += $(notdir $(wildcard $(MULTIARCH_SRC)/linux/*.c))
1616 endif
--- a/tests/tcg/x86_64/Makefile.target
+++ b/tests/tcg/x86_64/Makefile.target
@@ -8,7 +8,7 @@
88
99 include $(SRC_PATH)/tests/tcg/i386/Makefile.target
1010
11-ifneq ($(CONFIG_LINUX),)
11+ifneq ($(CONFIG_LINUX_USER),)
1212 X86_64_TESTS += vsyscall
1313 TESTS=$(MULTIARCH_TESTS) $(X86_64_TESTS) test-x86_64
1414 else