package/delve: new package
authorChristian Stewart <christian@paral.in>
Thu, 10 Dec 2020 07:27:20 +0000 (23:27 -0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 2 Jan 2021 17:28:02 +0000 (18:28 +0100)
Delve is a debugger for the Go programming language.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/delve/Config.in [new file with mode: 0644]
package/delve/delve.hash [new file with mode: 0644]
package/delve/delve.mk [new file with mode: 0644]

index a618b11d98cb42cc44c6f52524065f4130770fe0..b19a12be5adbb8ec6e2716e379d47bea56b07d47 100644 (file)
@@ -505,6 +505,7 @@ F:  linux/linux-ext-aufs.mk
 F:     package/aufs/
 F:     package/aufs-util/
 F:     package/batman-adv/
+F:     package/delve/
 F:     package/docker-cli/
 F:     package/docker-containerd/
 F:     package/docker-engine/
index 9f55133c127ef55c8886898726fb68a5fdff1f84..2a516df4c6f89e4af2ff88afe879b04a5fc26f64 100644 (file)
@@ -88,6 +88,7 @@ menu "Debugging, profiling and benchmark"
        source "package/cache-calibrator/Config.in"
        source "package/clinfo/Config.in"
        source "package/dacapo/Config.in"
+       source "package/delve/Config.in"
        source "package/dhrystone/Config.in"
        source "package/dieharder/Config.in"
        source "package/dmalloc/Config.in"
diff --git a/package/delve/Config.in b/package/delve/Config.in
new file mode 100644 (file)
index 0000000..9428e40
--- /dev/null
@@ -0,0 +1,22 @@
+# Supported architectures are listed in
+# pkg/proc/native/support_sentinel.go
+config BR2_PACKAGE_DELVE_ARCH_SUPPORTS
+       bool
+       default y if BR2_aarch64
+       default y if BR2_i386
+       default y if BR2_x86_64
+       depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
+       depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
+
+config BR2_PACKAGE_DELVE
+       bool "delve"
+       depends on BR2_PACKAGE_DELVE_ARCH_SUPPORTS
+       depends on BR2_TOOLCHAIN_HAS_THREADS
+       help
+         Delve is a debugger for the Go programming language.
+
+         https://github.com/go-delve/delve
+
+comment "delve needs a toolchain w/ threads"
+       depends on BR2_PACKAGE_DELVE_ARCH_SUPPORTS
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/delve/delve.hash b/package/delve/delve.hash
new file mode 100644 (file)
index 0000000..e8bb9c3
--- /dev/null
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  f8bbaecdfc9d1ff6148900d3dea44b6dd06a7f0197be4e9a75c289b7f62682ab  delve-1.5.0.tar.gz
+sha256 778864b990007e8cef6633f8c372dd05bac1fada6cf67b008afb1483f83b38f5  LICENSE
diff --git a/package/delve/delve.mk b/package/delve/delve.mk
new file mode 100644 (file)
index 0000000..f574bc5
--- /dev/null
@@ -0,0 +1,17 @@
+################################################################################
+#
+# delve
+#
+################################################################################
+
+DELVE_VERSION = 1.5.0
+DELVE_SITE = $(call github,go-delve,delve,v$(DELVE_VERSION))
+DELVE_LICENSE = MIT
+DELVE_LICENSE_FILES = LICENSE
+DELVE_DEPENDENCIES = host-pkgconf
+
+DELVE_TAGS = cgo
+DELVE_BUILD_TARGETS = cmd/dlv
+DELVE_INSTALL_BINS = $(notdir $(DELVE_BUILD_TARGETS))
+
+$(eval $(golang-package))