meta-virtualization/recipes-core/kata-containers/kata-agent_git.bb
Bruce Ashfield 6e2826e6f5 kata-containers: add protocol=https to SRC_URIs
Although the components of kata containers aren't functional, we
keep it around in case someone is interested in fixing the recipe.

It was skipped from the global protocol=https addition for that
reason .. but in case someone is running global/world fetches, this
can cause a problem. So we add the missing procotol specification.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-06-03 09:31:54 -04:00

40 lines
1.1 KiB
BlitzBasic

DESCRIPTION = "Agent run inside a virtual machine, which spawns containers and processes"
HOMEPAGE = "https://github.com/kata-containers/agent"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://src/github.com/kata-containers/agent/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
GO_IMPORT = "github.com/kata-containers/agent"
SRCREV = "e03f7d7453fabffb17e1540f28666c26178d3cbf"
SRC_URI = "git://${GO_IMPORT}.git;branch=master;protocol=https \
"
RDEPENDS:${PN}-dev:append = "bash"
S = "${WORKDIR}/git"
inherit go
do_compile() {
# Pass the needed cflags/ldflags so that cgo
# can find the needed headers files and libraries
export GOARCH=${TARGET_GOARCH}
export CGO_ENABLED="1"
export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
cd ${S}/src/${GO_IMPORT}
oe_runmake kata-agent
}
do_install() {
mkdir -p ${D}/${bindir}/
cp ${WORKDIR}/git/src/${GO_IMPORT}/kata-agent ${D}/${bindir}
mkdir -p ${D}/${systemd_unitdir}/system
cp ${WORKDIR}/git/src/${GO_IMPORT}/kata-agent.service ${D}/${systemd_unitdir}/system
}
deltask compile_ptest_base
FILES:${PN} += "${systemd_unitdir}/*"