configure deprecation, linux-user and iotest fixes
v2 cover configure deprecation, linux-user and iotest fixes
Hi,
This series contains the previously posted linux-user fix for dealing with weird mmap semantics as well as some tweaks to configure. Since last version I've included Max's latest iotest update as well as re-factored the configure logic. I've also added a patch for to deprecate lm32 and unicore32 from configure.
Most need review:
- configure: add [lm32|unicore32]-softmmu to deprecation logic
- configure: include tilegx-linux-user in the deprecation logic
- configure: clean-up the target-list-exclude logic
- configure: also skip deprecated targets with target-list-exclude
- configure: move deprecated feature processing to supported_target
- linux-user: test, don't assert addr != test in pgb_reserved_va
Alex Bennée (7):
linux-user: test, don't assert addr != test in pgb_reserved_va
configure: move deprecated feature processing to supported_target
configure: also skip deprecated targets with target-list-exclude
configure: clean-up the target-list-exclude logic
configure: include tilegx-linux-user in the deprecation logic
gitlab: create a build-deprecated target
configure: add [lm32|unicore32]-softmmu to deprecation logic
Max Reitz (1):
iotests: Drop readlink -f
configure | 33 ++++++++++++++++++--------------- linux-user/elfload.c | 9 ++++----- .gitlab-ci.yml | 15 +++++++++++++-- .shippable.yml | 2 +- .travis.yml | 3 +-- tests/qemu-iotests/check | 2 +- 6 files changed, 38 insertions(+), 26 deletions(-)
Signature · 1 line
2.20.1
PATCH v2 1/8 linux-user: test, don't assert addr != test in pgb_reserved_va
On older kernels which don't implement MAP_FIXED_NOREPLACE the kernel may still fail to give us the address we asked for despite having already probed the map for a valid hole. Asserting isn't particularly useful to the user so let us move the check up and expand the error_report a little to give them a fighting chance of working around the problem.
Ameliorates: ee94743034
--- linux-user/elfload.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
linux-user/elfload.c +4 -5
@@ -2331,14 +2331,13 @@ static void pgb_reserved_va(const char *image_name, abi_ulong guest_loaddr,assert (guest_base !=0 ); test =g2h (0 ); addr =mmap (test, reserved_va,PROT_NONE , flags,-1 ,0 ); -if (addr ==MAP_FAILED ) { +if (addr ==MAP_FAILED || addr != test) {error_report ("Unable to reserve 0x%lx bytes of virtual address " -"space (%s) for use as guest address space (check your " -"virtual memory ulimit setting or reserve less " -"using -R option)" , reserved_va,strerror (errno)); +"space at %p (%s) for use as guest address space (check your" +"virtual memory ulimit setting, min_mmap_addr or reserve less " +"using -R option)" , reserved_va, test,strerror (errno));exit (EXIT_FAILURE ); } -assert (addr == test); } void probe_guest_base(const char *image_name, abi_ulong guest_loaddr,
Signature · 1 line
2.20.1
Re: [PATCH v2 1/8] linux-user: test, don't assert addr != test in pgb_reserved_va
Le 15/09/2020 à 15:43, Alex Bennée a écrit :
Quoted 28 lines
On older kernels which don't implement
MAP_FIXED_NOREPLACEthe kernel may still fail to give us the address we asked for despite having already probed the map for a valid hole. Asserting isn't particularly useful to the user so let us move the check up and expand theerror_reporta little to give them a fighting chance of working around the problem.Ameliorates:
ee94743034Cc Bug 1895080 <[email protected]>Signed-off-by Alex Bennée <[email protected]>--- linux-user/elfload.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)linux-user/elfload.c +1
-3@@ -2331,14 +2331,13 @@ static void pgb_reserved_va(const char *image_name, abi_ulong guest_loaddr,assert (guest_base !=0 ); test =g2h (0 ); addr =mmap (test, reserved_va,PROT_NONE , flags,-1 ,0 ); -if (addr ==MAP_FAILED ) { +if (addr ==MAP_FAILED || addr != test) { error_report("Unable to reserve 0x%lx bytes of virtual address " -"space (%s) for use as guest address space (check your " - "virtual memory ulimit setting or reserve less "
linux-user/elfload.c static void pgb_reserved_va(const char *image_name, abi_ulong guest_loaddr, · line 2343
Quoted 10 lines
linux-user/elfload.c +3
-2- "using -R option)", reserved_va, strerror(errno)); +"space at %p (%s) for use as guest address space (check your" +"virtual memory ulimit setting, min_mmap_addr or reserve less " + "using -R option)", reserved_va, test, strerror(errno));exit (EXIT_FAILURE ); } -assert (addr == test); } void probe_guest_base(const char *image_name, abi_ulong guest_loaddr,
Re: [PATCH v2 1/8] linux-user: test, don't assert addr != test in pgb_reserved_va
In reply to Alex BennéeQuoted 7 lines · Alex Bennée
On older kernels which don't implement
MAP_FIXED_NOREPLACEthe kernel may still fail to give us the address we asked for despite having already probed the map for a valid hole. Asserting isn't particularly useful to the user so let us move the check up and expand theerror_reporta little to give them a fighting chance of working around the problem.
Quoted 6 lines
Ameliorates:
ee94743034Cc Bug 1895080 <[email protected]>Signed-off-by Alex Bennée <[email protected]>--- linux-user/elfload.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
r~
PATCH v2 2/8 iotests: Drop readlink -f
In reply to Alex BennéeFrom: Max Reitz <[email protected]>
On macOS, (out of the box) readlink does not have -f. We do not really need readlink here, though, it was just a replacement for realpath (which is not available on our BSD test systems), which we needed to make the $(dirname) into an absolute path.
Instead of using either, just use "cd; pwd" like is done for $source_iotests.
("iotests: Allow running from different directory")
Message-Id: <[email protected]>
--- tests/qemu-iotests/check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/check +1 -1
@@ -44,7 +44,7 @@ then _init_error "failed to obtain source tree name from check symlink" fi source_iotests=$(cd "$source_iotests"; pwd) || _init_error "failed to enter source tree" - build_iotests=$(readlink -f $(dirname "$0")) + build_iotests=$(cd "$(dirname "$0")"; pwd) else # called from the source tree source_iotests=$PWD
Signature · 1 line
2.20.1
Re: [PATCH v2 2/8] iotests: Drop readlink -f
Quoted 17 lines · Alex Bennée
From: Max Reitz <[email protected]>
On macOS, (out of the box) readlink does not have -f. We do not really need readlink here, though, it was just a replacement for realpath (which is not available on our BSD test systems), which we needed to make the $(dirname) into an absolute path.
Instead of using either, just use "cd; pwd" like is done for $source_iotests.
("iotests: Allow running from different directory")
Fixes b1cbc33a3971b6bb005d5ac3569feae35a71de0fReported-by Claudio Fontana <[email protected]>Reported-by Thomas Huth <[email protected]>Suggested-by Peter Maydell <[email protected]>Signed-off-by Max Reitz <[email protected]>
Quoted 5 lines
Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>--- tests/qemu-iotests/check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
r~
PATCH v2 3/8 configure: move deprecated feature processing to supported_target
In reply to Alex BennéeThis is the common point at which we validate targets so it makes sense to add_to deprecated_features here. It will make future target deprecation easier as we only need to tweak one list.
--- configure | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
configure +10 -4
@@ -280,6 +280,9 @@ supported_whpx_target() { return 1 } +deprecated_targets_list=ppc64abi32-linux-user +deprecated_features="" + supported_target() { case "$1" in *-softmmu)
@@ -301,6 +304,12 @@ supported_target() { return 1 ;; esac + + # if a deprecated target is enabled we note it here + if echo "$deprecated_targets_list" | grep -q "$1"; then + add_to deprecated_features $1 + fi + test "$tcg" = "yes" && return 0 supported_kvm_target "$1" && return 0 supported_xen_target "$1" && return 0
@@ -542,8 +551,6 @@ gettext="" bogus_os="no" malloc_trim="" -deprecated_features="" - # parse CC options first for opt do optarg=$(expr "x$opt" : 'x[^=]*=\(.*\)')
@@ -1724,7 +1731,7 @@ fi if test -z "$target_list_exclude" -a -z "$target_list"; then # if the user doesn't specify anything lets skip deprecating stuff - target_list_exclude=ppc64abi32-linux-user + target_list_exclude=$deprecated_targets_list fi exclude_list=$(echo "$target_list_exclude" | sed -e 's/,/ /g')
@@ -7668,7 +7675,6 @@ case "$target_name" in TARGET_SYSTBL_ABI=common,nospu,32 echo "TARGET_ABI32=y" >> $config_target_mak gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" - deprecated_features="ppc64abi32 ${deprecated_features}" ;; riscv32) TARGET_BASE_ARCH=riscv
Signature · 1 line
2.20.1
Re: [PATCH v2 3/8] configure: move deprecated feature processing to supported_target
configure supported_target() { · line 311
Quoted 13 lines · Alex Bennée
This is the common point at which we validate targets so it makes sense to
add_todeprecated_featureshere. It will make future target deprecation easier as we only need to tweak one list.Signed-off-by Alex Bennée <[email protected]>--- configure | 14 ++++++++++----configure +5
-0+ + # if a deprecated target is enabled we note it here + if echo "$deprecated_targets_list" | grep -q "$1"; then + add_to deprecated_features $1 + fi
case " $deprecated_targets_list " in (*" $1 "*) add_to deprecated_features $1;; esac
JFYI, - there's nothing wrong with echo|grep, it will work about the same way.. :)
/mjt
PATCH v2 4/8 configure: also skip deprecated targets with target-list-exclude
In reply to Alex BennéeNow the user has to make an even more deliberate decision to enable a deprecated target rather than getting it as a side effect of using --target-exclude-list.
--- configure | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
configure +8 -3
@@ -1729,9 +1729,14 @@ if [ "$bsd_user" = "yes" ]; then mak_wilds="${mak_wilds} $source_path/default-configs/*-bsd-user.mak" fi -if test -z "$target_list_exclude" -a -z "$target_list"; then - # if the user doesn't specify anything lets skip deprecating stuff - target_list_exclude=$deprecated_targets_list +# If the user doesn't explicitly specify a deprecated target we will +# skip it. +if test -z "$target_list"; then + if test -z "$target_list_exclude"; then + target_list_exclude="$deprecated_targets_list" + else + target_list_exclude="$target_list_exclude,$deprecated_targets_list" + fi fi exclude_list=$(echo "$target_list_exclude" | sed -e 's/,/ /g')
Signature · 1 line
2.20.1
Re: [PATCH v2 4/8] configure: also skip deprecated targets with target-list-exclude
Quoted 8 lines · Alex Bennée
Now the user has to make an even more deliberate decision to enable a deprecated target rather than getting it as a side effect of using --target-exclude-list.
Signed-off-by Alex Bennée <[email protected]>--- configure | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
r~
PATCH v2 5/8 configure: clean-up the target-list-exclude logic
In reply to Alex BennéeRather than sed and loop just do a grep.
--- configure | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
configure +1 -9
@@ -1739,17 +1739,9 @@ if test -z "$target_list"; then fi fi -exclude_list=$(echo "$target_list_exclude" | sed -e 's/,/ /g') for config in $mak_wilds; do target="$(basename "$config" .mak)" - exclude="no" - for excl in $exclude_list; do - if test "$excl" = "$target"; then - exclude="yes" - break; - fi - done - if test "$exclude" = "no"; then + if echo "$target_list_exclude" | grep -vq "$target"; then default_target_list="${default_target_list} $target" fi done
Signature · 1 line
2.20.1
Re: [PATCH v2 5/8] configure: clean-up the target-list-exclude logic
Quoted 6 lines · Alex Bennée
Rather than sed and loop just do a grep.
Signed-off-by Alex Bennée <[email protected]>--- configure | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
r~
PATCH v2 6/8 configure: include tilegx-linux-user in the deprecation logic
In reply to Alex BennéeThe target is already marked as deprecated in the documentation.
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
@@ -280,7 +280,7 @@ supported_whpx_target() { return 1 } -deprecated_targets_list=ppc64abi32-linux-user +deprecated_targets_list=ppc64abi32-linux-user,tilegx-linux-user deprecated_features="" supported_target() {
Signature · 1 line
2.20.1
Re: [PATCH v2 6/8] configure: include tilegx-linux-user in the deprecation logic
Quoted 6 lines · Alex Bennée
The target is already marked as deprecated in the documentation.
Signed-off-by Alex Bennée <[email protected]>--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
r~
Re: [PATCH v2 6/8] configure: include tilegx-linux-user in the deprecation logic
In reply to Alex BennéeQuoted 13 lines · Alex Bennée
The target is already marked as deprecated in the documentation.
Signed-off-by Alex Bennée <[email protected]>--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)configure +0
-0
configure supported_whpx_target() { · line 286
Quoted 8 lines
configure +1
-1@@ -280,7 +280,7 @@ supported_whpx_target() { return 1 } -deprecated_targets_list=ppc64abi32-linux-user +deprecated_targets_list=ppc64abi32-linux-user,tilegx-linux-user deprecated_features="" supported_target() {
PATCH v2 7/8 gitlab: create a build-deprecated target
In reply to Alex BennéeThese targets might be deprecated but we should keep them building before the final axe comes down. Lets keep them all in one place and don't hold up the CI if they do fail. They are either poorly tested or already flaky anyway.
--- .gitlab-ci.yml | 10 ++++++++++ .travis.yml | 3 +-- 2 files changed, 11 insertions(+), 2 deletions(-)
.gitlab-ci.yml +10 -0
@@ -254,6 +254,16 @@ build-clang: ppc-softmmu s390x-softmmu arm-linux-user MAKE_CHECK_ARGS: check +# These targets are on the way out +build-deprecated: + <<: *native_build_job_definition + variables: + IMAGE: debian-all-test-cross + CONFIGURE_ARGS: --disable-docs --disable-tools --disable-system + MAKE_CHECK_ARGS: check-tcg + TARGETS: ppc64abi32-linux-user tilegx-linux-user + allow_failure: true + build-oss-fuzz: <<: *native_build_job_definition variables:
.travis.yml +1 -2
@@ -344,10 +344,9 @@ jobs: # Run check-tcg against linux-user (with plugins) # we skip sparc64-linux-user until it has been fixed somewhat # we skip cris-linux-user as it doesn't use the common run loop - # we skip ppc64abi32-linux-user as it seems to have a broken libc - name: "GCC plugins check-tcg (user)" env: - - CONFIG="--disable-system --enable-plugins --enable-debug-tcg --target-list-exclude=sparc64-linux-user,cris-linux-user,ppc64abi32-linux-user" + - CONFIG="--disable-system --enable-plugins --enable-debug-tcg --target-list-exclude=sparc64-linux-user,cris-linux-user" - TEST_BUILD_CMD="make build-tcg" - TEST_CMD="make check-tcg" - CACHE_NAME="${TRAVIS_BRANCH}-linux-gcc-debug-tcg"
Signature · 1 line
2.20.1
PATCH v2 8/8 configure: add [lm32|unicore32]-softmmu to deprecation logic
In reply to Alex BennéeWhile we are at it move the few places where they are into the deprecation build bucket.
--- configure | 2 +- .gitlab-ci.yml | 9 +++++---- .shippable.yml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-)
configure +1 -1
@@ -280,7 +280,7 @@ supported_whpx_target() { return 1 } -deprecated_targets_list=ppc64abi32-linux-user,tilegx-linux-user +deprecated_targets_list=ppc64abi32-linux-user,tilegx-linux-user,lm32-softmmu,unicore32-softmmu deprecated_features="" supported_target() {
.gitlab-ci.yml +5 -4
@@ -134,7 +134,7 @@ build-system-fedora: variables: IMAGE: fedora CONFIGURE_ARGS: --disable-gcrypt --enable-nettle - TARGETS: tricore-softmmu unicore32-softmmu microblaze-softmmu mips-softmmu + TARGETS: tricore-softmmu microblaze-softmmu mips-softmmu xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-softmmu MAKE_CHECK_ARGS: check-build artifacts:
@@ -166,7 +166,7 @@ build-system-centos: variables: IMAGE: centos8 CONFIGURE_ARGS: --disable-nettle --enable-gcrypt - TARGETS: ppc64-softmmu lm32-softmmu or1k-softmmu s390x-softmmu + TARGETS: ppc64-softmmu or1k-softmmu s390x-softmmu x86_64-softmmu rx-softmmu sh4-softmmu nios2-softmmu MAKE_CHECK_ARGS: check-build artifacts:
@@ -259,9 +259,10 @@ build-deprecated: <<: *native_build_job_definition variables: IMAGE: debian-all-test-cross - CONFIGURE_ARGS: --disable-docs --disable-tools --disable-system + CONFIGURE_ARGS: --disable-docs --disable-tools MAKE_CHECK_ARGS: check-tcg - TARGETS: ppc64abi32-linux-user tilegx-linux-user + TARGETS: ppc64abi32-linux-user tilegx-linux-user lm32-softmmu + unicore32-softmmu allow_failure: true build-oss-fuzz:
.shippable.yml +1 -1
@@ -8,7 +8,7 @@ env: - IMAGE=debian-amd64 TARGET_LIST=x86_64-softmmu,x86_64-linux-user - IMAGE=debian-win32-cross - TARGET_LIST=arm-softmmu,i386-softmmu,lm32-softmmu + TARGET_LIST=arm-softmmu,i386-softmmu - IMAGE=debian-win64-cross TARGET_LIST=aarch64-softmmu,sparc64-softmmu,x86_64-softmmu - IMAGE=debian-armel-cross
Signature · 1 line
2.20.1
Re: [PATCH v2 8/8] configure: add [lm32|unicore32]-softmmu to deprecation logic
Quoted 9 lines · Alex Bennée
While we are at it move the few places where they are into the deprecation build bucket.
Signed-off-by Alex Bennée <[email protected]>--- configure | 2 +- .gitlab-ci.yml | 9 +++++---- .shippable.yml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-)
r~
Re: [PATCH v2 8/8] configure: add [lm32|unicore32]-softmmu to deprecation logic
In reply to Alex BennéeQuoted 9 lines · Alex Bennée
While we are at it move the few places where they are into the deprecation build bucket.
Signed-off-by Alex Bennée <[email protected]>--- configure | 2 +- .gitlab-ci.yml | 9 +++++---- .shippable.yml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-)
Hi Alex,
I noticed that these deprecated targets do not show up in the output of "configure --help" at all anymore:
--target-list=LIST set target list (default: build everything)
Available targets: aarch64-softmmu alpha-softmmu arm-softmmu avr-softmmu cris-softmmu hppa-softmmu i386-softmmu m68k-softmmu microblazeel-softmmu microblaze-softmmu mips64el-softmmu mips64-softmmu mipsel-softmmu mips-softmmu moxie-softmmu nios2-softmmu or1k-softmmu ppc64-softmmu ppc-softmmu riscv32-softmmu riscv64-softmmu rx-softmmu s390x-softmmu sh4eb-softmmu sh4-softmmu sparc64-softmmu sparc-softmmu tricore-softmmu x86_64-softmmu xtensaeb-softmmu xtensa-softmmu aarch64_be-linux-user aarch64-linux-user alpha-linux-user armeb-linux-user arm-linux-user cris-linux-user hppa-linux-user i386-linux-user m68k-linux-user microblazeel-linux-user microblaze-linux-user mips64el-linux-user mips64-linux-user mipsel-linux-user mips-linux-user mipsn32el-linux-user mipsn32-linux-user nios2-linux-user or1k-linux-user ppc64le-linux-user ppc64-linux-user ppc-linux-user riscv32-linux-user riscv64-linux-user s390x-linux-user sh4eb-linux-user sh4-linux-user sparc32plus-linux-user sparc64-linux-user sparc-linux-user x86_64-linux-user xtensaeb-linux-user xtensa-linux-user
The text "default: build everything" is now also not accurate anymore. How is a user who is still interested in these targets supposed to find the right --target-list parameters now?
Thomas
Re: [PATCH v2 8/8] configure: add [lm32|unicore32]-softmmu to deprecation logic
Quoted 42 lines · Thomas Huth
Quoted 9 lines · Alex Bennée
While we are at it move the few places where they are into the deprecation build bucket.
Signed-off-by Alex Bennée <[email protected]>--- configure | 2 +- .gitlab-ci.yml | 9 +++++---- .shippable.yml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-)Hi Alex,
I noticed that these deprecated targets do not show up in the output of "configure --help" at all anymore:
--target-list=LIST set target list (default: build everything)
Available targets: aarch64-softmmu alpha-softmmu arm-softmmu avr-softmmu cris-softmmu hppa-softmmu i386-softmmu m68k-softmmu microblazeel-softmmu microblaze-softmmu mips64el-softmmu mips64-softmmu mipsel-softmmu mips-softmmu moxie-softmmu nios2-softmmu or1k-softmmu ppc64-softmmu ppc-softmmu riscv32-softmmu riscv64-softmmu rx-softmmu s390x-softmmu sh4eb-softmmu sh4-softmmu sparc64-softmmu sparc-softmmu tricore-softmmu x86_64-softmmu xtensaeb-softmmu xtensa-softmmu aarch64_be-linux-user aarch64-linux-user alpha-linux-user armeb-linux-user arm-linux-user cris-linux-user hppa-linux-user i386-linux-user m68k-linux-user microblazeel-linux-user microblaze-linux-user mips64el-linux-user mips64-linux-user mipsel-linux-user mips-linux-user mipsn32el-linux-user mipsn32-linux-user nios2-linux-user or1k-linux-user ppc64le-linux-user ppc64-linux-user ppc-linux-user riscv32-linux-user riscv64-linux-user s390x-linux-user sh4eb-linux-user sh4-linux-user sparc32plus-linux-user sparc64-linux-user sparc-linux-user x86_64-linux-user xtensaeb-linux-user xtensa-linux-user
Quoted 3 lines
The text "default: build everything" is now also not accurate anymore. How is a user who is still interested in these targets supposed to find the right --target-list parameters now?
How about:
--8<---------------cut here---------------start------------->8---
modified configure
@@ -1644,9 +1644,11 @@ Standard options:
--prefix=PREFIX install in PREFIX [$prefix]
--interp-prefix=PREFIX where to find shared libraries, etc.
use %M for cpu name [$interp_prefix]
- --target-list=LIST set target list (default: build everything) + --target-list=LIST set target list (default: build all non-deprcated)
$(echo Available targets: $default_target_list | \
fold -s -w 53 | sed -e 's/^/ /')
+$(echo Deprecated targets: $deprecated_targets_list | \
+ fold -s -w 53 | sed -e 's/^/ /')
--target-list-exclude=LIST exclude a set of targets from the default target-list
Advanced options (experts only):
--8<---------------cut here---------------end--------------->8---
Which would give:
--target-list=LIST set target list (default: build all non-deprcated)
Available targets: aarch64-softmmu alpha-softmmu arm-softmmu avr-softmmu cris-softmmu hppa-softmmu i386-softmmu m68k-softmmu microblaze-softmmu microblazeel-softmmu mips-softmmu mips64-softmmu mips64el-softmmu mipsel-softmmu moxie-softmmu nios2-softmmu or1k-softmmu ppc-softmmu ppc64-softmmu riscv32-softmmu riscv64-softmmu rx-softmmu s390x-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu tricore-softmmu x86_64-softmmu xtensa-softmmu xtensaeb-softmmu aarch64-linux-user aarch64_be-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user hppa-linux-user i386-linux-user m68k-linux-user microblaze-linux-user microblazeel-linux-user mips-linux-user mips64-linux-user mips64el-linux-user mipsel-linux-user mipsn32-linux-user mipsn32el-linux-user nios2-linux-user or1k-linux-user ppc-linux-user ppc64-linux-user ppc64le-linux-user riscv32-linux-user riscv64-linux-user s390x-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc32plus-linux-user sparc64-linux-user x86_64-linux-user xtensa-linux-user xtensaeb-linux-user
Deprecated targets:
ppc64abi32-linux-user,tilegx-linux-user,lm32-softmmu, unicore32-softmmu
--target-list-exclude=LIST exclude a set of targets from the default target-list
Signature · 1 line
Alex Bennée
Re: [PATCH v2 8/8] configure: add [lm32|unicore32]-softmmu to deprecation logic
Quoted 93 lines · Alex Bennée
Quoted 42 lines · Thomas Huth
Quoted 9 lines · Alex Bennée
While we are at it move the few places where they are into the deprecation build bucket.
Signed-off-by Alex Bennée <[email protected]>--- configure | 2 +- .gitlab-ci.yml | 9 +++++---- .shippable.yml | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-)Hi Alex,
I noticed that these deprecated targets do not show up in the output of "configure --help" at all anymore:
--target-list=LIST set target list (default: build everything)
Available targets: aarch64-softmmu alpha-softmmu arm-softmmu avr-softmmu cris-softmmu hppa-softmmu i386-softmmu m68k-softmmu microblazeel-softmmu microblaze-softmmu mips64el-softmmu mips64-softmmu mipsel-softmmu mips-softmmu moxie-softmmu nios2-softmmu or1k-softmmu ppc64-softmmu ppc-softmmu riscv32-softmmu riscv64-softmmu rx-softmmu s390x-softmmu sh4eb-softmmu sh4-softmmu sparc64-softmmu sparc-softmmu tricore-softmmu x86_64-softmmu xtensaeb-softmmu xtensa-softmmu aarch64_be-linux-user aarch64-linux-user alpha-linux-user armeb-linux-user arm-linux-user cris-linux-user hppa-linux-user i386-linux-user m68k-linux-user microblazeel-linux-user microblaze-linux-user mips64el-linux-user mips64-linux-user mipsel-linux-user mips-linux-user mipsn32el-linux-user mipsn32-linux-user nios2-linux-user or1k-linux-user ppc64le-linux-user ppc64-linux-user ppc-linux-user riscv32-linux-user riscv64-linux-user s390x-linux-user sh4eb-linux-user sh4-linux-user sparc32plus-linux-user sparc64-linux-user sparc-linux-user x86_64-linux-user xtensaeb-linux-user xtensa-linux-userQuoted 3 lines
The text "default: build everything" is now also not accurate anymore. How is a user who is still interested in these targets supposed to find the right --target-list parameters now?
How about:
--8<---------------cut here---------------start------------->8---
modified configure(quoted diff) +3
-2@@ -1644,9 +1644,11 @@ Standard options: --prefix=PREFIX install in PREFIX [$prefix] --interp-prefix=PREFIX where to find shared libraries, etc. use %M for cpu name [$interp_prefix] - --target-list=LIST set target list (default: build everything) + --target-list=LIST set target list (default: build all non-deprcated) $(echo Available targets: $default_target_list | \ fold -s -w 53 | sed -e 's/^/ /') +$(echo Deprecated targets: $deprecated_targets_list | \ + fold -s -w 53 | sed -e 's/^/ /') --target-list-exclude=LIST exclude a set of targets from the default target-list Advanced options (experts only): --8<---------------cut here---------------end--------------->8---Which would give:
--target-list=LIST set target list (default: build all non-deprcated)
Available targets: aarch64-softmmu alpha-softmmu arm-softmmu avr-softmmu cris-softmmu hppa-softmmu i386-softmmu m68k-softmmu microblaze-softmmu microblazeel-softmmu mips-softmmu mips64-softmmu mips64el-softmmu mipsel-softmmu moxie-softmmu nios2-softmmu or1k-softmmu ppc-softmmu ppc64-softmmu riscv32-softmmu riscv64-softmmu rx-softmmu s390x-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu tricore-softmmu x86_64-softmmu xtensa-softmmu xtensaeb-softmmu aarch64-linux-user aarch64_be-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user hppa-linux-user i386-linux-user m68k-linux-user microblaze-linux-user microblazeel-linux-user mips-linux-user mips64-linux-user mips64el-linux-user mipsel-linux-user mipsn32-linux-user mipsn32el-linux-user nios2-linux-user or1k-linux-user ppc-linux-user ppc64-linux-user ppc64le-linux-user riscv32-linux-user riscv64-linux-user s390x-linux-user sh4-linux-user
Quoted 8 lines
sh4eb-linux-user sparc-linux-user sparc32plus-linux-user sparc64-linux-user x86_64-linux-user xtensa-linux-user xtensaeb-linux-user
Deprecated targets:
ppc64abi32-linux-user,tilegx-linux-user,lm32-softmmu, unicore32-softmmu
--target-list-exclude=LIST exclude a set of targets from the default target-list
Sounds good!
Thomas