package/runc: add host package

Signed-off-by: Christian Stewart <christian@paral.in>
[yann.morin.1998@free.fr:
  - drop unneeded _BIN_NAME and _INSTALL_BINS
  - s/OCP/OCI/
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Christian Stewart 2022-07-24 17:24:14 -07:00 committed by Yann E. MORIN
parent 8382574d58
commit 68bca98ee8
3 changed files with 13 additions and 0 deletions

View File

@ -82,6 +82,7 @@ menu "Host utilities"
source "package/raspberrypi-usbboot/Config.in.host"
source "package/rauc/Config.in.host"
source "package/riscv-isa-sim/Config.in.host"
source "package/runc/Config.in.host"
source "package/rustc/Config.in.host"
source "package/s6-rc/Config.in.host"
source "package/sam-ba/Config.in.host"

View File

@ -0,0 +1,8 @@
config BR2_PACKAGE_HOST_RUNC
bool "host runc"
depends on BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS
help
runC is a CLI tool for spawning and running containers
according to the OCI specification.
https://github.com/opencontainers/runc

View File

@ -23,4 +23,8 @@ RUNC_TAGS += seccomp
RUNC_DEPENDENCIES += libseccomp host-pkgconf
endif
HOST_RUNC_LDFLAGS = $(RUNC_LDFLAGS)
HOST_RUNC_TAGS = cgo static_build
$(eval $(golang-package))
$(eval $(host-golang-package))