Update buildroot & docker (#25)

* Update docker & buildroot

* Fix

* fix versions
This commit is contained in:
Pascal Vizeli
2018-05-28 14:58:22 +02:00
committed by GitHub
parent 7db3226a8e
commit b13086072c
1887 changed files with 22062 additions and 18015 deletions

View File

@@ -1,2 +1,2 @@
# Locally computed
sha256 df8e7cd1d332d97b468ee455164f3959246bb5fc639dd8042d0db3bded621ad7 runc-6c55f98695e902427906eed2c799e566e3d3dfb5.tar.gz
sha256 770e180d1cca1f3c1a67512ebf9720caafe97af4fc2fe12fa43a3cf7bfa77522 runc-v1.0.0-rc5.tar.gz

View File

@@ -4,51 +4,18 @@
#
################################################################################
RUNC_VERSION = 6c55f98695e902427906eed2c799e566e3d3dfb5
RUNC_VERSION = v1.0.0-rc5
RUNC_SITE = $(call github,opencontainers,runc,$(RUNC_VERSION))
RUNC_LICENSE = Apache-2.0
RUNC_LICENSE_FILES = LICENSE
RUNC_DEPENDENCIES = host-go
RUNC_WORKSPACE = Godeps/_workspace
RUNC_GOPATH = $(@D)/gopath
RUNC_MAKE_ENV = $(HOST_GO_TARGET_ENV) \
CGO_ENABLED=1 \
GOBIN="$(@D)/bin" \
GOPATH="$(RUNC_GOPATH)" \
PATH=$(BR_PATH)
RUNC_GOTAGS = cgo apparmor
RUNC_GLDFLAGS = \
-X main.gitCommit=$(RUNC_VERSION)
ifeq ($(BR2_STATIC_LIBS),y)
RUNC_GLDFLAGS += -extldflags '-static'
RUNC_GOTAGS += static_build
endif
RUNC_TAGS = cgo static_build apparmor
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
RUNC_GOTAGS += seccomp
RUNC_TAGS += 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
cd $(RUNC_GOPATH)/src/github.com/opencontainers/runc; \
$(RUNC_MAKE_ENV) \
$(HOST_DIR)/bin/go build -v -i \
-o $(@D)/bin/runc \
-tags "$(RUNC_GOTAGS)" \
-ldflags "$(RUNC_GLDFLAGS)" \
./
endef
define RUNC_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/bin/runc $(TARGET_DIR)/usr/bin/runc
endef
$(eval $(generic-package))
$(eval $(golang-package))