package/delve: support building as host package

Users may want to debug Go programs using dlv on the host machine.

Adds package host-delve and BR2_PACKAGE_HOST_DELVE.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Christian Stewart 2022-01-23 23:25:27 -08:00 committed by Thomas Petazzoni
parent 37097d6d60
commit 6e7b8f9412
3 changed files with 13 additions and 0 deletions

View File

@ -14,6 +14,7 @@ menu "Host utilities"
source "package/cramfs/Config.in.host"
source "package/cryptsetup/Config.in.host"
source "package/dbus-python/Config.in.host"
source "package/delve/Config.in.host"
source "package/dfu-util/Config.in.host"
source "package/dos2unix/Config.in.host"
source "package/dosfstools/Config.in.host"

View File

@ -0,0 +1,7 @@
config BR2_PACKAGE_HOST_DELVE
bool "host delve"
depends on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS
help
Delve is a debugger for the Go programming language.
https://github.com/go-delve/delve

View File

@ -14,4 +14,9 @@ DELVE_TAGS = cgo
DELVE_BUILD_TARGETS = cmd/dlv
DELVE_INSTALL_BINS = $(notdir $(DELVE_BUILD_TARGETS))
HOST_DELVE_TAGS = cgo
HOST_DELVE_BUILD_TARGETS = cmd/dlv
HOST_DELVE_INSTALL_BINS = $(notdir $(HOST_DELVE_BUILD_TARGETS))
$(eval $(golang-package))
$(eval $(host-golang-package))