pull/13762/head
Sharif Elgamal 2022-04-26 13:01:51 -07:00
parent 844b9cbb31
commit b1e280eb8d
6 changed files with 92 additions and 90 deletions

View File

@ -1,45 +0,0 @@
################################################################################
#
# runc
#
################################################################################
# As of 2021-12-03, v1.0.3
RUNC_MASTER_VERSION = f46b6ba2c9314cfc8caae24a32ec5fe9ef1059fe
RUNC_MASTER_SITE = https://github.com/opencontainers/runc/archive
RUNC_MASTER_SOURCE = $(RUNC_MASTER_VERSION).tar.gz
RUNC_MASTER_LICENSE = Apache-2.0
RUNC_MASTER_LICENSE_FILES = LICENSE
RUNC_MASTER_DEPENDENCIES = host-go
RUNC_MASTER_GOPATH = $(@D)/_output
RUNC_MASTER_MAKE_ENV = \
$(GO_TARGET_ENV) \
CGO_ENABLED=1 \
GO111MODULE=off \
GOPATH="$(RUNC_MASTER_GOPATH)" \
GOBIN="$(RUNC_MASTER_GOPATH)/bin" \
PATH=$(RUNC_MASTER_GOPATH)/bin:$(BR_PATH)
RUNC_MASTER_COMPILE_SRC = $(RUNC_MASTER_GOPATH)/src/github.com/opencontainers/runc
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
RUNC_MASTER_GOTAGS += seccomp
RUNC_MASTER_DEPENDENCIES += libseccomp host-pkgconf
endif
define RUNC_MASTER_CONFIGURE_CMDS
mkdir -p $(RUNC_MASTER_GOPATH)/src/github.com/opencontainers
ln -s $(@D) $(RUNC_MASTER_GOPATH)/src/github.com/opencontainers/runc
endef
define RUNC_MASTER_BUILD_CMDS
PWD=$(RUNC_MASTER_COMPILE_SRC) $(RUNC_MASTER_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) BUILDTAGS="$(RUNC_MASTER_GOTAGS)" COMMIT_NO=$(RUNC_MASTER_VERSION) COMMIT=$(RUNC_MASTER_VERSION) PREFIX=/usr
endef
define RUNC_MASTER_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/runc $(TARGET_DIR)/usr/bin/runc
endef
$(eval $(generic-package))

View File

@ -0,0 +1,46 @@
################################################################################
#
# runc
#
################################################################################
# As of 2021-12-03, v1.0.3
RUNC_VERSION = f46b6ba2c9314cfc8caae24a32ec5fe9ef1059fe
RUNC_SITE = https://github.com/opencontainers/runc/archive
RUNC_SOURCE = $(RUNC_VERSION).tar.gz
RUNC_LICENSE = Apache-2.0
RUNC_LICENSE_FILES = LICENSE
RUNC_DEPENDENCIES = host-go
RUNC_GOPATH = $(@D)/_output
RUNC_MAKE_ENV = \
$(GO_TARGET_ENV) \
CGO_ENABLED=1 \
GO111MODULE=off \
GOPATH="$(RUNC_GOPATH)" \
GOBIN="$(RUNC_GOPATH)/bin" \
PATH=$(RUNC_GOPATH)/bin:$(BR_PATH) \
GOARCH=arm64
RUNC_COMPILE_SRC = $(RUNC_GOPATH)/src/github.com/opencontainers/runc
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
RUNC_GOTAGS += seccomp
RUNC_DEPENDENCIES += libseccomp host-pkgconf
endif
define RUNC_CONFIGURE_CMDS
mkdir -p $(RUNC_GOPATH)/src/github.com/opencontainers
ln -s $(@D) $(RUNC_GOPATH)/src/github.com/opencontainers/runc
endef
define RUNC_BUILD_CMDS
PWD=$(RUNC_COMPILE_SRC) $(RUNC_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) BUILDTAGS="$(RUNC_GOTAGS)" COMMIT_NO=$(RUNC_VERSION) COMMIT=$(RUNC_VERSION) PREFIX=/usr
endef
define RUNC_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/runc $(TARGET_DIR)/usr/bin/runc
endef
$(eval $(generic-package))

View File

@ -1,45 +0,0 @@
################################################################################
#
# runc
#
################################################################################
# As of 2021-12-03, v1.0.3
RUNC_MASTER_VERSION = f46b6ba2c9314cfc8caae24a32ec5fe9ef1059fe
RUNC_MASTER_SITE = https://github.com/opencontainers/runc/archive
RUNC_MASTER_SOURCE = $(RUNC_MASTER_VERSION).tar.gz
RUNC_MASTER_LICENSE = Apache-2.0
RUNC_MASTER_LICENSE_FILES = LICENSE
RUNC_MASTER_DEPENDENCIES = host-go
RUNC_MASTER_GOPATH = $(@D)/_output
RUNC_MASTER_MAKE_ENV = \
$(GO_TARGET_ENV) \
CGO_ENABLED=1 \
GO111MODULE=off \
GOPATH="$(RUNC_MASTER_GOPATH)" \
GOBIN="$(RUNC_MASTER_GOPATH)/bin" \
PATH=$(RUNC_MASTER_GOPATH)/bin:$(BR_PATH)
RUNC_MASTER_COMPILE_SRC = $(RUNC_MASTER_GOPATH)/src/github.com/opencontainers/runc
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
RUNC_MASTER_GOTAGS += seccomp
RUNC_MASTER_DEPENDENCIES += libseccomp host-pkgconf
endif
define RUNC_MASTER_CONFIGURE_CMDS
mkdir -p $(RUNC_MASTER_GOPATH)/src/github.com/opencontainers
ln -s $(@D) $(RUNC_MASTER_GOPATH)/src/github.com/opencontainers/runc
endef
define RUNC_MASTER_BUILD_CMDS
PWD=$(RUNC_MASTER_COMPILE_SRC) $(RUNC_MASTER_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) BUILDTAGS="$(RUNC_MASTER_GOTAGS)" COMMIT_NO=$(RUNC_MASTER_VERSION) COMMIT=$(RUNC_MASTER_VERSION) PREFIX=/usr
endef
define RUNC_MASTER_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/runc $(TARGET_DIR)/usr/bin/runc
endef
$(eval $(generic-package))

View File

@ -0,0 +1,46 @@
################################################################################
#
# runc
#
################################################################################
# As of 2021-12-03, v1.0.3
RUNC_VERSION = f46b6ba2c9314cfc8caae24a32ec5fe9ef1059fe
RUNC_SITE = https://github.com/opencontainers/runc/archive
RUNC_SOURCE = $(RUNC_VERSION).tar.gz
RUNC_LICENSE = Apache-2.0
RUNC_LICENSE_FILES = LICENSE
RUNC_DEPENDENCIES = host-go
RUNC_GOPATH = $(@D)/_output
RUNC_MAKE_ENV = \
$(GO_TARGET_ENV) \
CGO_ENABLED=1 \
GO111MODULE=off \
GOPATH="$(RUNC_GOPATH)" \
GOBIN="$(RUNC_GOPATH)/bin" \
PATH=$(RUNC_GOPATH)/bin:$(BR_PATH) \
GOARCH=amd64
RUNC_COMPILE_SRC = $(RUNC_GOPATH)/src/github.com/opencontainers/runc
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
RUNC_GOTAGS += seccomp
RUNC_DEPENDENCIES += libseccomp host-pkgconf
endif
define RUNC_CONFIGURE_CMDS
mkdir -p $(RUNC_GOPATH)/src/github.com/opencontainers
ln -s $(@D) $(RUNC_GOPATH)/src/github.com/opencontainers/runc
endef
define RUNC_BUILD_CMDS
PWD=$(RUNC_COMPILE_SRC) $(RUNC_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) BUILDTAGS="$(RUNC_GOTAGS)" COMMIT_NO=$(RUNC_VERSION) COMMIT=$(RUNC_VERSION) PREFIX=/usr
endef
define RUNC_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/runc $(TARGET_DIR)/usr/bin/runc
endef
$(eval $(generic-package))