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 <alpsayin@gmail.com>
This commit is contained in:
Alp Sayin 2023-01-30 13:09:18 +00:00 committed by Carles Cufí
parent 5760523091
commit 291ddc0ebc
1 changed files with 12 additions and 0 deletions

View File

@ -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