mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
umoci: introduce umoci recipe for image building
Importing umoci from meta-overc Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
f4a608b4d2
commit
b7800ccc2a
48
recipes-containers/umoci/umoci_git.bb
Normal file
48
recipes-containers/umoci/umoci_git.bb
Normal file
|
@ -0,0 +1,48 @@
|
|||
HOMEPAGE = "https://github.com/openSUSE/umoci"
|
||||
SUMMARY = "umoci modifies Open Container images"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
|
||||
RDEPENDS_${PN} = "skopeo \
|
||||
"
|
||||
|
||||
SRCREV_umoci = "6e68a6a2ae3e12ad78110ab9e68aa56f8281498f"
|
||||
SRC_URI = "git://github.com/openSUSE/umoci;branch=master;name=umoci;destsuffix=git/src/github.com/openSUSE/umoci \
|
||||
"
|
||||
|
||||
PV = "v0.3.1-dev+git${SRCPV}"
|
||||
S = "${WORKDIR}/git/src/github.com/openSUSE/umoci"
|
||||
GO_IMPORT = "github.com/openSUSE/umoci"
|
||||
|
||||
inherit goarch
|
||||
inherit go
|
||||
|
||||
# This disables seccomp and apparmor, which are on by default in the
|
||||
# go package.
|
||||
EXTRA_OEMAKE="BUILDTAGS=''"
|
||||
|
||||
do_compile() {
|
||||
export GOARCH="${TARGET_GOARCH}"
|
||||
export GOPATH="${WORKDIR}/git/"
|
||||
|
||||
# Pass the needed cflags/ldflags so that cgo
|
||||
# can find the needed headers files and libraries
|
||||
export CGO_ENABLED="1"
|
||||
export CFLAGS=""
|
||||
export LDFLAGS=""
|
||||
export CGO_CFLAGS="${BUILDSDK_CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
|
||||
export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
|
||||
|
||||
export GO111MODULE=off
|
||||
|
||||
cd ${S}
|
||||
|
||||
oe_runmake umoci
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/${sbindir}
|
||||
install ${S}/umoci ${D}/${sbindir}
|
||||
}
|
||||
|
||||
INSANE_SKIP_${PN} += "ldflags already-stripped"
|
Loading…
Reference in New Issue
Block a user