Skip to content

Commit

Permalink
kpod b85d0fa
Browse files Browse the repository at this point in the history
  • Loading branch information
ijl authored and dlorenc committed Dec 14, 2017
1 parent 25c7629 commit 8ca92d4
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/iso/minikube-iso/package/Config.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
menu "System tools"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/rkt-bin/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/runc-master/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/kpod/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/crio-bin/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/automount/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/docker-bin/Config.in"
Expand Down
9 changes: 9 additions & 0 deletions deploy/iso/minikube-iso/package/kpod/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
config BR2_PACKAGE_KPOD
bool "kpod"
default y
depends on BR2_x86_64
depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS
depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS
depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_LIBSECCOMP
select BR2_PACKAGE_LIBGPGME
2 changes: 2 additions & 0 deletions deploy/iso/minikube-iso/package/kpod/kpod.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Locally computed
sha256 b8607ac0fc4cea5f66cdf6d628bf74550d4bfb62ed279c965499691a87a1bcc6 b85d0fa4ea5b6515088a3475a56a44c0cee5bfc5.tar.gz
31 changes: 31 additions & 0 deletions deploy/iso/minikube-iso/package/kpod/kpod.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
KPOD_VERSION = b85d0fa4ea5b6515088a3475a56a44c0cee5bfc5
KPOD_SITE = https://github.com/projectatomic/libpod/archive
KPOD_SOURCE = $(KPOD_VERSION).tar.gz
KPOD_LICENSE = Apache-2.0
KPOD_LICENSE_FILES = LICENSE

KPOD_DEPENDENCIES = host-go

KPOD_GOPATH = $(@D)/_output
KPOD_BIN_ENV = \
CGO_ENABLED=1 \
GOPATH="$(KPOD_GOPATH)" \
PATH=$(KPOD_GOPATH)/bin:$(BR_PATH)


define KPOD_CONFIGURE_CMDS
mkdir -p $(KPOD_GOPATH)/src/github.com/projectatomic
ln -sf $(@D) $(KPOD_GOPATH)/src/github.com/projectatomic/libpod
$(KPOD_BIN_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) install.tools DESTDIR=$(TARGET_DIR) PREFIX=$(TARGET_DIR)/usr
endef

define KPOD_BUILD_CMDS
mkdir -p $(@D)/bin
$(KPOD_BIN_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) PREFIX=/usr kpod
endef

define KPOD_INSTALL_TARGET_CMDS
$(INSTALL) -Dm755 $(@D)/bin/kpod $(TARGET_DIR)/usr/bin/kpod
endef

$(eval $(generic-package))

0 comments on commit 8ca92d4

Please sign in to comment.