btrfs handling doesn't depend on btrfs-progs but on kernel >= 4.12 since bump to version 1.7.7 in commit79e01ef950
and024a748c09
resulting in the following build failure: In file included from vendor/github.com/containerd/btrfs/v2/btrfs.go:21:0: ./btrfs.h:19:2: error: #error "Headers from kernel >= 4.12 are required on compilation time (not on run time)" #error "Headers from kernel >= 4.12 are required on compilation time (not on run time)" ^~~~~ In file included from vendor/github.com/containerd/btrfs/v2/btrfs.go:21:0: ./btrfs.h:22:10: fatal error: linux/btrfs_tree.h: No such file or directory #include <linux/btrfs_tree.h> ^~~~~~~~~~~~~~~~~~~~ Fixes:79e01ef950
- http://autobuild.buildroot.org/results/d6afeef47daae1783dcce3e2b6a0a16e3e5d5fbd Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# containerd
|
|
#
|
|
################################################################################
|
|
|
|
CONTAINERD_VERSION = 1.7.13
|
|
CONTAINERD_SITE = $(call github,containerd,containerd,v$(CONTAINERD_VERSION))
|
|
CONTAINERD_LICENSE = Apache-2.0
|
|
CONTAINERD_LICENSE_FILES = LICENSE
|
|
CONTAINERD_CPE_ID_VENDOR = linuxfoundation
|
|
|
|
CONTAINERD_GOMOD = github.com/containerd/containerd
|
|
|
|
CONTAINERD_LDFLAGS = \
|
|
-X $(CONTAINERD_GOMOD)/version.Version=$(CONTAINERD_VERSION)
|
|
|
|
CONTAINERD_BUILD_TARGETS = \
|
|
cmd/containerd \
|
|
cmd/containerd-shim \
|
|
cmd/containerd-shim-runc-v1 \
|
|
cmd/containerd-shim-runc-v2 \
|
|
cmd/ctr
|
|
|
|
CONTAINERD_INSTALL_BINS = $(notdir $(CONTAINERD_BUILD_TARGETS))
|
|
CONTAINERD_TAGS = no_aufs
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBAPPARMOR),y)
|
|
CONTAINERD_DEPENDENCIES += libapparmor
|
|
CONTAINERD_TAGS += apparmor
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
|
CONTAINERD_DEPENDENCIES += libseccomp host-pkgconf
|
|
CONTAINERD_TAGS += seccomp
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_CONTAINERD_DRIVER_BTRFS),y)
|
|
CONTAINERD_TAGS += no_btrfs
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_CONTAINERD_DRIVER_DEVMAPPER),y)
|
|
CONTAINERD_TAGS += no_devmapper
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_CONTAINERD_DRIVER_ZFS),y)
|
|
CONTAINERD_TAGS += no_zfs
|
|
endif
|
|
|
|
ifneq ($(BR2_PACKAGE_CONTAINERD_CRI),y)
|
|
CONTAINERD_TAGS += no_cri
|
|
endif
|
|
|
|
define CONTAINERD_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 0644 $(@D)/containerd.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/containerd.service
|
|
$(SED) 's,/usr/local/bin,/usr/bin,g' $(TARGET_DIR)/usr/lib/systemd/system/containerd.service
|
|
endef
|
|
|
|
$(eval $(golang-package))
|