2016-07-05 00:30:32 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# docker-containerd
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-02-12 10:35:28 +01:00
|
|
|
DOCKER_CONTAINERD_VERSION = v1.2.3
|
2018-09-13 07:22:24 +02:00
|
|
|
DOCKER_CONTAINERD_SITE = $(call github,containerd,containerd,$(DOCKER_CONTAINERD_VERSION))
|
2016-07-05 00:30:32 +02:00
|
|
|
DOCKER_CONTAINERD_LICENSE = Apache-2.0
|
2018-09-13 07:22:24 +02:00
|
|
|
DOCKER_CONTAINERD_LICENSE_FILES = LICENSE
|
2016-07-05 00:30:32 +02:00
|
|
|
|
2018-03-31 15:27:34 +02:00
|
|
|
DOCKER_CONTAINERD_WORKSPACE = vendor
|
2016-07-05 00:30:32 +02:00
|
|
|
|
2018-03-31 15:27:34 +02:00
|
|
|
DOCKER_CONTAINERD_LDFLAGS = \
|
2016-07-24 16:43:45 +02:00
|
|
|
-X github.com/docker/containerd.GitCommit=$(DOCKER_CONTAINERD_VERSION)
|
|
|
|
|
2018-09-13 07:22:24 +02:00
|
|
|
DOCKER_CONTAINERD_BUILD_TARGETS = cmd/ctr cmd/containerd cmd/containerd-shim
|
2016-07-05 00:30:32 +02:00
|
|
|
|
2018-03-31 15:27:34 +02:00
|
|
|
DOCKER_CONTAINERD_INSTALL_BINS = containerd containerd-shim
|
2016-07-05 00:30:32 +02:00
|
|
|
|
2018-09-13 07:22:24 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
2018-12-28 16:07:40 +01:00
|
|
|
DOCKER_CONTAINERD_DEPENDENCIES += libseccomp host-pkgconf
|
2018-09-13 07:22:24 +02:00
|
|
|
DOCKER_CONTAINERD_TAGS += seccomp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_DOCKER_CONTAINERD_DRIVER_BTRFS),y)
|
|
|
|
DOCKER_CONTAINERD_DEPENDENCIES += btrfs-progs
|
|
|
|
else
|
|
|
|
DOCKER_CONTAINERD_TAGS += no_btrfs
|
|
|
|
endif
|
|
|
|
|
2018-03-31 15:27:34 +02:00
|
|
|
define DOCKER_CONTAINERD_INSTALL_SYMLINKS
|
2016-07-05 00:30:32 +02:00
|
|
|
ln -fs runc $(TARGET_DIR)/usr/bin/docker-runc
|
|
|
|
ln -fs containerd-shim $(TARGET_DIR)/usr/bin/docker-containerd-shim
|
2018-06-07 09:51:07 +02:00
|
|
|
ln -fs containerd $(TARGET_DIR)/usr/bin/docker-containerd
|
2016-07-05 00:30:32 +02:00
|
|
|
endef
|
|
|
|
|
2018-03-31 15:27:34 +02:00
|
|
|
DOCKER_CONTAINERD_POST_INSTALL_TARGET_HOOKS += DOCKER_CONTAINERD_INSTALL_SYMLINKS
|
|
|
|
|
|
|
|
$(eval $(golang-package))
|