From 5b80bfd7bffd4c20d80b7c70a7130529e9a755dd Mon Sep 17 00:00:00 2001 From: ToshikazuOhiwa Date: Mon, 30 Mar 2020 09:24:26 +0900 Subject: agl-basesystem --- .../recipes-core/kata-containers/kata-proxy_git.bb | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 external/meta-virtualization/recipes-core/kata-containers/kata-proxy_git.bb (limited to 'external/meta-virtualization/recipes-core/kata-containers/kata-proxy_git.bb') diff --git a/external/meta-virtualization/recipes-core/kata-containers/kata-proxy_git.bb b/external/meta-virtualization/recipes-core/kata-containers/kata-proxy_git.bb new file mode 100644 index 00000000..8de0bfcf --- /dev/null +++ b/external/meta-virtualization/recipes-core/kata-containers/kata-proxy_git.bb @@ -0,0 +1,34 @@ +DESCRIPTION = " Kata Containers stdio proxy component" +HOMEPAGE = "https://github.com/kata-containers/proxy" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://src/github.com/kata-containers/proxy/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +GO_IMPORT = "github.com/kata-containers/proxy" +SRCREV = "1148847739f9a9f47b92e34e4f309dc109d4dba9" +SRC_URI = "git://${GO_IMPORT}.git \ + " + +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-proxy +} + +do_install() { + mkdir -p ${D}/${libexecdir}/kata-containers + cp ${WORKDIR}/git/src/${GO_IMPORT}/kata-proxy ${D}/${libexecdir}/kata-containers +} + +deltask compile_ptest_base -- cgit 1.2.3-korg