package/docker-containerd: specify correct build targets
authorChristian Stewart <christian@paral.in>
Wed, 16 Dec 2020 08:00:10 +0000 (00:00 -0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 30 Dec 2020 08:31:18 +0000 (09:31 +0100)
Adds build targets for runc shims.

Removes the outdated and now unnecessary symlinks to docker-runc
docker-containerd etc as well.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/docker-containerd/docker-containerd.mk

index 2eed6e346b78b99e92d8652a998eb4a939b2f358..418d588070670d207ef7131084a2df2e907271d7 100644 (file)
@@ -14,9 +14,14 @@ DOCKER_CONTAINERD_GOMOD = github.com/containerd/containerd
 DOCKER_CONTAINERD_LDFLAGS = \
        -X $(DOCKER_CONTAINERD_GOMOD)/version.Version=$(DOCKER_CONTAINERD_VERSION)
 
-DOCKER_CONTAINERD_BUILD_TARGETS = cmd/ctr cmd/containerd cmd/containerd-shim
+DOCKER_CONTAINERD_BUILD_TARGETS = \
+       cmd/containerd \
+       cmd/containerd-shim \
+       cmd/containerd-shim-runc-v1 \
+       cmd/containerd-shim-runc-v2 \
+       cmd/ctr
 
-DOCKER_CONTAINERD_INSTALL_BINS = containerd containerd-shim
+DOCKER_CONTAINERD_INSTALL_BINS = $(notdir $(DOCKER_CONTAINERD_BUILD_TARGETS))
 
 ifeq ($(BR2_PACKAGE_LIBAPPARMOR),y)
 DOCKER_CONTAINERD_DEPENDENCIES += libapparmor
@@ -34,12 +39,4 @@ else
 DOCKER_CONTAINERD_TAGS += no_btrfs
 endif
 
-define DOCKER_CONTAINERD_INSTALL_SYMLINKS
-       ln -fs runc $(TARGET_DIR)/usr/bin/docker-runc
-       ln -fs containerd-shim $(TARGET_DIR)/usr/bin/docker-containerd-shim
-       ln -fs containerd $(TARGET_DIR)/usr/bin/docker-containerd
-endef
-
-DOCKER_CONTAINERD_POST_INSTALL_TARGET_HOOKS += DOCKER_CONTAINERD_INSTALL_SYMLINKS
-
 $(eval $(golang-package))