Skip to content

Commit f4063f9

Browse files
philmdbonzini
authored andcommitted
meson: Introduce target-specific Kconfig
Add a target-specific Kconfig. We need the definitions in Kconfig so the minikconf tool can verify they exits. However CONFIG_FOO is only enabled for target foo via the meson.build rules. Two architecture have a particularity, ARM and MIPS. As their translators have been split you can potentially build a plain 32 bit build along with a 64-bit version including the 32-bit subset. Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Alex Bennée <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 904ad5e commit f4063f9

File tree

22 files changed

+80
-1
lines changed

22 files changed

+80
-1
lines changed

Kconfig

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
source Kconfig.host
22
source backends/Kconfig
33
source accel/Kconfig
4+
source target/Kconfig
45
source hw/Kconfig
56
source semihosting/Kconfig

meson.build

+2-1
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,8 @@ foreach target : target_dirs
16041604
command: [minikconf,
16051605
get_option('default_devices') ? '--defconfig' : '--allnoconfig',
16061606
config_devices_mak, '@DEPFILE@', '@INPUT@',
1607-
host_kconfig, accel_kconfig])
1607+
host_kconfig, accel_kconfig,
1608+
'CONFIG_' + config_target['TARGET_ARCH'].to_upper() + '=y'])
16081609

16091610
config_devices_data = configuration_data()
16101611
config_devices = keyval.load(config_devices_mak)

target/Kconfig

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
source alpha/Kconfig
2+
source arm/Kconfig
3+
source avr/Kconfig
4+
source cris/Kconfig
5+
source hppa/Kconfig
6+
source i386/Kconfig
7+
source m68k/Kconfig
8+
source microblaze/Kconfig
9+
source mips/Kconfig
10+
source nios2/Kconfig
11+
source openrisc/Kconfig
12+
source ppc/Kconfig
13+
source riscv/Kconfig
14+
source rx/Kconfig
15+
source s390x/Kconfig
16+
source sh4/Kconfig
17+
source sparc/Kconfig
18+
source tricore/Kconfig
19+
source xtensa/Kconfig

target/alpha/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config ALPHA
2+
bool

target/arm/Kconfig

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
config ARM
2+
bool
3+
4+
config AARCH64
5+
bool
6+
select ARM

target/avr/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config AVR
2+
bool

target/cris/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config CRIS
2+
bool

target/hppa/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config HPPA
2+
bool

target/i386/Kconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
config I386
2+
bool
3+
4+
config X86_64
5+
bool

target/m68k/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config M68K
2+
bool

target/microblaze/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config MICROBLAZE
2+
bool

target/mips/Kconfig

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
config MIPS
2+
bool
3+
4+
config MIPS64
5+
bool
6+
select MIPS

target/nios2/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config NIOS2
2+
bool

target/openrisc/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config OPENRISC
2+
bool

target/ppc/Kconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
config PPC
2+
bool
3+
4+
config PPC64
5+
bool

target/riscv/Kconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
config RISCV32
2+
bool
3+
4+
config RISCV64
5+
bool

target/rx/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config RX
2+
bool

target/s390x/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config S390X
2+
bool

target/sh4/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config SH4
2+
bool

target/sparc/Kconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
config SPARC
2+
bool
3+
4+
config SPARC64
5+
bool

target/tricore/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config TRICORE
2+
bool

target/xtensa/Kconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
config XTENSA
2+
bool

0 commit comments

Comments
 (0)