|
@@ -42,12 +42,13 @@ define inner-golang-package
|
|
|
|
|
|
$(2)_BUILD_OPTS += \
|
|
$(2)_BUILD_OPTS += \
|
|
-ldflags "$$($(2)_LDFLAGS)" \
|
|
-ldflags "$$($(2)_LDFLAGS)" \
|
|
|
|
+ -modcacherw \
|
|
-tags "$$($(2)_TAGS)" \
|
|
-tags "$$($(2)_TAGS)" \
|
|
-trimpath \
|
|
-trimpath \
|
|
-p $(PARALLEL_JOBS)
|
|
-p $(PARALLEL_JOBS)
|
|
|
|
|
|
# Target packages need the Go compiler on the host.
|
|
# Target packages need the Go compiler on the host.
|
|
-$(2)_DEPENDENCIES += host-go
|
|
|
|
|
|
+$(2)_DOWNLOAD_DEPENDENCIES += host-go
|
|
|
|
|
|
$(2)_BUILD_TARGETS ?= .
|
|
$(2)_BUILD_TARGETS ?= .
|
|
|
|
|
|
@@ -81,6 +82,16 @@ define $(2)_GEN_GOMOD
|
|
endef
|
|
endef
|
|
$(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD
|
|
$(2)_POST_PATCH_HOOKS += $(2)_GEN_GOMOD
|
|
|
|
|
|
|
|
+$(2)_DOWNLOAD_POST_PROCESS = go
|
|
|
|
+$(2)_DL_ENV = \
|
|
|
|
+ $(HOST_GO_COMMON_ENV) \
|
|
|
|
+ GOPROXY=direct \
|
|
|
|
+ BR_GOMOD=$$($(2)_GOMOD)
|
|
|
|
+
|
|
|
|
+# Due to vendoring, it is pretty likely that not all licenses are
|
|
|
|
+# listed in <pkg>_LICENSE.
|
|
|
|
+$(2)_LICENSE += , vendored dependencies licenses probably not listed
|
|
|
|
+
|
|
# Build step. Only define it if not already defined by the package .mk
|
|
# Build step. Only define it if not already defined by the package .mk
|
|
# file.
|
|
# file.
|
|
ifndef $(2)_BUILD_CMDS
|
|
ifndef $(2)_BUILD_CMDS
|