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>
This commit is contained in:
Christian Stewart 2022-01-23 23:48:53 -08:00 committed by Thomas Petazzoni
parent 94ab3132cc
commit cda5dff3c1
3 changed files with 15 additions and 0 deletions

View File

@ -55,6 +55,7 @@ menu "Host utilities"
source "package/meson-tools/Config.in.host"
source "package/mfgtools/Config.in.host"
source "package/mkpasswd/Config.in.host"
source "package/moby-buildkit/Config.in.host"
source "package/mtd/Config.in.host"
source "package/mtools/Config.in.host"
source "package/mxsldr/Config.in.host"

View File

@ -0,0 +1,8 @@
config BR2_PACKAGE_HOST_MOBY_BUILDKIT
bool "host moby-buildkit"
depends on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS
help
BuildKit is a toolkit for converting source code to build
artifacts in an efficient expressive and repeatable manner.
https://github.com/moby/buildkit

View File

@ -19,4 +19,10 @@ MOBY_BUILDKIT_LDFLAGS = \
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))