package/moby-buildkit: new package

Signed-off-by: Christian Stewart <christian@paral.in>
[Romain:
  - remove host-pkgconf dependency
  - Add the license file hash
  - Fix the check-package warning in Config.in]
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Christian Stewart 2022-01-09 22:06:07 +01:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 7bdb65b310
commit 4e33104c26
5 changed files with 46 additions and 0 deletions

View File

@ -533,6 +533,7 @@ F: package/fuse-overlayfs/
F: package/go/
F: package/gocryptfs/
F: package/mbpfan/
F: package/moby-buildkit/
F: package/mosh/
F: package/pkg-golang.mk
F: package/rtl8821au/

View File

@ -2556,6 +2556,7 @@ menu "System tools"
source "package/mender/Config.in"
source "package/mender-grubenv/Config.in"
source "package/mfoc/Config.in"
source "package/moby-buildkit/Config.in"
source "package/monit/Config.in"
source "package/multipath-tools/Config.in"
source "package/ncdu/Config.in"

View File

@ -0,0 +1,19 @@
config BR2_PACKAGE_MOBY_BUILDKIT
bool "moby-buildkit"
depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_TOOLCHAIN_USES_UCLIBC
depends on BR2_USE_MMU
select BR2_PACKAGE_CGROUPFS_MOUNT if !BR2_PACKAGE_SYSTEMD # runtime dependency
help
BuildKit is a toolkit for converting source code to build
artifacts in an efficient, expressive and repeatable manner.
https://github.com/moby/buildkit
comment "moby-buildkit needs a glibc or musl toolchain w/ threads"
depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS
depends on BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_USES_UCLIBC
depends on BR2_USE_MMU

View File

@ -0,0 +1,3 @@
# Locally calculated
sha256 0cc31aa4b6dcdead63b07d75e0b89495ecffcc183f4f62695d8bb507433fc8ff moby-buildkit-0.8.1.tar.gz
sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE

View File

@ -0,0 +1,22 @@
################################################################################
#
# moby-buildkit
#
################################################################################
MOBY_BUILDKIT_VERSION = 0.8.1
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))
$(eval $(golang-package))