• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/docker-containerd/docker-containerd.mk
Arnout VandecappelleArnout Vandecappelle committed 0f9c0bf3d5c05 Jul 2017
Raw file
Source viewDiff to previous
 
1
################################################################################
2
#
3
# docker-containerd
4
#
5
################################################################################
6
​
7
DOCKER_CONTAINERD_VERSION = 9048e5e50717ea4497b757314bad98ea3763c145
8
DOCKER_CONTAINERD_SITE = $(call github,docker,containerd,$(DOCKER_CONTAINERD_VERSION))
9
DOCKER_CONTAINERD_LICENSE = Apache-2.0
10
DOCKER_CONTAINERD_LICENSE_FILES = LICENSE.code
11
​
12
DOCKER_CONTAINERD_DEPENDENCIES = host-go
13
​
14
DOCKER_CONTAINERD_GOPATH = "$(@D)/vendor"
15
DOCKER_CONTAINERD_MAKE_ENV = $(HOST_GO_TARGET_ENV) \
16
    CGO_ENABLED=1 \
17
    GOBIN="$(@D)/bin" \
18
    GOPATH="$(DOCKER_CONTAINERD_GOPATH)"
19
​
20
DOCKER_CONTAINERD_GLDFLAGS = \
21
    -X github.com/docker/containerd.GitCommit=$(DOCKER_CONTAINERD_VERSION)
22
​
23
ifeq ($(BR2_STATIC_LIBS),y)
24
DOCKER_CONTAINERD_GLDFLAGS += -extldflags '-static'
25
endif
26
​
27
define DOCKER_CONTAINERD_CONFIGURE_CMDS
28
    mkdir -p $(DOCKER_CONTAINERD_GOPATH)/src/github.com/docker
29
    ln -s $(@D) $(DOCKER_CONTAINERD_GOPATH)/src/github.com/docker/containerd
30
    mkdir -p $(DOCKER_CONTAINERD_GOPATH)/src/github.com/opencontainers
31
    ln -s $(RUNC_SRCDIR) $(DOCKER_CONTAINERD_GOPATH)/src/github.com/opencontainers/runc
32
endef
33
​
34
define DOCKER_CONTAINERD_BUILD_CMDS
35
    $(foreach d,ctr containerd containerd-shim,\
36
        cd $(@D); $(DOCKER_CONTAINERD_MAKE_ENV) $(HOST_DIR)/bin/go build \
37
            -v -o $(@D)/bin/$(d) -ldflags "$(DOCKER_CONTAINERD_GLDFLAGS)" ./$(d)$(sep))
38
endef
39
​
40
define DOCKER_CONTAINERD_INSTALL_TARGET_CMDS
41
    ln -fs runc $(TARGET_DIR)/usr/bin/docker-runc
42
    $(INSTALL) -D -m 0755 $(@D)/bin/containerd $(TARGET_DIR)/usr/bin/docker-containerd
43
    $(INSTALL) -D -m 0755 $(@D)/bin/containerd-shim $(TARGET_DIR)/usr/bin/containerd-shim
44
    ln -fs containerd-shim $(TARGET_DIR)/usr/bin/docker-containerd-shim
45
endef
46
​
47
$(eval $(generic-package))
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.