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:
parent
37097d6d60
commit
6e7b8f9412
@ -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"
|
||||
|
7
package/delve/Config.in.host
Normal file
7
package/delve/Config.in.host
Normal 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
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user