• 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/flannel/flannel.mk
Arnout VandecappelleArnout Vandecappelle committed 0f9c0bf3d5c05 Jul 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
################################################################################
2
#
3
# flannel
4
#
5
################################################################################
6
​
7
FLANNEL_VERSION = v0.5.5
8
FLANNEL_SITE = https://github.com/coreos/flannel/archive
9
FLANNEL_SOURCE = $(FLANNEL_VERSION).tar.gz
10
​
11
FLANNEL_LICENSE = Apache-2.0
12
FLANNEL_LICENSE_FILES = LICENSE
13
​
14
FLANNEL_DEPENDENCIES = host-go
15
​
16
FLANNEL_MAKE_ENV = \
17
    $(HOST_GO_TARGET_ENV) \
18
    GOBIN="$(@D)/bin" \
19
    GOPATH="$(@D)/gopath" \
20
    CGO_ENABLED=1
21
​
22
FLANNEL_GLDFLAGS = \
23
    -X github.com/coreos/flannel/version.Version=$(FLANNEL_VERSION)
24
​
25
ifeq ($(BR2_STATIC_LIBS),y)
26
FLANNEL_GLDFLAGS += -extldflags '-static'
27
endif
28
​
29
define FLANNEL_CONFIGURE_CMDS
30
    # Put sources at prescribed GOPATH location.
31
    mkdir -p $(@D)/gopath/src/github.com/coreos
32
    ln -s $(@D) $(@D)/gopath/src/github.com/coreos/flannel
33
endef
34
​
35
define FLANNEL_BUILD_CMDS
36
    cd $(@D) && $(FLANNEL_MAKE_ENV) $(HOST_DIR)/bin/go \
37
        build -v -o $(@D)/bin/flanneld -ldflags "$(FLANNEL_GLDFLAGS)" .
38
endef
39
​
40
define FLANNEL_INSTALL_TARGET_CMDS
41
    # Install flannel to its well known location.
42
    $(INSTALL) -D -m 0755 $(@D)/bin/flanneld $(TARGET_DIR)/opt/bin/flanneld
43
    $(INSTALL) -D -m 0755 $(@D)/dist/mk-docker-opts.sh $(TARGET_DIR)/opt/bin/mk-docker-opts.sh
44
endef
45
​
46
$(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.