custom device configs (split from larger series)
Subsystems (2)
cover custom device configs (split from larger series)
Hi,
This is something I've split off from a larger ARM re-factoring series in an effort to get it up-streamed:
https://patchew.org/QEMU/[email protected]/
The main idea is to allow for custom device configurations which allow for slightly more slimmed down builds of QEMU. I know this is something the distros currently do a bunch of manual patching around. The main difference from the previous version is the lift-and-shift of default-configs into a new directory layout and the change from specifying a path to a config name. I suspect any configs we have in the upstream tree should also get CI coverage but from a downstream point of view it should make their patching easier (drop a file in the hierarchy).
Please review (or merge ;-)
Alex Bennée (4):
hw/arm: add dependency on OR_IRQ for XLNX_VERSAL hw/arm: move CONFIG_V7M out of default-devices
configs: rename default-configs to configs and reorganise
configure: allow the selection of alternate config in the build
Philippe Mathieu-Daudé (1):
meson: Introduce target-specific Kconfig
configure | 30 ++++++++++++++++---
.../devices/aarch64-softmmu/default.mak | 2 +-
configs/devices/aarch64-softmmu/minimal.mak | 9 ++++++
.../devices/alpha-softmmu/default.mak | 0
.../devices/arm-softmmu/default.mak | 3 --
.../devices/avr-softmmu/default.mak | 0
.../devices/cris-softmmu/default.mak | 0
.../devices/hppa-softmmu/default.mak | 0
.../devices/i386-softmmu/default.mak | 0
.../devices/m68k-softmmu/default.mak | 0
.../devices/microblaze-softmmu/default.mak | 0
.../devices/microblazeel-softmmu/default.mak | 2 +-
.../devices/mips-softmmu/common.mak | 0
.../devices/mips-softmmu/default.mak | 2 +-
.../devices/mips64-softmmu/default.mak | 2 +-
.../devices/mips64el-softmmu/default.mak | 2 +-
.../devices/mipsel-softmmu/default.mak | 2 +-
.../devices/nios2-softmmu/default.mak | 0
.../devices/or1k-softmmu/default.mak | 0
.../devices/ppc-softmmu/default.mak | 0
.../devices/ppc64-softmmu/default.mak | 2 +-
.../devices/riscv32-softmmu/default.mak | 0
.../devices/riscv64-softmmu/default.mak | 0
.../devices/rx-softmmu/default.mak | 0
.../devices/s390x-softmmu/default.mak | 0
.../devices/sh4-softmmu/default.mak | 0
.../devices/sh4eb-softmmu/default.mak | 2 +-
.../devices/sparc-softmmu/default.mak | 0
.../devices/sparc64-softmmu/default.mak | 0
.../devices/tricore-softmmu/default.mak | 0
.../devices/x86_64-softmmu/default.mak | 2 +-
.../devices/xtensa-softmmu/default.mak | 0
configs/devices/xtensaeb-softmmu/default.mak | 3 ++
.../targets/aarch64-linux-user.mak | 0
.../targets/aarch64-softmmu.mak | 0
.../targets/aarch64_be-linux-user.mak | 0
.../targets/alpha-linux-user.mak | 0
.../targets/alpha-softmmu.mak | 0
.../targets/arm-linux-user.mak | 0
.../targets/arm-softmmu.mak | 0
.../targets/armeb-linux-user.mak | 0
.../targets/avr-softmmu.mak | 0
.../targets/cris-linux-user.mak | 0
.../targets/cris-softmmu.mak | 0
.../targets/hexagon-linux-user.mak | 0
.../targets/hppa-linux-user.mak | 0
.../targets/hppa-softmmu.mak | 0
.../targets/i386-bsd-user.mak | 0
.../targets/i386-linux-user.mak | 0
.../targets/i386-softmmu.mak | 0
.../targets/m68k-linux-user.mak | 0
.../targets/m68k-softmmu.mak | 0
.../targets/microblaze-linux-user.mak | 0
.../targets/microblaze-softmmu.mak | 0
.../targets/microblazeel-linux-user.mak | 0
.../targets/microblazeel-softmmu.mak | 0
.../targets/mips-linux-user.mak | 0
.../targets/mips-softmmu.mak | 0
.../targets/mips64-linux-user.mak | 0
.../targets/mips64-softmmu.mak | 0
.../targets/mips64el-linux-user.mak | 0
.../targets/mips64el-softmmu.mak | 0
.../targets/mipsel-linux-user.mak | 0
.../targets/mipsel-softmmu.mak | 0
.../targets/mipsn32-linux-user.mak | 0
.../targets/mipsn32el-linux-user.mak | 0
.../targets/nios2-linux-user.mak | 0
.../targets/nios2-softmmu.mak | 0
.../targets/or1k-linux-user.mak | 0
.../targets/or1k-softmmu.mak | 0
.../targets/ppc-linux-user.mak | 0
.../targets/ppc-softmmu.mak | 0
.../targets/ppc64-linux-user.mak | 0
.../targets/ppc64-softmmu.mak | 0
.../targets/ppc64abi32-linux-user.mak | 0
.../targets/ppc64le-linux-user.mak | 0
.../targets/riscv32-linux-user.mak | 0
.../targets/riscv32-softmmu.mak | 0
.../targets/riscv64-linux-user.mak | 0
.../targets/riscv64-softmmu.mak | 0
.../targets/rx-softmmu.mak | 0
.../targets/s390x-linux-user.mak | 0
.../targets/s390x-softmmu.mak | 0
.../targets/sh4-linux-user.mak | 0
.../targets/sh4-softmmu.mak | 0
.../targets/sh4eb-linux-user.mak | 0
.../targets/sh4eb-softmmu.mak | 0
.../targets/sparc-linux-user.mak | 0
.../targets/sparc-softmmu.mak | 0
.../targets/sparc32plus-linux-user.mak | 0
.../targets/sparc64-linux-user.mak | 0
.../targets/sparc64-softmmu.mak | 0
.../targets/tricore-softmmu.mak | 0
.../targets/x86_64-bsd-user.mak | 0
.../targets/x86_64-linux-user.mak | 0
.../targets/x86_64-softmmu.mak | 0
.../targets/xtensa-linux-user.mak | 0
.../targets/xtensa-softmmu.mak | 0
.../targets/xtensaeb-linux-user.mak | 0
.../targets/xtensaeb-softmmu.mak | 0
default-configs/devices/xtensaeb-softmmu.mak | 3 --
meson.build | 8 +++--
Kconfig | 1 +
MAINTAINERS | 22 +++++++-------
hw/arm/Kconfig | 4 +++
target/Kconfig | 19 ++++++++++++
target/alpha/Kconfig | 2 ++
target/arm/Kconfig | 6 ++++
target/avr/Kconfig | 2 ++
target/cris/Kconfig | 2 ++
target/hppa/Kconfig | 2 ++
target/i386/Kconfig | 5 ++++
target/m68k/Kconfig | 2 ++
target/microblaze/Kconfig | 2 ++
target/mips/Kconfig | 6 ++++
target/nios2/Kconfig | 2 ++
target/openrisc/Kconfig | 2 ++
target/ppc/Kconfig | 5 ++++
target/riscv/Kconfig | 5 ++++
target/rx/Kconfig | 2 ++
target/s390x/Kconfig | 2 ++
target/sh4/Kconfig | 2 ++
target/sparc/Kconfig | 5 ++++
target/tricore/Kconfig | 2 ++
target/xtensa/Kconfig | 2 ++
tests/Makefile.include | 2 +-
126 files changed, 145 insertions(+), 35 deletions(-)
rename default-configs/devices/aarch64-softmmu.mak => configs/devices/aarch64-softmmu/default.mak (82%)
create mode 100644 configs/devices/aarch64-softmmu/minimal.mak
rename default-configs/devices/alpha-softmmu.mak => configs/devices/alpha-softmmu/default.mak (100%)
rename default-configs/devices/arm-softmmu.mak => configs/devices/arm-softmmu/default.mak (89%)
rename default-configs/devices/avr-softmmu.mak => configs/devices/avr-softmmu/default.mak (100%)
rename default-configs/devices/cris-softmmu.mak => configs/devices/cris-softmmu/default.mak (100%)
rename default-configs/devices/hppa-softmmu.mak => configs/devices/hppa-softmmu/default.mak (100%)
rename default-configs/devices/i386-softmmu.mak => configs/devices/i386-softmmu/default.mak (100%)
rename default-configs/devices/m68k-softmmu.mak => configs/devices/m68k-softmmu/default.mak (100%)
rename default-configs/devices/microblaze-softmmu.mak => configs/devices/microblaze-softmmu/default.mak (100%)
rename default-configs/devices/microblazeel-softmmu.mak => configs/devices/microblazeel-softmmu/default.mak (54%)
rename default-configs/devices/mips-softmmu-common.mak => configs/devices/mips-softmmu/common.mak (100%)
rename default-configs/devices/mips-softmmu.mak => configs/devices/mips-softmmu/default.mak (56%)
rename default-configs/devices/mips64-softmmu.mak => configs/devices/mips64-softmmu/default.mak (62%)
rename default-configs/devices/mips64el-softmmu.mak => configs/devices/mips64el-softmmu/default.mak (88%)
rename default-configs/devices/mipsel-softmmu.mak => configs/devices/mipsel-softmmu/default.mak (55%)
rename default-configs/devices/nios2-softmmu.mak => configs/devices/nios2-softmmu/default.mak (100%)
rename default-configs/devices/or1k-softmmu.mak => configs/devices/or1k-softmmu/default.mak (100%)
rename default-configs/devices/ppc-softmmu.mak => configs/devices/ppc-softmmu/default.mak (100%)
rename default-configs/devices/ppc64-softmmu.mak => configs/devices/ppc64-softmmu/default.mak (79%)
rename default-configs/devices/riscv32-softmmu.mak => configs/devices/riscv32-softmmu/default.mak (100%)
rename default-configs/devices/riscv64-softmmu.mak => configs/devices/riscv64-softmmu/default.mak (100%)
rename default-configs/devices/rx-softmmu.mak => configs/devices/rx-softmmu/default.mak (100%)
rename default-configs/devices/s390x-softmmu.mak => configs/devices/s390x-softmmu/default.mak (100%)
rename default-configs/devices/sh4-softmmu.mak => configs/devices/sh4-softmmu/default.mak (100%)
rename default-configs/devices/sh4eb-softmmu.mak => configs/devices/sh4eb-softmmu/default.mak (55%)
rename default-configs/devices/sparc-softmmu.mak => configs/devices/sparc-softmmu/default.mak (100%)
rename default-configs/devices/sparc64-softmmu.mak => configs/devices/sparc64-softmmu/default.mak (100%)
rename default-configs/devices/tricore-softmmu.mak => configs/devices/tricore-softmmu/default.mak (100%)
rename default-configs/devices/x86_64-softmmu.mak => configs/devices/x86_64-softmmu/default.mak (55%)
rename default-configs/devices/xtensa-softmmu.mak => configs/devices/xtensa-softmmu/default.mak (100%)
create mode 100644 configs/devices/xtensaeb-softmmu/default.mak
rename {default-configs => configs}/targets/aarch64-linux-user.mak (100%)
rename {default-configs => configs}/targets/aarch64-softmmu.mak (100%)
rename {default-configs => configs}/targets/aarch64_be-linux-user.mak (100%)
rename {default-configs => configs}/targets/alpha-linux-user.mak (100%)
rename {default-configs => configs}/targets/alpha-softmmu.mak (100%)
rename {default-configs => configs}/targets/arm-linux-user.mak (100%)
rename {default-configs => configs}/targets/arm-softmmu.mak (100%)
rename {default-configs => configs}/targets/armeb-linux-user.mak (100%)
rename {default-configs => configs}/targets/avr-softmmu.mak (100%)
rename {default-configs => configs}/targets/cris-linux-user.mak (100%)
rename {default-configs => configs}/targets/cris-softmmu.mak (100%)
rename {default-configs => configs}/targets/hexagon-linux-user.mak (100%)
rename {default-configs => configs}/targets/hppa-linux-user.mak (100%)
rename {default-configs => configs}/targets/hppa-softmmu.mak (100%)
rename {default-configs => configs}/targets/i386-bsd-user.mak (100%)
rename {default-configs => configs}/targets/i386-linux-user.mak (100%)
rename {default-configs => configs}/targets/i386-softmmu.mak (100%)
rename {default-configs => configs}/targets/m68k-linux-user.mak (100%)
rename {default-configs => configs}/targets/m68k-softmmu.mak (100%)
rename {default-configs => configs}/targets/microblaze-linux-user.mak (100%)
rename {default-configs => configs}/targets/microblaze-softmmu.mak (100%)
rename {default-configs => configs}/targets/microblazeel-linux-user.mak (100%)
rename {default-configs => configs}/targets/microblazeel-softmmu.mak (100%)
rename {default-configs => configs}/targets/mips-linux-user.mak (100%)
rename {default-configs => configs}/targets/mips-softmmu.mak (100%)
rename {default-configs => configs}/targets/mips64-linux-user.mak (100%)
rename {default-configs => configs}/targets/mips64-softmmu.mak (100%)
rename {default-configs => configs}/targets/mips64el-linux-user.mak (100%)
rename {default-configs => configs}/targets/mips64el-softmmu.mak (100%)
rename {default-configs => configs}/targets/mipsel-linux-user.mak (100%)
rename {default-configs => configs}/targets/mipsel-softmmu.mak (100%)
rename {default-configs => configs}/targets/mipsn32-linux-user.mak (100%)
rename {default-configs => configs}/targets/mipsn32el-linux-user.mak (100%)
rename {default-configs => configs}/targets/nios2-linux-user.mak (100%)
rename {default-configs => configs}/targets/nios2-softmmu.mak (100%)
rename {default-configs => configs}/targets/or1k-linux-user.mak (100%)
rename {default-configs => configs}/targets/or1k-softmmu.mak (100%)
rename {default-configs => configs}/targets/ppc-linux-user.mak (100%)
rename {default-configs => configs}/targets/ppc-softmmu.mak (100%)
rename {default-configs => configs}/targets/ppc64-linux-user.mak (100%)
rename {default-configs => configs}/targets/ppc64-softmmu.mak (100%)
rename {default-configs => configs}/targets/ppc64abi32-linux-user.mak (100%)
rename {default-configs => configs}/targets/ppc64le-linux-user.mak (100%)
rename {default-configs => configs}/targets/riscv32-linux-user.mak (100%)
rename {default-configs => configs}/targets/riscv32-softmmu.mak (100%)
rename {default-configs => configs}/targets/riscv64-linux-user.mak (100%)
rename {default-configs => configs}/targets/riscv64-softmmu.mak (100%)
rename {default-configs => configs}/targets/rx-softmmu.mak (100%)
rename {default-configs => configs}/targets/s390x-linux-user.mak (100%)
rename {default-configs => configs}/targets/s390x-softmmu.mak (100%)
rename {default-configs => configs}/targets/sh4-linux-user.mak (100%)
rename {default-configs => configs}/targets/sh4-softmmu.mak (100%)
rename {default-configs => configs}/targets/sh4eb-linux-user.mak (100%)
rename {default-configs => configs}/targets/sh4eb-softmmu.mak (100%)
rename {default-configs => configs}/targets/sparc-linux-user.mak (100%)
rename {default-configs => configs}/targets/sparc-softmmu.mak (100%)
rename {default-configs => configs}/targets/sparc32plus-linux-user.mak (100%)
rename {default-configs => configs}/targets/sparc64-linux-user.mak (100%)
rename {default-configs => configs}/targets/sparc64-softmmu.mak (100%)
rename {default-configs => configs}/targets/tricore-softmmu.mak (100%)
rename {default-configs => configs}/targets/x86_64-bsd-user.mak (100%)
rename {default-configs => configs}/targets/x86_64-linux-user.mak (100%)
rename {default-configs => configs}/targets/x86_64-softmmu.mak (100%)
rename {default-configs => configs}/targets/xtensa-linux-user.mak (100%)
rename {default-configs => configs}/targets/xtensa-softmmu.mak (100%)
rename {default-configs => configs}/targets/xtensaeb-linux-user.mak (100%)
rename {default-configs => configs}/targets/xtensaeb-softmmu.mak (100%)
delete mode 100644 default-configs/devices/xtensaeb-softmmu.mak
create mode 100644 target/Kconfig
create mode 100644 target/alpha/Kconfig
create mode 100644 target/arm/Kconfig
create mode 100644 target/avr/Kconfig
create mode 100644 target/cris/Kconfig
create mode 100644 target/hppa/Kconfig
create mode 100644 target/i386/Kconfig
create mode 100644 target/m68k/Kconfig
create mode 100644 target/microblaze/Kconfig
create mode 100644 target/mips/Kconfig
create mode 100644 target/nios2/Kconfig
create mode 100644 target/openrisc/Kconfig
create mode 100644 target/ppc/Kconfig
create mode 100644 target/riscv/Kconfig
create mode 100644 target/rx/Kconfig
create mode 100644 target/s390x/Kconfig
create mode 100644 target/sh4/Kconfig
create mode 100644 target/sparc/Kconfig
create mode 100644 target/tricore/Kconfig
create mode 100644 target/xtensa/KconfigSignature · 1 line
2.20.1
PATCH 1/5 meson: Introduce target-specific Kconfig
From: Philippe Mathieu-Daudé <[email protected]>
Add a target-specific Kconfig. We need the definitions in Kconfig so the minikconf tool can verify they exit. However CONFIG_FOO is only enabled for target foo via the meson.build rules.
Two architecture have a particularity, ARM and MIPS:
their 64-bit version include the 32-bit subset.
Message-Id: <[email protected]>
---
vajb:
- removed targets that no longer exist
- reword commit message to show why we need the Kconfigs
--- meson.build | 3 ++- Kconfig | 1 + target/Kconfig | 19 +++++++++++++++++++ target/alpha/Kconfig | 2 ++ target/arm/Kconfig | 6 ++++++ target/avr/Kconfig | 2 ++ target/cris/Kconfig | 2 ++ target/hppa/Kconfig | 2 ++ target/i386/Kconfig | 5 +++++ target/m68k/Kconfig | 2 ++ target/microblaze/Kconfig | 2 ++ target/mips/Kconfig | 6 ++++++ target/nios2/Kconfig | 2 ++ target/openrisc/Kconfig | 2 ++ target/ppc/Kconfig | 5 +++++ target/riscv/Kconfig | 5 +++++ target/rx/Kconfig | 2 ++ target/s390x/Kconfig | 2 ++ target/sh4/Kconfig | 2 ++ target/sparc/Kconfig | 5 +++++ target/tricore/Kconfig | 2 ++ target/xtensa/Kconfig | 2 ++ 22 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 target/Kconfig create mode 100644 target/alpha/Kconfig create mode 100644 target/arm/Kconfig create mode 100644 target/avr/Kconfig create mode 100644 target/cris/Kconfig create mode 100644 target/hppa/Kconfig create mode 100644 target/i386/Kconfig create mode 100644 target/m68k/Kconfig create mode 100644 target/microblaze/Kconfig create mode 100644 target/mips/Kconfig create mode 100644 target/nios2/Kconfig create mode 100644 target/openrisc/Kconfig create mode 100644 target/ppc/Kconfig create mode 100644 target/riscv/Kconfig create mode 100644 target/rx/Kconfig create mode 100644 target/s390x/Kconfig create mode 100644 target/sh4/Kconfig create mode 100644 target/sparc/Kconfig create mode 100644 target/tricore/Kconfig create mode 100644 target/xtensa/Kconfig
meson.build +2 -1
@@ -1377,7 +1377,8 @@ foreach target : target_dirs command: [minikconf, get_option('default_devices') ? '--defconfig' : '--allnoconfig', config_devices_mak, '@DEPFILE@', '@INPUT@', - host_kconfig, accel_kconfig]) + host_kconfig, accel_kconfig, + 'CONFIG_' + config_target['TARGET_ARCH'].to_upper() + '=y']) config_devices_data = configuration_data() config_devices = keyval.load(config_devices_mak)
Kconfig +1 -0
@@ -1,5 +1,6 @@ source Kconfig.host source backends/Kconfig source accel/Kconfig +source target/Kconfig source hw/Kconfig source semihosting/Kconfig
target/Kconfig new file +19 -0
@@ -0,0 +1,19 @@ +source alpha/Kconfig +source arm/Kconfig +source avr/Kconfig +source cris/Kconfig +source hppa/Kconfig +source i386/Kconfig +source m68k/Kconfig +source microblaze/Kconfig +source mips/Kconfig +source nios2/Kconfig +source openrisc/Kconfig +source ppc/Kconfig +source riscv/Kconfig +source rx/Kconfig +source s390x/Kconfig +source sh4/Kconfig +source sparc/Kconfig +source tricore/Kconfig +source xtensa/Kconfig
target/alpha/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config ALPHA + bool
target/arm/Kconfig new file +6 -0
@@ -0,0 +1,6 @@ +config ARM + bool + +config AARCH64 + bool + select ARM
target/avr/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config AVR + bool
target/cris/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config CRIS + bool
target/hppa/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config HPPA + bool
target/i386/Kconfig new file +5 -0
@@ -0,0 +1,5 @@ +config I386 + bool + +config X86_64 + bool
target/m68k/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config M68K + bool
target/microblaze/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config MICROBLAZE + bool
target/mips/Kconfig new file +6 -0
@@ -0,0 +1,6 @@ +config MIPS + bool + +config MIPS64 + bool + select MIPS
target/nios2/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config NIOS2 + bool
target/openrisc/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config OPENRISC + bool
target/ppc/Kconfig new file +5 -0
@@ -0,0 +1,5 @@ +config PPC + bool + +config PPC64 + bool
target/riscv/Kconfig new file +5 -0
@@ -0,0 +1,5 @@ +config RISCV32 + bool + +config RISCV64 + bool
target/rx/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config RX + bool
target/s390x/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config S390X + bool
target/sh4/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config SH4 + bool
target/sparc/Kconfig new file +5 -0
@@ -0,0 +1,5 @@ +config SPARC + bool + +config SPARC64 + bool
target/tricore/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config TRICORE + bool
target/xtensa/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config XTENSA + bool
Signature · 1 line
2.20.1
Re: [PATCH v1 1/5] meson: Introduce target-specific Kconfig
Quoted 4 lines · Alex Bennée
From: Philippe Mathieu-Daudé <[email protected]>
Add a target-specific
Kconfig. We need the definitions inKconfigso the minikconf tool can verify they exit. HoweverCONFIG_FOOis only
s/exit/exist/ ?
Quoted 4 lines
enabled for target foo via the meson.build rules.
Two architecture have a particularity, ARM and MIPS:
their 64-bit version include the 32-bit subset.
Why do you mention these here, but not x86, Sparc, PPC and RISC-V which also have 32-bit and 64-bit variants?
The patch itself looks fine to me, so once you've clarified the commit message:
Quoted 277 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>---
vajb:
- removed targets that no longer exist
- reword commit message to show why we need the Kconfigs--- meson.build | 3 ++- Kconfig | 1 + target/Kconfig | 19 +++++++++++++++++++ target/alpha/Kconfig | 2 ++ target/arm/Kconfig | 6 ++++++ target/avr/Kconfig | 2 ++ target/cris/Kconfig | 2 ++ target/hppa/Kconfig | 2 ++ target/i386/Kconfig | 5 +++++ target/m68k/Kconfig | 2 ++ target/microblaze/Kconfig | 2 ++ target/mips/Kconfig | 6 ++++++ target/nios2/Kconfig | 2 ++ target/openrisc/Kconfig | 2 ++ target/ppc/Kconfig | 5 +++++ target/riscv/Kconfig | 5 +++++ target/rx/Kconfig | 2 ++ target/s390x/Kconfig | 2 ++ target/sh4/Kconfig | 2 ++ target/sparc/Kconfig | 5 +++++ target/tricore/Kconfig | 2 ++ target/xtensa/Kconfig | 2 ++ 22 files changed, 80 insertions(+), 1 deletion(-)create mode 100644 target/Kconfig
create mode 100644 target/alpha/Kconfig
create mode 100644 target/arm/Kconfig
create mode 100644 target/avr/Kconfig
create mode 100644 target/cris/Kconfig
create mode 100644 target/hppa/Kconfig
create mode 100644 target/i386/Kconfig
create mode 100644 target/m68k/Kconfig
create mode 100644 target/microblaze/Kconfig
create mode 100644 target/mips/Kconfig
create mode 100644 target/nios2/Kconfig
create mode 100644 target/openrisc/Kconfig
create mode 100644 target/ppc/Kconfig
create mode 100644 target/riscv/Kconfig
create mode 100644 target/rx/Kconfig
create mode 100644 target/s390x/Kconfig
create mode 100644 target/sh4/Kconfig
create mode 100644 target/sparc/Kconfig
create mode 100644 target/tricore/Kconfig
create mode 100644 target/xtensa/Kconfigmeson.build +2
-1@@ -1377,7 +1377,8 @@ foreach target : target_dirs command: [minikconf, get_option('default_devices') ? '--defconfig' : '--allnoconfig', config_devices_mak, '@DEPFILE@', '@INPUT@', - host_kconfig, accel_kconfig]) + host_kconfig, accel_kconfig, + 'CONFIG_' + config_target['TARGET_ARCH'].to_upper() + '=y']) config_devices_data = configuration_data() config_devices = keyval.load(config_devices_mak)Kconfig +1
-0@@ -1,5 +1,6 @@ source Kconfig.host source backends/Kconfig source accel/Kconfig +source target/Kconfig source hw/Kconfig source semihosting/Kconfigtarget/Kconfig new file +19
-0@@ -0,0 +1,19 @@ +source alpha/Kconfig +source arm/Kconfig +source avr/Kconfig +source cris/Kconfig +source hppa/Kconfig +source i386/Kconfig +source m68k/Kconfig +source microblaze/Kconfig +source mips/Kconfig +source nios2/Kconfig +source openrisc/Kconfig +source ppc/Kconfig +source riscv/Kconfig +source rx/Kconfig +source s390x/Kconfig +source sh4/Kconfig +source sparc/Kconfig +source tricore/Kconfig +source xtensa/Kconfigtarget/alpha/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config ALPHA + booltarget/arm/Kconfig new file +6
-0@@ -0,0 +1,6 @@ +config ARM + bool + +config AARCH64 + bool + select ARMtarget/avr/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config AVR + booltarget/cris/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config CRIS + booltarget/hppa/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config HPPA + booltarget/i386/Kconfig new file +5
-0@@ -0,0 +1,5 @@ +config I386 + bool + +config X86_64 + booltarget/m68k/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config M68K + booltarget/microblaze/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config MICROBLAZE + booltarget/mips/Kconfig new file +6
-0@@ -0,0 +1,6 @@ +config MIPS + bool + +config MIPS64 + bool + select MIPStarget/nios2/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config NIOS2 + booltarget/openrisc/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config OPENRISC + booltarget/ppc/Kconfig new file +5
-0@@ -0,0 +1,5 @@ +config PPC + bool + +config PPC64 + booltarget/riscv/Kconfig new file +5
-0@@ -0,0 +1,5 @@ +config RISCV32 + bool + +config RISCV64 + booltarget/rx/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config RX + booltarget/s390x/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config S390X + booltarget/sh4/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config SH4 + booltarget/sparc/Kconfig new file +5
-0@@ -0,0 +1,5 @@ +config SPARC + bool + +config SPARC64 + booltarget/tricore/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config TRICORE + booltarget/xtensa/Kconfig new file +2
-0@@ -0,0 +1,2 @@ +config XTENSA + bool
Re: [PATCH v1 1/5] meson: Introduce target-specific Kconfig
Quoted 8 lines · Thomas Huth
Quoted 4 lines · Alex Bennée
From: Philippe Mathieu-Daudé <[email protected]>
Add a target-specific
Kconfig. We need the definitions inKconfigso the minikconf tool can verify they exit. HoweverCONFIG_FOOis onlys/exit/exist/ ?
Quoted 7 lines
Quoted 4 lines
enabled for target foo via the meson.build rules.
Two architecture have a particularity, ARM and MIPS:
their 64-bit version include the 32-bit subset.Why do you mention these here, but not x86, Sparc, PPC and RISC-V which also have 32-bit and 64-bit variants?
Because we consider them as different targets, they don't include (kselect) the subset.
Quoted 43 lines
The patch itself looks fine to me, so once you've clarified the commit message:
Reviewed-by Thomas Huth <[email protected]>Quoted 36 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>---
vajb:
- removed targets that no longer exist
- reword commit message to show why we need the Kconfigs
---target/arm/Kconfig new file +6
-0@@ -0,0 +1,6 @@ +config ARM + bool + +config AARCH64 + bool + select ARMtarget/mips/Kconfig new file +6
-0@@ -0,0 +1,6 @@ +config MIPS + bool + +config MIPS64 + bool + select MIPS
Re: [PATCH v1 1/5] meson: Introduce target-specific Kconfig
Quoted 11 lines · Philippe Mathieu-Daudé
Quoted 10 lines · Thomas Huth
Quoted 4 lines · Alex Bennée
From: Philippe Mathieu-Daudé <[email protected]>
Add a target-specific
Kconfig. We need the definitions inKconfigso the minikconf tool can verify they exit. HoweverCONFIG_FOOis onlys/exit/exist/ ?
Quoted 2 lines
enabled for target foo via the meson.build rules.
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Two architecture have a particularity, ARM and MIPS:
their 64-bit version include the 32-bit subset.Why do you mention these here, but not x86, Sparc, PPC and RISC-V which also have 32-bit and 64-bit variants?
Because we consider them as different targets, they don't include (kselect) the subset.
And why is that done this way? There is certainly a big difference between Sparc and Sparc64, but for x86 and PPC, the 64-bit variant is a superset of the 32-bit variant, so why is it done different here compared to ARM and MIPS?
Thomas
Quoted 44 lines
Quoted 43 lines
The patch itself looks fine to me, so once you've clarified the commit message:
Reviewed-by Thomas Huth <[email protected]>Quoted 36 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>---
vajb:
- removed targets that no longer exist
- reword commit message to show why we need the Kconfigs
---target/arm/Kconfig new file +6
-0@@ -0,0 +1,6 @@ +config ARM + bool + +config AARCH64 + bool + select ARMtarget/mips/Kconfig new file +6
-0@@ -0,0 +1,6 @@ +config MIPS + bool + +config MIPS64 + bool + select MIPS
Re: [PATCH v1 1/5] meson: Introduce target-specific Kconfig
Quoted 18 lines · Thomas Huth
Quoted 17 lines · Philippe Mathieu-Daudé
Quoted 15 lines · Thomas Huth
Quoted 4 lines · Alex Bennée
From: Philippe Mathieu-Daudé <[email protected]>
Add a target-specific
Kconfig. We need the definitions inKconfigso the minikconf tool can verify they exit. HoweverCONFIG_FOOis onlys/exit/exist/ ?
Quoted 4 lines
enabled for target foo via the meson.build rules.
Two architecture have a particularity, ARM and MIPS:
their 64-bit version include the 32-bit subset.Why do you mention these here, but not x86, Sparc, PPC and RISC-V which also have 32-bit and 64-bit variants?
Quoted 7 lines
Quoted 2 lines
Because we consider them as different targets, they don't include (kselect) the subset.
And why is that done this way? There is certainly a big difference between Sparc and Sparc64, but for x86 and PPC, the 64-bit variant is a superset of the 32-bit variant, so why is it done different here compared to ARM and MIPS?
I don't know these targets well. Maybe the 64-bit variants do include their 32-bit subset. If you know, I can easily send a new patch.
Re: [PATCH v1 1/5] meson: Introduce target-specific Kconfig
In reply to Thomas HuthQuoted 17 lines · Thomas Huth
Quoted 16 lines · Philippe Mathieu-Daudé
Quoted 15 lines · Thomas Huth
Quoted 4 lines · Alex Bennée
From: Philippe Mathieu-Daudé <[email protected]>
Add a target-specific
Kconfig. We need the definitions inKconfigso the minikconf tool can verify they exit. HoweverCONFIG_FOOis onlys/exit/exist/ ?
Quoted 4 lines
enabled for target foo via the meson.build rules.
Two architecture have a particularity, ARM and MIPS:
their 64-bit version include the 32-bit subset.Why do you mention these here, but not x86, Sparc, PPC and RISC-V which also have 32-bit and 64-bit variants?
Quoted 7 lines
Quoted 2 lines
Because we consider them as different targets, they don't include (kselect) the subset.
And why is that done this way? There is certainly a big difference between Sparc and Sparc64, but for x86 and PPC, the 64-bit variant is a superset of the 32-bit variant, so why is it done different here compared to ARM and MIPS?
Both ARM and MIPS have a somewhat separated set of translate.c functions which means they can be built as individual units. AFAICT all the others have a unified translate.c that handles all ISA variants so they couldn't be built as standalone units if they wanted to.
You are right for AArch64 at least we have to include translate.c to support AArch32 encoding. But for qemu-arm we skip all the 64 bit stuff by compilation units:
arm_ss.add(when: 'TARGET_AARCH64', if_true: files(
'cpu64.c',
'gdbstub64.c',
'helper-a64.c',
'mte_helper.c',
'pauth_helper.c',
'sve_helper.c',
'translate-a64.c',
'translate-sve.c',
))
Quoted 48 lines
Thomas
Quoted 44 lines
Quoted 43 lines
The patch itself looks fine to me, so once you've clarified the commit message:
Reviewed-by Thomas Huth <[email protected]>Quoted 36 lines
Signed-off-by Philippe Mathieu-Daudé <[email protected]>Message-Id: <[email protected]>
Signed-off-by Alex Bennée <[email protected]>---
vajb:
- removed targets that no longer exist
- reword commit message to show why we need the Kconfigs
---target/arm/Kconfig new file +6
-0@@ -0,0 +1,6 @@ +config ARM + bool + +config AARCH64 + bool + select ARMtarget/mips/Kconfig new file +6
-0@@ -0,0 +1,6 @@ +config MIPS + bool + +config MIPS64 + bool + select MIPS
Signature · 1 line
Alex Bennée
PATCH 2/5 hw/arm: add dependency on OR_IRQ for XLNX_VERSAL
In reply to Alex BennéeWe need this functionality due to:
/* XRAM IRQs get ORed into a single line. */
object_initialize_child(OBJECT(s), "xram-irq-orgate",
&s->lpd.xram.irq_orgate, TYPE_OR_IRQ);--- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
hw/arm/Kconfig +1 -0
@@ -368,6 +368,7 @@ config XLNX_VERSAL select UNIMP select XLNX_ZDMA select XLNX_ZYNQMP + select OR_IRQ config NPCM7XX bool
Signature · 1 line
2.20.1
Re: [PATCH v1 2/5] hw/arm: add dependency on OR_IRQ for XLNX_VERSAL
Quoted 6 lines · Alex Bennée
We need this functionality due to:
/* XRAM IRQs get ORed into a single line. */ object_initialize_child(OBJECT(s), "xram-irq-orgate", &s->lpd.xram.irq_orgate, TYPE_OR_IRQ);
Quoted 1 line
Reviewed-by Richard Henderson <[email protected]>
Quoted 4 lines
Signed-off-by Alex Bennée <[email protected]>--- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
Edgar E. Iglesias
Reviewed-byRe: [PATCH v1 2/5] hw/arm: add dependency on OR_IRQ for XLNX_VERSAL
Quoted 8 lines · Philippe Mathieu-Daudé
Quoted 6 lines · Alex Bennée
We need this functionality due to:
/* XRAM IRQs get ORed into a single line. */ object_initialize_child(OBJECT(s), "xram-irq-orgate", &s->lpd.xram.irq_orgate, TYPE_OR_IRQ);
Quoted 5 lines
Fixes a55b441b2ca ("hw/arm: versal: Add support for the XRAMs")Quoted 1 line
Reviewed-by Richard Henderson <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Re: [PATCH v1 2/5] hw/arm: add dependency on OR_IRQ for XLNX_VERSAL
In reply to Alex BennéeQuoted 18 lines · Alex Bennée
We need this functionality due to:
/* XRAM IRQs get ORed into a single line. */ object_initialize_child(OBJECT(s), "xram-irq-orgate", &s->lpd.xram.irq_orgate, TYPE_OR_IRQ);Reviewed-by Richard Henderson <[email protected]>Signed-off-by Alex Bennée <[email protected]>--- hw/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)hw/arm/Kconfig +0
-0
hw/arm/Kconfig config XLNX_VERSAL · line 374
Quoted 7 lines
hw/arm/Kconfig +1
-0@@ -368,6 +368,7 @@ config XLNX_VERSAL select UNIMP select XLNX_ZDMA select XLNX_ZYNQMP + select OR_IRQ config NPCM7XX bool
PATCH 3/5 hw/arm: move CONFIG_V7M out of default-devices
In reply to Alex BennéeWe currently select CONFIG_V7M for a bunch of our m-profile devices. The last sticking point is translate.c which cannot be compiled without expecting v7m support. Express this dependency in Kconfig rather than in default devices as a stepping stone to a fully configurable translate.c.
While we are at it we also need to select ARM_COMPATIBLE_SEMIHOSTING as that is implied for M profile machines.
---
vconfigs
- cherry pick from re-factor
- minor tweak to subject line
--- default-configs/devices/arm-softmmu.mak | 3 --- hw/arm/Kconfig | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)
default-configs/devices/arm-softmmu.mak +0 -3
@@ -1,8 +1,5 @@ # Default configuration for arm-softmmu -# TODO: ARM_V7M is currently always required - make this more flexible! -CONFIG_ARM_V7M=y - # CONFIG_PCI_DEVICES=n # CONFIG_TEST_DEVICES=n
hw/arm/Kconfig +3 -0
@@ -296,7 +296,10 @@ config ZYNQ config ARM_V7M bool + # currently v7M must be included in a TCG build due to translate.c + default y if TCG && (ARM || AARCH64) select PTIMER + select ARM_COMPATIBLE_SEMIHOSTING config ALLWINNER_A10 bool
Signature · 1 line
2.20.1
Re: [PATCH v1 3/5] hw/arm: move CONFIG_V7M out of default-devices
Quoted 39 lines · Alex Bennée
We currently select
CONFIG_V7Mfor a bunch of our m-profile devices. The last sticking point istranslate.cwhich cannot be compiled without expecting v7m support. Express this dependency inKconfigrather than in default devices as a stepping stone to a fully configurabletranslate.c.While we are at it we also need to select
ARM_COMPATIBLE_SEMIHOSTINGas that is implied for M profile machines.Signed-off-by Alex Bennée <[email protected]>---
vconfigs
- cherry pick from re-factor
- minor tweak to subject line--- default-configs/devices/arm-softmmu.mak | 3 --- hw/arm/Kconfig | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)default-configs/devices/arm-softmmu.mak +0
-3@@ -1,8 +1,5 @@ # Default configuration for arm-softmmu -# TODO: ARM_V7M is currently always required - make this more flexible! -CONFIG_ARM_V7M=y - # CONFIG_PCI_DEVICES=n # CONFIG_TEST_DEVICES=nhw/arm/Kconfig +0
-0
hw/arm/Kconfig config ZYNQ · line 302
Quoted 7 lines
hw/arm/Kconfig +3
-0@@ -296,7 +296,10 @@ config ZYNQ config ARM_V7M bool + # currently v7M must be included in a TCG build due to translate.c + default y if TCG && (ARM || AARCH64) select PTIMER + select ARM_COMPATIBLE_SEMIHOSTING
Re: [PATCH v1 3/5] hw/arm: move CONFIG_V7M out of default-devices
In reply to Alex BennéeQuoted 12 lines · Alex Bennée
We currently select
CONFIG_V7Mfor a bunch of our m-profile devices. The last sticking point istranslate.cwhich cannot be compiled without expecting v7m support. Express this dependency inKconfigrather than in default devices as a stepping stone to a fully configurabletranslate.c.While we are at it we also need to select
ARM_COMPATIBLE_SEMIHOSTINGas that is implied for M profile machines.Signed-off-by Alex Bennée <[email protected]>
Quoted 8 lines
---
vconfigs
- cherry pick from re-factor
- minor tweak to subject line--- default-configs/devices/arm-softmmu.mak | 3 --- hw/arm/Kconfig | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-)
PATCH 4/5 configs: rename default-configs to configs and reorganise
In reply to Alex BennéeIn preparation for offering variation to our build configurations lets move everything and rename it to default. Common included base configs are also renamed.
During the cleanup the stale usb.mak and pci.mak references were removed from MAINTAINERS.
---
configure | 6 ++---
.../devices/aarch64-softmmu/default.mak | 2 +-
.../devices/alpha-softmmu/default.mak | 0
.../devices/arm-softmmu/default.mak | 0
.../devices/avr-softmmu/default.mak | 0
.../devices/cris-softmmu/default.mak | 0
.../devices/hppa-softmmu/default.mak | 0
.../devices/i386-softmmu/default.mak | 0
.../devices/m68k-softmmu/default.mak | 0
.../devices/microblaze-softmmu/default.mak | 0
.../devices/microblazeel-softmmu/default.mak | 2 +-
.../devices/mips-softmmu/common.mak | 0
.../devices/mips-softmmu/default.mak | 2 +-
.../devices/mips64-softmmu/default.mak | 2 +-
.../devices/mips64el-softmmu/default.mak | 2 +-
.../devices/mipsel-softmmu/default.mak | 2 +-
.../devices/nios2-softmmu/default.mak | 0
.../devices/or1k-softmmu/default.mak | 0
.../devices/ppc-softmmu/default.mak | 0
.../devices/ppc64-softmmu/default.mak | 2 +-
.../devices/riscv32-softmmu/default.mak | 0
.../devices/riscv64-softmmu/default.mak | 0
.../devices/rx-softmmu/default.mak | 0
.../devices/s390x-softmmu/default.mak | 0
.../devices/sh4-softmmu/default.mak | 0
.../devices/sh4eb-softmmu/default.mak | 2 +-
.../devices/sparc-softmmu/default.mak | 0
.../devices/sparc64-softmmu/default.mak | 0
.../devices/tricore-softmmu/default.mak | 0
.../devices/x86_64-softmmu/default.mak | 2 +-
.../devices/xtensa-softmmu/default.mak | 0
configs/devices/xtensaeb-softmmu/default.mak | 3 +++
.../targets/aarch64-linux-user.mak | 0
.../targets/aarch64-softmmu.mak | 0
.../targets/aarch64_be-linux-user.mak | 0
.../targets/alpha-linux-user.mak | 0
.../targets/alpha-softmmu.mak | 0
.../targets/arm-linux-user.mak | 0
.../targets/arm-softmmu.mak | 0
.../targets/armeb-linux-user.mak | 0
.../targets/avr-softmmu.mak | 0
.../targets/cris-linux-user.mak | 0
.../targets/cris-softmmu.mak | 0
.../targets/hexagon-linux-user.mak | 0
.../targets/hppa-linux-user.mak | 0
.../targets/hppa-softmmu.mak | 0
.../targets/i386-bsd-user.mak | 0
.../targets/i386-linux-user.mak | 0
.../targets/i386-softmmu.mak | 0
.../targets/m68k-linux-user.mak | 0
.../targets/m68k-softmmu.mak | 0
.../targets/microblaze-linux-user.mak | 0
.../targets/microblaze-softmmu.mak | 0
.../targets/microblazeel-linux-user.mak | 0
.../targets/microblazeel-softmmu.mak | 0
.../targets/mips-linux-user.mak | 0
.../targets/mips-softmmu.mak | 0
.../targets/mips64-linux-user.mak | 0
.../targets/mips64-softmmu.mak | 0
.../targets/mips64el-linux-user.mak | 0
.../targets/mips64el-softmmu.mak | 0
.../targets/mipsel-linux-user.mak | 0
.../targets/mipsel-softmmu.mak | 0
.../targets/mipsn32-linux-user.mak | 0
.../targets/mipsn32el-linux-user.mak | 0
.../targets/nios2-linux-user.mak | 0
.../targets/nios2-softmmu.mak | 0
.../targets/or1k-linux-user.mak | 0
.../targets/or1k-softmmu.mak | 0
.../targets/ppc-linux-user.mak | 0
.../targets/ppc-softmmu.mak | 0
.../targets/ppc64-linux-user.mak | 0
.../targets/ppc64-softmmu.mak | 0
.../targets/ppc64abi32-linux-user.mak | 0
.../targets/ppc64le-linux-user.mak | 0
.../targets/riscv32-linux-user.mak | 0
.../targets/riscv32-softmmu.mak | 0
.../targets/riscv64-linux-user.mak | 0
.../targets/riscv64-softmmu.mak | 0
.../targets/rx-softmmu.mak | 0
.../targets/s390x-linux-user.mak | 0
.../targets/s390x-softmmu.mak | 0
.../targets/sh4-linux-user.mak | 0
.../targets/sh4-softmmu.mak | 0
.../targets/sh4eb-linux-user.mak | 0
.../targets/sh4eb-softmmu.mak | 0
.../targets/sparc-linux-user.mak | 0
.../targets/sparc-softmmu.mak | 0
.../targets/sparc32plus-linux-user.mak | 0
.../targets/sparc64-linux-user.mak | 0
.../targets/sparc64-softmmu.mak | 0
.../targets/tricore-softmmu.mak | 0
.../targets/x86_64-bsd-user.mak | 0
.../targets/x86_64-linux-user.mak | 0
.../targets/x86_64-softmmu.mak | 0
.../targets/xtensa-linux-user.mak | 0
.../targets/xtensa-softmmu.mak | 0
.../targets/xtensaeb-linux-user.mak | 0
.../targets/xtensaeb-softmmu.mak | 0
default-configs/devices/xtensaeb-softmmu.mak | 3 ---
meson.build | 4 ++--
MAINTAINERS | 22 +++++++++----------
tests/Makefile.include | 2 +-
103 files changed, 28 insertions(+), 30 deletions(-)
rename default-configs/devices/aarch64-softmmu.mak => configs/devices/aarch64-softmmu/default.mak (82%)
rename default-configs/devices/alpha-softmmu.mak => configs/devices/alpha-softmmu/default.mak (100%)
rename default-configs/devices/arm-softmmu.mak => configs/devices/arm-softmmu/default.mak (100%)
rename default-configs/devices/avr-softmmu.mak => configs/devices/avr-softmmu/default.mak (100%)
rename default-configs/devices/cris-softmmu.mak => configs/devices/cris-softmmu/default.mak (100%)
rename default-configs/devices/hppa-softmmu.mak => configs/devices/hppa-softmmu/default.mak (100%)
rename default-configs/devices/i386-softmmu.mak => configs/devices/i386-softmmu/default.mak (100%)
rename default-configs/devices/m68k-softmmu.mak => configs/devices/m68k-softmmu/default.mak (100%)
rename default-configs/devices/microblaze-softmmu.mak => configs/devices/microblaze-softmmu/default.mak (100%)
rename default-configs/devices/microblazeel-softmmu.mak => configs/devices/microblazeel-softmmu/default.mak (54%)
rename default-configs/devices/mips-softmmu-common.mak => configs/devices/mips-softmmu/common.mak (100%)
rename default-configs/devices/mips-softmmu.mak => configs/devices/mips-softmmu/default.mak (56%)
rename default-configs/devices/mips64-softmmu.mak => configs/devices/mips64-softmmu/default.mak (62%)
rename default-configs/devices/mips64el-softmmu.mak => configs/devices/mips64el-softmmu/default.mak (88%)
rename default-configs/devices/mipsel-softmmu.mak => configs/devices/mipsel-softmmu/default.mak (55%)
rename default-configs/devices/nios2-softmmu.mak => configs/devices/nios2-softmmu/default.mak (100%)
rename default-configs/devices/or1k-softmmu.mak => configs/devices/or1k-softmmu/default.mak (100%)
rename default-configs/devices/ppc-softmmu.mak => configs/devices/ppc-softmmu/default.mak (100%)
rename default-configs/devices/ppc64-softmmu.mak => configs/devices/ppc64-softmmu/default.mak (79%)
rename default-configs/devices/riscv32-softmmu.mak => configs/devices/riscv32-softmmu/default.mak (100%)
rename default-configs/devices/riscv64-softmmu.mak => configs/devices/riscv64-softmmu/default.mak (100%)
rename default-configs/devices/rx-softmmu.mak => configs/devices/rx-softmmu/default.mak (100%)
rename default-configs/devices/s390x-softmmu.mak => configs/devices/s390x-softmmu/default.mak (100%)
rename default-configs/devices/sh4-softmmu.mak => configs/devices/sh4-softmmu/default.mak (100%)
rename default-configs/devices/sh4eb-softmmu.mak => configs/devices/sh4eb-softmmu/default.mak (55%)
rename default-configs/devices/sparc-softmmu.mak => configs/devices/sparc-softmmu/default.mak (100%)
rename default-configs/devices/sparc64-softmmu.mak => configs/devices/sparc64-softmmu/default.mak (100%)
rename default-configs/devices/tricore-softmmu.mak => configs/devices/tricore-softmmu/default.mak (100%)
rename default-configs/devices/x86_64-softmmu.mak => configs/devices/x86_64-softmmu/default.mak (55%)
rename default-configs/devices/xtensa-softmmu.mak => configs/devices/xtensa-softmmu/default.mak (100%)
create mode 100644 configs/devices/xtensaeb-softmmu/default.mak
rename {default-configs => configs}/targets/aarch64-linux-user.mak (100%)
rename {default-configs => configs}/targets/aarch64-softmmu.mak (100%)
rename {default-configs => configs}/targets/aarch64_be-linux-user.mak (100%)
rename {default-configs => configs}/targets/alpha-linux-user.mak (100%)
rename {default-configs => configs}/targets/alpha-softmmu.mak (100%)
rename {default-configs => configs}/targets/arm-linux-user.mak (100%)
rename {default-configs => configs}/targets/arm-softmmu.mak (100%)
rename {default-configs => configs}/targets/armeb-linux-user.mak (100%)
rename {default-configs => configs}/targets/avr-softmmu.mak (100%)
rename {default-configs => configs}/targets/cris-linux-user.mak (100%)
rename {default-configs => configs}/targets/cris-softmmu.mak (100%)
rename {default-configs => configs}/targets/hexagon-linux-user.mak (100%)
rename {default-configs => configs}/targets/hppa-linux-user.mak (100%)
rename {default-configs => configs}/targets/hppa-softmmu.mak (100%)
rename {default-configs => configs}/targets/i386-bsd-user.mak (100%)
rename {default-configs => configs}/targets/i386-linux-user.mak (100%)
rename {default-configs => configs}/targets/i386-softmmu.mak (100%)
rename {default-configs => configs}/targets/m68k-linux-user.mak (100%)
rename {default-configs => configs}/targets/m68k-softmmu.mak (100%)
rename {default-configs => configs}/targets/microblaze-linux-user.mak (100%)
rename {default-configs => configs}/targets/microblaze-softmmu.mak (100%)
rename {default-configs => configs}/targets/microblazeel-linux-user.mak (100%)
rename {default-configs => configs}/targets/microblazeel-softmmu.mak (100%)
rename {default-configs => configs}/targets/mips-linux-user.mak (100%)
rename {default-configs => configs}/targets/mips-softmmu.mak (100%)
rename {default-configs => configs}/targets/mips64-linux-user.mak (100%)
rename {default-configs => configs}/targets/mips64-softmmu.mak (100%)
rename {default-configs => configs}/targets/mips64el-linux-user.mak (100%)
rename {default-configs => configs}/targets/mips64el-softmmu.mak (100%)
rename {default-configs => configs}/targets/mipsel-linux-user.mak (100%)
rename {default-configs => configs}/targets/mipsel-softmmu.mak (100%)
rename {default-configs => configs}/targets/mipsn32-linux-user.mak (100%)
rename {default-configs => configs}/targets/mipsn32el-linux-user.mak (100%)
rename {default-configs => configs}/targets/nios2-linux-user.mak (100%)
rename {default-configs => configs}/targets/nios2-softmmu.mak (100%)
rename {default-configs => configs}/targets/or1k-linux-user.mak (100%)
rename {default-configs => configs}/targets/or1k-softmmu.mak (100%)
rename {default-configs => configs}/targets/ppc-linux-user.mak (100%)
rename {default-configs => configs}/targets/ppc-softmmu.mak (100%)
rename {default-configs => configs}/targets/ppc64-linux-user.mak (100%)
rename {default-configs => configs}/targets/ppc64-softmmu.mak (100%)
rename {default-configs => configs}/targets/ppc64abi32-linux-user.mak (100%)
rename {default-configs => configs}/targets/ppc64le-linux-user.mak (100%)
rename {default-configs => configs}/targets/riscv32-linux-user.mak (100%)
rename {default-configs => configs}/targets/riscv32-softmmu.mak (100%)
rename {default-configs => configs}/targets/riscv64-linux-user.mak (100%)
rename {default-configs => configs}/targets/riscv64-softmmu.mak (100%)
rename {default-configs => configs}/targets/rx-softmmu.mak (100%)
rename {default-configs => configs}/targets/s390x-linux-user.mak (100%)
rename {default-configs => configs}/targets/s390x-softmmu.mak (100%)
rename {default-configs => configs}/targets/sh4-linux-user.mak (100%)
rename {default-configs => configs}/targets/sh4-softmmu.mak (100%)
rename {default-configs => configs}/targets/sh4eb-linux-user.mak (100%)
rename {default-configs => configs}/targets/sh4eb-softmmu.mak (100%)
rename {default-configs => configs}/targets/sparc-linux-user.mak (100%)
rename {default-configs => configs}/targets/sparc-softmmu.mak (100%)
rename {default-configs => configs}/targets/sparc32plus-linux-user.mak (100%)
rename {default-configs => configs}/targets/sparc64-linux-user.mak (100%)
rename {default-configs => configs}/targets/sparc64-softmmu.mak (100%)
rename {default-configs => configs}/targets/tricore-softmmu.mak (100%)
rename {default-configs => configs}/targets/x86_64-bsd-user.mak (100%)
rename {default-configs => configs}/targets/x86_64-linux-user.mak (100%)
rename {default-configs => configs}/targets/x86_64-softmmu.mak (100%)
rename {default-configs => configs}/targets/xtensa-linux-user.mak (100%)
rename {default-configs => configs}/targets/xtensa-softmmu.mak (100%)
rename {default-configs => configs}/targets/xtensaeb-linux-user.mak (100%)
rename {default-configs => configs}/targets/xtensaeb-softmmu.mak (100%)
delete mode 100644 default-configs/devices/xtensaeb-softmmu.makconfigure +3 -3
@@ -1683,13 +1683,13 @@ deprecated_features="" mak_wilds="" if [ "$softmmu" = "yes" ]; then - mak_wilds="${mak_wilds} $source_path/default-configs/targets/*-softmmu.mak" + mak_wilds="${mak_wilds} $source_path/configs/targets/*-softmmu.mak" fi if [ "$linux_user" = "yes" ]; then - mak_wilds="${mak_wilds} $source_path/default-configs/targets/*-linux-user.mak" + mak_wilds="${mak_wilds} $source_path/configs/targets/*-linux-user.mak" fi if [ "$bsd_user" = "yes" ]; then - mak_wilds="${mak_wilds} $source_path/default-configs/targets/*-bsd-user.mak" + mak_wilds="${mak_wilds} $source_path/configs/targets/*-bsd-user.mak" fi # If the user doesn't explicitly specify a deprecated target we will
configs/devices/aarch64-softmmu/default.mak renamed from default-configs/devices/aarch64-softmmu.mak +1 -1
@@ -1,7 +1,7 @@ # Default configuration for aarch64-softmmu # We support all the 32 bit boards so need all their config -include arm-softmmu.mak +include ../arm-softmmu/default.mak CONFIG_XLNX_ZYNQMP_ARM=y CONFIG_XLNX_VERSAL=y
configs/devices/alpha-softmmu/default.mak renamed from default-configs/devices/alpha-softmmu.mak +0 -0
configs/devices/arm-softmmu/default.mak renamed from default-configs/devices/arm-softmmu.mak +0 -0
configs/devices/avr-softmmu/default.mak renamed from default-configs/devices/avr-softmmu.mak +0 -0
configs/devices/cris-softmmu/default.mak renamed from default-configs/devices/cris-softmmu.mak +0 -0
configs/devices/hppa-softmmu/default.mak renamed from default-configs/devices/hppa-softmmu.mak +0 -0
configs/devices/i386-softmmu/default.mak renamed from default-configs/devices/i386-softmmu.mak +0 -0
configs/devices/m68k-softmmu/default.mak renamed from default-configs/devices/m68k-softmmu.mak +0 -0
configs/devices/microblaze-softmmu/default.mak renamed from default-configs/devices/microblaze-softmmu.mak +0 -0
configs/devices/microblazeel-softmmu/default.mak renamed from default-configs/devices/microblazeel-softmmu.mak +1 -1
@@ -1,3 +1,3 @@ # Default configuration for microblazeel-softmmu -include microblaze-softmmu.mak +include ../microblaze-softmmu/default.mak
configs/devices/mips-softmmu/common.mak renamed from default-configs/devices/mips-softmmu-common.mak +0 -0
configs/devices/mips-softmmu/default.mak renamed from default-configs/devices/mips-softmmu.mak +1 -1
@@ -1,3 +1,3 @@ # Default configuration for mips-softmmu -include mips-softmmu-common.mak +include common.mak
configs/devices/mips64-softmmu/default.mak renamed from default-configs/devices/mips64-softmmu.mak +1 -1
@@ -1,4 +1,4 @@ # Default configuration for mips64-softmmu -include mips-softmmu-common.mak +include ../mips-softmmu/common.mak CONFIG_JAZZ=y
configs/devices/mips64el-softmmu/default.mak renamed from default-configs/devices/mips64el-softmmu.mak +1 -1
@@ -1,6 +1,6 @@ # Default configuration for mips64el-softmmu -include mips-softmmu-common.mak +include ../mips-softmmu/common.mak CONFIG_IDE_VIA=y CONFIG_FULOONG=y CONFIG_LOONGSON3V=y
configs/devices/mipsel-softmmu/default.mak renamed from default-configs/devices/mipsel-softmmu.mak +1 -1
@@ -1,3 +1,3 @@ # Default configuration for mipsel-softmmu -include mips-softmmu-common.mak +include ../mips-softmmu/common.mak
configs/devices/nios2-softmmu/default.mak renamed from default-configs/devices/nios2-softmmu.mak +0 -0
configs/devices/or1k-softmmu/default.mak renamed from default-configs/devices/or1k-softmmu.mak +0 -0
configs/devices/ppc-softmmu/default.mak renamed from default-configs/devices/ppc-softmmu.mak +0 -0
configs/devices/ppc64-softmmu/default.mak renamed from default-configs/devices/ppc64-softmmu.mak +1 -1
@@ -1,7 +1,7 @@ # Default configuration for ppc64-softmmu # Include all 32-bit boards -include ppc-softmmu.mak +include ../ppc-softmmu/default.mak # For PowerNV CONFIG_POWERNV=y
configs/devices/riscv32-softmmu/default.mak renamed from default-configs/devices/riscv32-softmmu.mak +0 -0
configs/devices/riscv64-softmmu/default.mak renamed from default-configs/devices/riscv64-softmmu.mak +0 -0
configs/devices/rx-softmmu/default.mak renamed from default-configs/devices/rx-softmmu.mak +0 -0
configs/devices/s390x-softmmu/default.mak renamed from default-configs/devices/s390x-softmmu.mak +0 -0
configs/devices/sh4-softmmu/default.mak renamed from default-configs/devices/sh4-softmmu.mak +0 -0
configs/devices/sh4eb-softmmu/default.mak renamed from default-configs/devices/sh4eb-softmmu.mak +1 -1
@@ -1,3 +1,3 @@ # Default configuration for sh4eb-softmmu -include sh4-softmmu.mak +include ../sh4-softmmu/default.mak
configs/devices/sparc-softmmu/default.mak renamed from default-configs/devices/sparc-softmmu.mak +0 -0
configs/devices/sparc64-softmmu/default.mak renamed from default-configs/devices/sparc64-softmmu.mak +0 -0
configs/devices/tricore-softmmu/default.mak renamed from default-configs/devices/tricore-softmmu.mak +0 -0
configs/devices/x86_64-softmmu/default.mak renamed from default-configs/devices/x86_64-softmmu.mak +1 -1
@@ -1,3 +1,3 @@ # Default configuration for x86_64-softmmu -include i386-softmmu.mak +include ../i386-softmmu/default.mak
configs/devices/xtensa-softmmu/default.mak renamed from default-configs/devices/xtensa-softmmu.mak +0 -0
configs/devices/xtensaeb-softmmu/default.mak new file +3 -0
@@ -0,0 +1,3 @@ +# Default configuration for Xtensa + +include ../xtensa-softmmu/default.mak
configs/targets/aarch64-linux-user.mak renamed from default-configs/targets/aarch64-linux-user.mak +0 -0
configs/targets/aarch64-softmmu.mak renamed from default-configs/targets/aarch64-softmmu.mak +0 -0
configs/targets/aarch64_be-linux-user.mak renamed from default-configs/targets/aarch64_be-linux-user.mak +0 -0
configs/targets/alpha-linux-user.mak renamed from default-configs/targets/alpha-linux-user.mak +0 -0
configs/targets/alpha-softmmu.mak renamed from default-configs/targets/alpha-softmmu.mak +0 -0
configs/targets/arm-linux-user.mak renamed from default-configs/targets/arm-linux-user.mak +0 -0
configs/targets/arm-softmmu.mak renamed from default-configs/targets/arm-softmmu.mak +0 -0
configs/targets/armeb-linux-user.mak renamed from default-configs/targets/armeb-linux-user.mak +0 -0
configs/targets/avr-softmmu.mak renamed from default-configs/targets/avr-softmmu.mak +0 -0
configs/targets/cris-linux-user.mak renamed from default-configs/targets/cris-linux-user.mak +0 -0
configs/targets/cris-softmmu.mak renamed from default-configs/targets/cris-softmmu.mak +0 -0
configs/targets/hexagon-linux-user.mak renamed from default-configs/targets/hexagon-linux-user.mak +0 -0
configs/targets/hppa-linux-user.mak renamed from default-configs/targets/hppa-linux-user.mak +0 -0
configs/targets/hppa-softmmu.mak renamed from default-configs/targets/hppa-softmmu.mak +0 -0
configs/targets/i386-bsd-user.mak renamed from default-configs/targets/i386-bsd-user.mak +0 -0
configs/targets/i386-linux-user.mak renamed from default-configs/targets/i386-linux-user.mak +0 -0
configs/targets/i386-softmmu.mak renamed from default-configs/targets/i386-softmmu.mak +0 -0
configs/targets/m68k-linux-user.mak renamed from default-configs/targets/m68k-linux-user.mak +0 -0
configs/targets/m68k-softmmu.mak renamed from default-configs/targets/m68k-softmmu.mak +0 -0
configs/targets/microblaze-linux-user.mak renamed from default-configs/targets/microblaze-linux-user.mak +0 -0
configs/targets/microblaze-softmmu.mak renamed from default-configs/targets/microblaze-softmmu.mak +0 -0
configs/targets/microblazeel-linux-user.mak renamed from default-configs/targets/microblazeel-linux-user.mak +0 -0
configs/targets/microblazeel-softmmu.mak renamed from default-configs/targets/microblazeel-softmmu.mak +0 -0
configs/targets/mips-linux-user.mak renamed from default-configs/targets/mips-linux-user.mak +0 -0
configs/targets/mips-softmmu.mak renamed from default-configs/targets/mips-softmmu.mak +0 -0
configs/targets/mips64-linux-user.mak renamed from default-configs/targets/mips64-linux-user.mak +0 -0
configs/targets/mips64-softmmu.mak renamed from default-configs/targets/mips64-softmmu.mak +0 -0
configs/targets/mips64el-linux-user.mak renamed from default-configs/targets/mips64el-linux-user.mak +0 -0
configs/targets/mips64el-softmmu.mak renamed from default-configs/targets/mips64el-softmmu.mak +0 -0
configs/targets/mipsel-linux-user.mak renamed from default-configs/targets/mipsel-linux-user.mak +0 -0
configs/targets/mipsel-softmmu.mak renamed from default-configs/targets/mipsel-softmmu.mak +0 -0
configs/targets/mipsn32-linux-user.mak renamed from default-configs/targets/mipsn32-linux-user.mak +0 -0
configs/targets/mipsn32el-linux-user.mak renamed from default-configs/targets/mipsn32el-linux-user.mak +0 -0
configs/targets/nios2-linux-user.mak renamed from default-configs/targets/nios2-linux-user.mak +0 -0
configs/targets/nios2-softmmu.mak renamed from default-configs/targets/nios2-softmmu.mak +0 -0
configs/targets/or1k-linux-user.mak renamed from default-configs/targets/or1k-linux-user.mak +0 -0
configs/targets/or1k-softmmu.mak renamed from default-configs/targets/or1k-softmmu.mak +0 -0
configs/targets/ppc-linux-user.mak renamed from default-configs/targets/ppc-linux-user.mak +0 -0
configs/targets/ppc-softmmu.mak renamed from default-configs/targets/ppc-softmmu.mak +0 -0
configs/targets/ppc64-linux-user.mak renamed from default-configs/targets/ppc64-linux-user.mak +0 -0
configs/targets/ppc64-softmmu.mak renamed from default-configs/targets/ppc64-softmmu.mak +0 -0
configs/targets/ppc64abi32-linux-user.mak renamed from default-configs/targets/ppc64abi32-linux-user.mak +0 -0
configs/targets/ppc64le-linux-user.mak renamed from default-configs/targets/ppc64le-linux-user.mak +0 -0
configs/targets/riscv32-linux-user.mak renamed from default-configs/targets/riscv32-linux-user.mak +0 -0
configs/targets/riscv32-softmmu.mak renamed from default-configs/targets/riscv32-softmmu.mak +0 -0
configs/targets/riscv64-linux-user.mak renamed from default-configs/targets/riscv64-linux-user.mak +0 -0
configs/targets/riscv64-softmmu.mak renamed from default-configs/targets/riscv64-softmmu.mak +0 -0
configs/targets/rx-softmmu.mak renamed from default-configs/targets/rx-softmmu.mak +0 -0
configs/targets/s390x-linux-user.mak renamed from default-configs/targets/s390x-linux-user.mak +0 -0
configs/targets/s390x-softmmu.mak renamed from default-configs/targets/s390x-softmmu.mak +0 -0
configs/targets/sh4-linux-user.mak renamed from default-configs/targets/sh4-linux-user.mak +0 -0
configs/targets/sh4-softmmu.mak renamed from default-configs/targets/sh4-softmmu.mak +0 -0
configs/targets/sh4eb-linux-user.mak renamed from default-configs/targets/sh4eb-linux-user.mak +0 -0
configs/targets/sh4eb-softmmu.mak renamed from default-configs/targets/sh4eb-softmmu.mak +0 -0
configs/targets/sparc-linux-user.mak renamed from default-configs/targets/sparc-linux-user.mak +0 -0
configs/targets/sparc-softmmu.mak renamed from default-configs/targets/sparc-softmmu.mak +0 -0
configs/targets/sparc32plus-linux-user.mak renamed from default-configs/targets/sparc32plus-linux-user.mak +0 -0
configs/targets/sparc64-linux-user.mak renamed from default-configs/targets/sparc64-linux-user.mak +0 -0
configs/targets/sparc64-softmmu.mak renamed from default-configs/targets/sparc64-softmmu.mak +0 -0
configs/targets/tricore-softmmu.mak renamed from default-configs/targets/tricore-softmmu.mak +0 -0
configs/targets/x86_64-bsd-user.mak renamed from default-configs/targets/x86_64-bsd-user.mak +0 -0
configs/targets/x86_64-linux-user.mak renamed from default-configs/targets/x86_64-linux-user.mak +0 -0
configs/targets/x86_64-softmmu.mak renamed from default-configs/targets/x86_64-softmmu.mak +0 -0
configs/targets/xtensa-linux-user.mak renamed from default-configs/targets/xtensa-linux-user.mak +0 -0
configs/targets/xtensa-softmmu.mak renamed from default-configs/targets/xtensa-softmmu.mak +0 -0
configs/targets/xtensaeb-linux-user.mak renamed from default-configs/targets/xtensaeb-linux-user.mak +0 -0
configs/targets/xtensaeb-softmmu.mak renamed from default-configs/targets/xtensaeb-softmmu.mak +0 -0
default-configs/devices/xtensaeb-softmmu.mak deleted +0 -3
@@ -1,3 +0,0 @@ -# Default configuration for Xtensa - -include xtensa-softmmu.mak
meson.build +2 -2
@@ -1322,7 +1322,7 @@ foreach target : target_dirs endif actual_target_dirs += target - config_target += keyval.load('default-configs/targets' / target + '.mak') + config_target += keyval.load('configs/targets' / target + '.mak') config_target += { 'TARGET_' + config_target['TARGET_ARCH'].to_upper(): 'y' } if 'TARGET_NEED_FDT' in config_target
@@ -1370,7 +1370,7 @@ foreach target : target_dirs if target.endswith('-softmmu') config_devices_mak = target + '-config-devices.mak' config_devices_mak = configure_file( - input: ['default-configs/devices' / target + '.mak', 'Kconfig'], + input: ['configs/devices' / target / 'default.mak', 'Kconfig'], output: config_devices_mak, depfile: config_devices_mak + '.d', capture: true,
MAINTAINERS +10 -12
@@ -87,7 +87,7 @@ S390 general architecture support M: Cornelia Huck <[email protected]> M: Thomas Huth <[email protected]> S: Supported -F: default-configs/*/s390x-softmmu.mak +F: configs/devices/s390x-softmmu/default.mak F: gdb-xml/s390*.xml F: hw/char/sclp*.[hc] F: hw/char/terminal3270.c
@@ -195,7 +195,7 @@ F: target/hexagon/ F: linux-user/hexagon/ F: tests/tcg/hexagon/ F: disas/hexagon.c -F: default-configs/targets/hexagon-linux-user.mak +F: configs/targets/hexagon-linux-user/default.mak F: docker/dockerfiles/debian-hexagon-cross.docker F: docker/dockerfiles/debian-hexagon-cross.docker.d/build-toolchain.sh
@@ -228,7 +228,7 @@ R: Jiaxun Yang <[email protected]> R: Aleksandar Rikalo <[email protected]> S: Odd Fixes F: target/mips/ -F: default-configs/*/*mips* +F: configs/devices/mips*/* F: disas/mips.c F: docs/system/cpu-models-mips.rst.inc F: hw/intc/mips_gic.c
@@ -253,7 +253,7 @@ S: Maintained F: target/nios2/ F: hw/nios2/ F: disas/nios2.c -F: default-configs/*/nios2-softmmu.mak +F: configs/devices/nios2-softmmu/default.mak OpenRISC TCG CPUs M: Stafford Horne <[email protected]>
@@ -340,7 +340,7 @@ F: hw/xtensa/ F: tests/tcg/xtensa/ F: disas/xtensa.c F: include/hw/xtensa/xtensa-isa.h -F: default-configs/*/xtensa*.mak +F: configs/devices/xtensa*/default.mak TriCore TCG CPUs M: Bastian Koppelmann <[email protected]>
@@ -1038,7 +1038,7 @@ AVR Machines AVR MCUs M: Michael Rolnik <[email protected]> S: Maintained -F: default-configs/*/avr-softmmu.mak +F: configs/devices/avr-softmmu/default.mak F: hw/avr/ F: include/hw/char/avr_usart.h F: hw/char/avr_usart.c
@@ -1066,7 +1066,7 @@ HP B160L M: Richard Henderson <[email protected]> R: Helge Deller <[email protected]> S: Odd Fixes -F: default-configs/*/hppa-softmmu.mak +F: configs/devices/hppa-softmmu/default.mak F: hw/hppa/ F: pc-bios/hppa-firmware.img
@@ -1494,7 +1494,7 @@ F: hw/s390x/ F: include/hw/s390x/ F: hw/watchdog/wdt_diag288.c F: include/hw/watchdog/wdt_diag288.h -F: default-configs/*/s390x-softmmu.mak +F: configs/devices/s390x-softmmu/default.mak F: tests/acceptance/machine_s390_ccw_virtio.py T: git https://gitlab.com/cohuck/qemu.git s390-next T: git https://github.com/borntraeger/qemu.git s390-next
@@ -1698,7 +1698,6 @@ F: hw/pci-bridge/* F: qapi/pci.json F: docs/pci* F: docs/specs/*pci* -F: default-configs/pci.mak ACPI/SMBIOS M: Michael S. Tsirkin <[email protected]>
@@ -1803,7 +1802,6 @@ F: docs/usb2.txt F: docs/usb-storage.txt F: include/hw/usb.h F: include/hw/usb/ -F: default-configs/usb.mak USB (serial adapter) M: Gerd Hoffmann <[email protected]>
@@ -2952,14 +2950,14 @@ M: Warner Losh <[email protected]> R: Kyle Evans <[email protected]> S: Maintained F: bsd-user/ -F: default-configs/targets/*-bsd-user.mak +F: configs/targets/*-bsd-user.mak T: git https://github.com/qemu-bsd-user/qemu-bsd-user bsd-user-rebase-3.1 Linux user M: Laurent Vivier <[email protected]> S: Maintained F: linux-user/ -F: default-configs/targets/*linux-user.mak +F: configs/targets/*linux-user.mak F: scripts/qemu-binfmt-conf.sh F: scripts/update-syscalltbl.sh F: scripts/update-mips-syscall-args.sh
tests/Makefile.include +1 -1
@@ -36,7 +36,7 @@ export SRC_PATH # Get the list of all supported sysemu targets SYSEMU_TARGET_LIST := $(subst -softmmu.mak,,$(notdir \ - $(wildcard $(SRC_PATH)/default-configs/*-softmmu.mak))) + $(wildcard $(SRC_PATH)/configs/*-softmmu.mak))) SPEED = quick
Signature · 1 line
2.20.1
Re: [PATCH v1 4/5] configs: rename default-configs to configs and reorganise
Quoted 10 lines · Alex Bennée
In preparation for offering variation to our build configurations lets move everything and rename it to default. Common included base configs are also renamed.
During the cleanup the stale usb.mak and pci.mak references were removed from
MAINTAINERS.Signed-off-by Alex Bennée <[email protected]>--- configure | 6 ++---
---
tests/Makefile.include export SRC_PATH · line 39
Quoted 13 lines
meson.build | 4 ++-- MAINTAINERS | 22 +++++++++---------- tests/Makefile.include | 2 +- 103 files changed, 28 insertions(+), 30 deletions(-)tests/Makefile.include +1
-1@@ -36,7 +36,7 @@ export SRC_PATH # Get the list of all supported sysemu targets SYSEMU_TARGET_LIST := $(subst -softmmu.mak,,$(notdir \ - $(wildcard $(SRC_PATH)/default-configs/*-softmmu.mak))) + $(wildcard $(SRC_PATH)/configs/*-softmmu.mak)))
This one seems to have bitrotten.
Re: [PATCH v1 4/5] configs: rename default-configs to configs and reorganise
Quoted 22 lines · Philippe Mathieu-Daudé
Quoted 10 lines · Alex Bennée
In preparation for offering variation to our build configurations lets move everything and rename it to default. Common included base configs are also renamed.
During the cleanup the stale usb.mak and pci.mak references were removed from
MAINTAINERS.Signed-off-by Alex Bennée <[email protected]>--- configure | 6 ++------
Quoted 9 lines
meson.build | 4 ++-- MAINTAINERS | 22 +++++++++---------- tests/Makefile.include | 2 +- 103 files changed, 28 insertions(+), 30 deletions(-)tests/Makefile.include +0
-0@@ -36,7 +36,7 @@ export SRC_PATH
Quoted 6 lines
tests/Makefile.include export SRC_PATH · line 39
Quoted 4 lines
tests/Makefile.include +1
-1# Get the list of all supported sysemu targets SYSEMU_TARGET_LIST := $(subst -softmmu.mak,,$(notdir \ - $(wildcard $(SRC_PATH)/default-configs/*-softmmu.mak))) + $(wildcard $(SRC_PATH)/configs/*-softmmu.mak)))This one seems to have bitrotten.
Hmm it didn't break the build, looking at it I think this stanza needs to be dropped anyway...
Will fix thanks.
Signature · 1 line
Alex Bennée
PATCH 5/5 configure: allow the selection of alternate config in the build
In reply to Alex BennéeWhile the default config works well enough it does end up enabling a lot of stuff. For more minimal builds we can select a different list of devices and let Kconfig work out what we want. For example:
../../configure --without-default-features \
--target-list=arm-softmmu,aarch64-softmmu \
--with-devices-aarch64=minimalwill override the aarch64-softmmu default set of devices with a more minimal set of devices that just enables the virt and sbsa-ref models.
Message-Id: <[email protected]>
---
v2
- remove extraneous cc
- dropped pathname from config
- add virt.mak config
- drop ZYNQMP from the 64bit only build
- test -f the --with-devices-FOO file
v3
- add config with the recently moved default-config->configs
- dropped Phillipe's r-b due to refactoring
- don't echo array to config-meson.cross
--- configure | 24 ++++++++++++++++++++- configs/devices/aarch64-softmmu/minimal.mak | 9 ++++++++ meson.build | 3 ++- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 configs/devices/aarch64-softmmu/minimal.mak
configure +23 -1
@@ -921,6 +921,18 @@ for opt do ;; --without-default-devices) default_devices="false" ;; + --with-devices-*[!a-zA-Z0-9_-]*=*) error_exit "Passed bad --with-devices-FOO option" + ;; + --with-devices-*) device_arch=${opt#--with-devices-}; + device_arch=${device_arch%%=*} + cf=$source_path/configs/devices/$device_arch-softmmu/$optarg.mak + if test -f "$cf"; then + device_archs="$device_archs $device_arch" + eval "devices_${device_arch}=\$optarg" + else + error_exit "File $cf does not exist" + fi + ;; --without-default-features) # processed above ;; --enable-gprof) gprof="yes"
@@ -1770,7 +1782,8 @@ Advanced options (experts only): --without-default-features default all --enable-* options to "disabled" --without-default-devices do not include any device that is not needed to start the emulator (only use if you are including - desired devices in default-configs/devices/) + desired devices in configs/devices/) + --with-devices-ARCH=NAME override default configs/devices --enable-debug enable common debug build options --enable-sanitizers enable default sanitizers --enable-tsan enable thread sanitizer
@@ -6331,6 +6344,15 @@ if test "$skip_meson" = no; then echo "# Automatically generated by configure - do not modify" > $cross echo "[properties]" >> $cross + + # unroll any custom device configs + if test -n "$device_archs"; then + for a in $device_archs; do + eval "c=\$devices_${a}" + echo "${a}-softmmu = '$c'" >> $cross + done + fi + test -z "$cxx" && echo "link_language = 'c'" >> $cross echo "[built-in options]" >> $cross echo "c_args = [${CFLAGS:+$(meson_quote $CFLAGS)}]" >> $cross
configs/devices/aarch64-softmmu/minimal.mak new file +9 -0
@@ -0,0 +1,9 @@ +# +# A minimal version of the config that only supports only a few +# virtual machines. This avoids bringing in any of numerous legacy +# features from the 32bit platform (although virt still supports 32bit +# itself) +# + +CONFIG_ARM_VIRT=y +CONFIG_SBSA_REF=y
meson.build +2 -1
@@ -1368,9 +1368,10 @@ foreach target : target_dirs configuration: config_target_data)} if target.endswith('-softmmu') + config_input = meson.get_external_property(target, 'default') config_devices_mak = target + '-config-devices.mak' config_devices_mak = configure_file( - input: ['configs/devices' / target / 'default.mak', 'Kconfig'], + input: ['configs/devices' / target / config_input + '.mak', 'Kconfig'], output: config_devices_mak, depfile: config_devices_mak + '.d', capture: true,
Signature · 1 line
2.20.1