Update buidlroot to version 2016.08.1
This commit is contained in:
15
bsp/buildroot/package/flannel/Config.in
Normal file
15
bsp/buildroot/package/flannel/Config.in
Normal file
@@ -0,0 +1,15 @@
|
||||
comment "flannel needs a toolchain w/ threads"
|
||||
depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS && \
|
||||
BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
config BR2_PACKAGE_FLANNEL
|
||||
bool "flannel"
|
||||
depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS
|
||||
depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
Flannel is a virtual network that gives a subnet to each
|
||||
host for use with container runtimes.
|
||||
|
||||
https://github.com/coreos/flannel
|
||||
2
bsp/buildroot/package/flannel/flannel.hash
Normal file
2
bsp/buildroot/package/flannel/flannel.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 dbbcb08c0e70713b0c920387a9967e5b30ef833c8118c847edbbca4f68ff0562 v0.5.5.tar.gz
|
||||
46
bsp/buildroot/package/flannel/flannel.mk
Normal file
46
bsp/buildroot/package/flannel/flannel.mk
Normal file
@@ -0,0 +1,46 @@
|
||||
################################################################################
|
||||
#
|
||||
# flannel
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FLANNEL_VERSION = v0.5.5
|
||||
FLANNEL_SITE = https://github.com/coreos/flannel/archive
|
||||
FLANNEL_SOURCE = $(FLANNEL_VERSION).tar.gz
|
||||
|
||||
FLANNEL_LICENSE = Apache-2.0
|
||||
FLANNEL_LICENSE_FILES = LICENSE
|
||||
|
||||
FLANNEL_DEPENDENCIES = host-go
|
||||
|
||||
FLANNEL_MAKE_ENV = \
|
||||
$(HOST_GO_TARGET_ENV) \
|
||||
GOBIN="$(@D)/bin" \
|
||||
GOPATH="$(@D)/gopath" \
|
||||
CGO_ENABLED=1
|
||||
|
||||
FLANNEL_GLDFLAGS = \
|
||||
-X github.com/coreos/flannel/version.Version=$(FLANNEL_VERSION) \
|
||||
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
FLANNEL_GLDFLAGS += -extldflags '-static'
|
||||
endif
|
||||
|
||||
define FLANNEL_CONFIGURE_CMDS
|
||||
# Put sources at prescribed GOPATH location.
|
||||
mkdir -p $(@D)/gopath/src/github.com/coreos
|
||||
ln -s $(@D) $(@D)/gopath/src/github.com/coreos/flannel
|
||||
endef
|
||||
|
||||
define FLANNEL_BUILD_CMDS
|
||||
cd $(@D) && $(FLANNEL_MAKE_ENV) $(HOST_DIR)/usr/bin/go \
|
||||
build -v -o $(@D)/bin/flanneld -ldflags "$(FLANNEL_GLDFLAGS)" .
|
||||
endef
|
||||
|
||||
define FLANNEL_INSTALL_TARGET_CMDS
|
||||
# Install flannel to its well known location.
|
||||
$(INSTALL) -D -m 0755 $(@D)/bin/flanneld $(TARGET_DIR)/opt/bin/flanneld
|
||||
$(INSTALL) -D -m 0755 $(@D)/dist/mk-docker-opts.sh $(TARGET_DIR)/opt/bin/mk-docker-opts.sh
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user