From 68bca98ee8fc40426259826cfb0600e8995ff10c Mon Sep 17 00:00:00 2001 From: Christian Stewart Date: Sun, 24 Jul 2022 17:24:14 -0700 Subject: [PATCH] package/runc: add host package Signed-off-by: Christian Stewart [yann.morin.1998@free.fr: - drop unneeded _BIN_NAME and _INSTALL_BINS - s/OCP/OCI/ ] Signed-off-by: Yann E. MORIN --- package/Config.in.host | 1 + package/runc/Config.in.host | 8 ++++++++ package/runc/runc.mk | 4 ++++ 3 files changed, 13 insertions(+) create mode 100644 package/runc/Config.in.host diff --git a/package/Config.in.host b/package/Config.in.host index 71f2a9311c..8078a8304d 100644 --- a/package/Config.in.host +++ b/package/Config.in.host @@ -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" diff --git a/package/runc/Config.in.host b/package/runc/Config.in.host new file mode 100644 index 0000000000..4b2555e029 --- /dev/null +++ b/package/runc/Config.in.host @@ -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 diff --git a/package/runc/runc.mk b/package/runc/runc.mk index 5faa8b683d..b87d07acca 100644 --- a/package/runc/runc.mk +++ b/package/runc/runc.mk @@ -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))