mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00

Updating to the latest 0.4.7 release and updating the build and fetch directories to the opencontainers github. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
49 lines
1.2 KiB
BlitzBasic
49 lines
1.2 KiB
BlitzBasic
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 = "758044fc26ad65eb900143e90d1e22c2d6e4484d"
|
|
SRC_URI = "git://github.com/opencontainers/umoci.git;branch=master;name=umoci;destsuffix=github.com/opencontainers/umoci \
|
|
"
|
|
|
|
PV = "v0.4.7-dev+git${SRCPV}"
|
|
S = "${WORKDIR}/github.com/opencontainers/umoci"
|
|
GO_IMPORT = "github.com/opencontainers/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"
|