hw/lm32: Kconfig cleanups
v2 cover hw/lm32: Kconfig cleanups
Hi Laurent,
This series is fully reviewed. Since LM32 is not very active, can this go via qemu-trivial@?
Thanks,
Phil.
v2: Rebased
Supersedes: <[email protected]>
Philippe Mathieu-Daudé (3):
hw/lm32/Kconfig: Introduce CONFIG_LM32_EVR for lm32-evr/uclinux boards hw/lm32/Kconfig: Rename CONFIG_LM32 -> CONFIG_LM32_DEVICES hw/lm32/Kconfig: Have MILKYMIST select LM32_DEVICES
default-configs/devices/lm32-softmmu.mak | 2 +- hw/char/meson.build | 4 ++-- hw/intc/meson.build | 2 +- hw/lm32/Kconfig | 10 +++++++--- hw/lm32/meson.build | 2 +- hw/timer/meson.build | 2 +- 6 files changed, 13 insertions(+), 9 deletions(-)
Signature · 1 line
2.26.2
PATCH v2 1/3 hw/lm32/Kconfig: Introduce CONFIG_LM32_EVR for lm32-evr/uclinux boards
We want to be able to use the 'LM32' config for architecture specific features. Introduce CONFIG_LM32_EVR to select the lm32-evr / lm32-uclinux boards.
--- default-configs/devices/lm32-softmmu.mak | 2 +- hw/lm32/Kconfig | 6 +++++- hw/lm32/meson.build | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-)
default-configs/devices/lm32-softmmu.mak +1 -1
@@ -8,5 +8,5 @@ CONFIG_SEMIHOSTING=y # Boards: # -CONFIG_LM32=y +CONFIG_LM32_EVR=y CONFIG_MILKYMIST=y
hw/lm32/Kconfig +5 -1
@@ -1,7 +1,6 @@ config LM32 bool select PTIMER - select PFLASH_CFI02 config MILKYMIST bool
@@ -12,3 +11,8 @@ config MILKYMIST select FRAMEBUFFER select SD select USB_OHCI + +config LM32_EVR + bool + select LM32 + select PFLASH_CFI02
hw/lm32/meson.build +1 -1
@@ -1,6 +1,6 @@ lm32_ss = ss.source_set() # LM32 boards -lm32_ss.add(when: 'CONFIG_LM32', if_true: files('lm32_boards.c')) +lm32_ss.add(when: 'CONFIG_LM32_EVR', if_true: files('lm32_boards.c')) lm32_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist.c')) hw_arch += {'lm32': lm32_ss}
Signature · 1 line
2.26.2
Laurent Vivier
AppliedRe: [PATCH v2 1/3] hw/lm32/Kconfig: Introduce CONFIG_LM32_EVR for lm32-evr/uclinux boards
Le 21/02/2021 à 23:56, Philippe Mathieu-Daudé a écrit :
Quoted 50 lines
We want to be able to use the 'LM32' config for architecture specific features. Introduce
CONFIG_LM32_EVRto select the lm32-evr / lm32-uclinux boards.Reviewed-by Alex Bennée <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- default-configs/devices/lm32-softmmu.mak | 2 +- hw/lm32/Kconfig | 6 +++++- hw/lm32/meson.build | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-)default-configs/devices/lm32-softmmu.mak +1
-1@@ -8,5 +8,5 @@ CONFIG_SEMIHOSTING=y # Boards: # -CONFIG_LM32=y +CONFIG_LM32_EVR=y CONFIG_MILKYMIST=yhw/lm32/Kconfig +5
-1@@ -1,7 +1,6 @@ config LM32 bool select PTIMER - select PFLASH_CFI02 config MILKYMIST bool@@ -12,3 +11,8 @@ config MILKYMIST select FRAMEBUFFER select SD select USB_OHCI + +config LM32_EVR + bool + select LM32 + select PFLASH_CFI02hw/lm32/meson.build +0
-0
hw/lm32/meson.build line 6
Quoted 7 lines
hw/lm32/meson.build +1
-1@@ -1,6 +1,6 @@ lm32_ss = ss.source_set() # LM32 boards -lm32_ss.add(when: 'CONFIG_LM32', if_true: files('lm32_boards.c')) +lm32_ss.add(when: 'CONFIG_LM32_EVR', if_true: files('lm32_boards.c')) lm32_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist.c')) hw_arch += {'lm32': lm32_ss}
Applied to my trivial-patches branch.
Thanks,
Laurent
PATCH v2 2/3 hw/lm32/Kconfig: Rename CONFIG_LM32 -> CONFIG_LM32_DEVICES
In reply to Philippe Mathieu-DaudéWe want to be able to use the 'LM32' config for architecture specific features. As CONFIG_LM32 is only used to select peripherals, rename it CONFIG_LM32_DEVICES.
--- hw/char/meson.build | 4 ++-- hw/intc/meson.build | 2 +- hw/lm32/Kconfig | 4 ++-- hw/timer/meson.build | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)
hw/char/meson.build +2 -2
@@ -8,8 +8,8 @@ softmmu_ss.add(when: 'CONFIG_IPACK', if_true: files('ipoctal232.c')) softmmu_ss.add(when: 'CONFIG_ISA_BUS', if_true: files('parallel-isa.c')) softmmu_ss.add(when: 'CONFIG_ISA_DEBUG', if_true: files('debugcon.c')) -softmmu_ss.add(when: 'CONFIG_LM32', if_true: files('lm32_juart.c')) -softmmu_ss.add(when: 'CONFIG_LM32', if_true: files('lm32_uart.c')) +softmmu_ss.add(when: 'CONFIG_LM32_DEVICES', if_true: files('lm32_juart.c')) +softmmu_ss.add(when: 'CONFIG_LM32_DEVICES', if_true: files('lm32_uart.c')) softmmu_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist-uart.c')) softmmu_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_uart.c')) softmmu_ss.add(when: 'CONFIG_PARALLEL', if_true: files('parallel.c'))
hw/intc/meson.build +1 -1
@@ -14,7 +14,7 @@ softmmu_ss.add(when: 'CONFIG_I8259', if_true: files('i8259_common.c', 'i8259.c')) softmmu_ss.add(when: 'CONFIG_IMX', if_true: files('imx_avic.c', 'imx_gpcv2.c')) softmmu_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic_common.c')) -softmmu_ss.add(when: 'CONFIG_LM32', if_true: files('lm32_pic.c')) +softmmu_ss.add(when: 'CONFIG_LM32_DEVICES', if_true: files('lm32_pic.c')) softmmu_ss.add(when: 'CONFIG_OPENPIC', if_true: files('openpic.c')) softmmu_ss.add(when: 'CONFIG_PL190', if_true: files('pl190.c')) softmmu_ss.add(when: 'CONFIG_PUV3', if_true: files('puv3_intc.c'))
hw/lm32/Kconfig +2 -2
@@ -1,4 +1,4 @@ -config LM32 +config LM32_DEVICES bool select PTIMER
@@ -14,5 +14,5 @@ config MILKYMIST config LM32_EVR bool - select LM32 + select LM32_DEVICES select PFLASH_CFI02
hw/timer/meson.build +1 -1
@@ -19,7 +19,7 @@ softmmu_ss.add(when: 'CONFIG_I8254', if_true: files('i8254_common.c', 'i8254.c')) softmmu_ss.add(when: 'CONFIG_IMX', if_true: files('imx_epit.c')) softmmu_ss.add(when: 'CONFIG_IMX', if_true: files('imx_gpt.c')) -softmmu_ss.add(when: 'CONFIG_LM32', if_true: files('lm32_timer.c')) +softmmu_ss.add(when: 'CONFIG_LM32_DEVICES', if_true: files('lm32_timer.c')) softmmu_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist-sysctl.c')) softmmu_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_gictimer.c')) softmmu_ss.add(when: 'CONFIG_MSF2', if_true: files('mss-timer.c'))
Signature · 1 line
2.26.2
Laurent Vivier
AppliedRe: [PATCH v2 2/3] hw/lm32/Kconfig: Rename CONFIG_LM32 -> CONFIG_LM32_DEVICES
Le 21/02/2021 à 23:56, Philippe Mathieu-Daudé a écrit :
Quoted 64 lines
We want to be able to use the 'LM32' config for architecture specific features. As
CONFIG_LM32is only used to select peripherals, rename itCONFIG_LM32_DEVICES.Reviewed-by Alex Bennée <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/char/meson.build | 4 ++-- hw/intc/meson.build | 2 +- hw/lm32/Kconfig | 4 ++-- hw/timer/meson.build | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)hw/char/meson.build +2
-2@@ -8,8 +8,8 @@ softmmu_ss.add(when: 'CONFIG_IPACK', if_true: files('ipoctal232.c')) softmmu_ss.add(when: 'CONFIG_ISA_BUS', if_true: files('parallel-isa.c')) softmmu_ss.add(when: 'CONFIG_ISA_DEBUG', if_true: files('debugcon.c')) -softmmu_ss.add(when: 'CONFIG_LM32', if_true: files('lm32_juart.c')) -softmmu_ss.add(when: 'CONFIG_LM32', if_true: files('lm32_uart.c')) +softmmu_ss.add(when: 'CONFIG_LM32_DEVICES', if_true: files('lm32_juart.c')) +softmmu_ss.add(when: 'CONFIG_LM32_DEVICES', if_true: files('lm32_uart.c')) softmmu_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist-uart.c')) softmmu_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_uart.c')) softmmu_ss.add(when: 'CONFIG_PARALLEL', if_true: files('parallel.c'))hw/intc/meson.build +1
-1@@ -14,7 +14,7 @@ softmmu_ss.add(when: 'CONFIG_I8259', if_true: files('i8259_common.c', 'i8259.c')) softmmu_ss.add(when: 'CONFIG_IMX', if_true: files('imx_avic.c', 'imx_gpcv2.c')) softmmu_ss.add(when: 'CONFIG_IOAPIC', if_true: files('ioapic_common.c')) -softmmu_ss.add(when: 'CONFIG_LM32', if_true: files('lm32_pic.c')) +softmmu_ss.add(when: 'CONFIG_LM32_DEVICES', if_true: files('lm32_pic.c')) softmmu_ss.add(when: 'CONFIG_OPENPIC', if_true: files('openpic.c')) softmmu_ss.add(when: 'CONFIG_PL190', if_true: files('pl190.c')) softmmu_ss.add(when: 'CONFIG_PUV3', if_true: files('puv3_intc.c'))hw/lm32/Kconfig +2
-2@@ -1,4 +1,4 @@ -config LM32 +config LM32_DEVICES bool select PTIMER@@ -14,5 +14,5 @@ config MILKYMIST config LM32_EVR bool - select LM32 + select LM32_DEVICES select PFLASH_CFI02hw/timer/meson.build +0
-0
hw/timer/meson.build line 25
Quoted 8 lines
hw/timer/meson.build +1
-1@@ -19,7 +19,7 @@ softmmu_ss.add(when: 'CONFIG_I8254', if_true: files('i8254_common.c', 'i8254.c')) softmmu_ss.add(when: 'CONFIG_IMX', if_true: files('imx_epit.c')) softmmu_ss.add(when: 'CONFIG_IMX', if_true: files('imx_gpt.c')) -softmmu_ss.add(when: 'CONFIG_LM32', if_true: files('lm32_timer.c')) +softmmu_ss.add(when: 'CONFIG_LM32_DEVICES', if_true: files('lm32_timer.c')) softmmu_ss.add(when: 'CONFIG_MILKYMIST', if_true: files('milkymist-sysctl.c')) softmmu_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_gictimer.c')) softmmu_ss.add(when: 'CONFIG_MSF2', if_true: files('mss-timer.c'))
Applied to my trivial-patches branch.
Thanks,
Laurent
PATCH v2 3/3 hw/lm32/Kconfig: Have MILKYMIST select LM32_DEVICES
In reply to Philippe Mathieu-DaudéThe Milkymist board requires more than the PTIMER. Directly select the LM32_DEVICES. This fixes:
/usr/bin/ld:
libqemu-lm32-softmmu.fa.p/target_lm32_gdbstub.c.o: in function `lm32_cpu_gdb_read_register':
target/lm32/gdbstub.c:46: undefined reference to lm32_pic_get_im' target/lm32/gdbstub.c:48: undefined reference to lm32_pic_get_ip' libqemu-lm32-softmmu.fa.p/target_lm32_op_helper.c.o: in function `helper_wcsr_im':
target/lm32/op_helper.c:107: undefined reference to lm32_pic_set_im' libqemu-lm32-softmmu.fa.p/target_lm32_op_helper.c.o: in function helper_wcsr_ip':
target/lm32/op_helper.c:114: undefined reference to lm32_pic_set_ip' libqemu-lm32-softmmu.fa.p/target_lm32_op_helper.c.o: in function helper_wcsr_jtx':
target/lm32/op_helper.c:120: undefined reference to lm32_juart_set_jtx' libqemu-lm32-softmmu.fa.p/target_lm32_op_helper.c.o: in function helper_wcsr_jrx':
target/lm32/op_helper.c:125: undefined reference to lm32_juart_set_jrx' libqemu-lm32-softmmu.fa.p/target_lm32_translate.c.o: in function lm32_cpu_dump_state':
target/lm32/translate.c:1161: undefined reference to lm32_pic_get_ip' target/lm32/translate.c:1161: undefined reference to lm32_pic_get_im'
--- hw/lm32/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/lm32/Kconfig +1 -1
@@ -6,11 +6,11 @@ config MILKYMIST bool # FIXME: disabling it results in compile-time errors select MILKYMIST_TMU2 if OPENGL && X11 - select PTIMER select PFLASH_CFI01 select FRAMEBUFFER select SD select USB_OHCI + select LM32_DEVICES config LM32_EVR bool
Signature · 1 line
2.26.2
Laurent Vivier
AppliedRe: [PATCH v2 3/3] hw/lm32/Kconfig: Have MILKYMIST select LM32_DEVICES
Le 21/02/2021 à 23:56, Philippe Mathieu-Daudé a écrit :
Quoted 33 lines
The Milkymist board requires more than the PTIMER. Directly select the
LM32_DEVICES. This fixes:
/usr/bin/ld:
libqemu-lm32-softmmu.fa.p/target_lm32_gdbstub.c.o: in function `lm32_cpu_gdb_read_register':
target/lm32/gdbstub.c:46: undefined reference tolm32_pic_get_im' target/lm32/gdbstub.c:48: undefined reference tolm32_pic_get_ip'libqemu-lm32-softmmu.fa.p/target_lm32_op_helper.c.o: in function `helper_wcsr_im':
target/lm32/op_helper.c:107: undefined reference tolm32_pic_set_im' libqemu-lm32-softmmu.fa.p/target_lm32_op_helper.c.o: in functionhelper_wcsr_ip':
target/lm32/op_helper.c:114: undefined reference tolm32_pic_set_ip' libqemu-lm32-softmmu.fa.p/target_lm32_op_helper.c.o: in functionhelper_wcsr_jtx':
target/lm32/op_helper.c:120: undefined reference tolm32_juart_set_jtx' libqemu-lm32-softmmu.fa.p/target_lm32_op_helper.c.o: in functionhelper_wcsr_jrx':
target/lm32/op_helper.c:125: undefined reference tolm32_juart_set_jrx' libqemu-lm32-softmmu.fa.p/target_lm32_translate.c.o: in functionlm32_cpu_dump_state':
target/lm32/translate.c:1161: undefined reference tolm32_pic_get_ip' target/lm32/translate.c:1161: undefined reference tolm32_pic_get_im'Reviewed-by Alex Bennée <[email protected]>Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- hw/lm32/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/lm32/Kconfig +0
-0@@ -6,11 +6,11 @@ config MILKYMIST bool # FIXME: disabling it results in compile-time errors
hw/lm32/Kconfig config MILKYMIST · line 16
Quoted 10 lines
hw/lm32/Kconfig +1
-1select MILKYMIST_TMU2 if OPENGL && X11 - select PTIMER select PFLASH_CFI01 select FRAMEBUFFER select SD select USB_OHCI + select LM32_DEVICES config LM32_EVR bool
Applied to my trivial-patches branch.
Thanks,
Laurent
ping?
Quoted 26 lines · Philippe Mathieu-Daudé
Hi Laurent,
This series is fully reviewed. Since LM32 is not very active, can this go via qemu-trivial@?
Thanks,
Phil.
v2: Rebased
Supersedes: <[email protected]>
Philippe Mathieu-Daudé (3):
hw/lm32/Kconfig: IntroduceCONFIG_LM32_EVRfor lm32-evr/uclinux boards hw/lm32/Kconfig: RenameCONFIG_LM32->CONFIG_LM32_DEVICEShw/lm32/Kconfig: Have MILKYMIST selectLM32_DEVICESdefault-configs/devices/lm32-softmmu.mak | 2 +- hw/char/meson.build | 4 ++-- hw/intc/meson.build | 2 +- hw/lm32/Kconfig | 10 +++++++--- hw/lm32/meson.build | 2 +- hw/timer/meson.build | 2 +- 6 files changed, 13 insertions(+), 9 deletions(-)