From 291ddc0ebc533ecf3ecafd1f6c6d2a186b94ce66 Mon Sep 17 00:00:00 2001 From: Alp Sayin Date: Mon, 30 Jan 2023 13:09:18 +0000 Subject: [PATCH] boards: kconfig: qemu: introduce QEMU_GDBSERVER_LISTEN_DEV Introduce new string option to pass into QEMU invocation so that gdbserver listeners other than `-s` (tcp::1234) can be set. Signed-off-by: Alp Sayin --- boards/Kconfig | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/boards/Kconfig b/boards/Kconfig index 5a0adb67ea5..fbab1e97d98 100644 --- a/boards/Kconfig +++ b/boards/Kconfig @@ -99,6 +99,18 @@ config QEMU_UEFI_BOOT This option indicates that QEMU will use UEFI bootable method to boot up. +config QEMU_GDBSERVER_LISTEN_DEV + string "QEMU gdbserver listen device" + default "tcp::1234" + depends on QEMU_TARGET + help + This options is passed onto QEMU as a parameter to `-gdb` option. + The default value is equivalent to `-s` which is a shorthand for + `-gdb tcp::1234`. An empty value omits the `-gdb` parameter altogether. + This allows the injection of `-gdb` parameter from other sources such + as the `QEMU_EXTRA_FLAGS` environment variable. Refer to application + development doc and/or QEMU invocation doc for more info. + # There might not be any board options, hence the optional source osource "$(BOARD_DIR)/Kconfig" endmenu