kumquat-buildroot/package/moby-buildkit/moby-buildkit.mk
Christian Stewart cda5dff3c1 package/moby-buildkit: support building as host package
Users may want to use buildkitd and buildkitctl to build images on the host.

Adds package host-moby-buildkit and BR2_PACKAGE_HOST_MOBY_BUILDKIT.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2022-07-27 09:46:27 +02:00

29 lines
894 B
Makefile

################################################################################
#
# moby-buildkit
#
################################################################################
MOBY_BUILDKIT_VERSION = 0.10.0
MOBY_BUILDKIT_SITE = $(call github,moby,buildkit,v$(MOBY_BUILDKIT_VERSION))
MOBY_BUILDKIT_LICENSE = Apache-2.0
MOBY_BUILDKIT_LICENSE_FILES = LICENSE
MOBY_BUILDKIT_GOMOD = github.com/moby/buildkit
MOBY_BUILDKIT_TAGS = cgo
MOBY_BUILDKIT_BUILD_TARGETS = cmd/buildctl cmd/buildkitd
MOBY_BUILDKIT_LDFLAGS = \
-X $(MOBY_BUILDKIT_GOMOD)/version.Version="$(MOBY_BUILDKIT_VERSION)"
MOBY_BUILDKIT_INSTALL_BINS = $(notdir $(MOBY_BUILDKIT_BUILD_TARGETS))
HOST_MOBY_BUILDKIT_TAGS = cgo
HOST_MOBY_BUILDKIT_BUILD_TARGETS = cmd/buildctl cmd/buildkitd
HOST_MOBY_BUILDKIT_INSTALL_BINS = $(notdir $(HOST_MOBY_BUILDKIT_BUILD_TARGETS))
$(eval $(golang-package))
$(eval $(host-golang-package))