diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-10-04 09:34:16 -0400 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2018-11-05 10:22:54 -0500 |
commit | d9c64d8aa0d7c5ca8d55e1443684c243b01186f0 (patch) | |
tree | e8dd7866dfd9e089abd5e7e8efea02a198f131cc /recipes-core/kata-containers/kata-proxy_git.bb | |
parent | 100fb480e7fa7646682891307a9091e07e7981cd (diff) | |
download | meta-virtualization-d9c64d8aa0d7c5ca8d55e1443684c243b01186f0.tar.gz |
kata: WIP
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-core/kata-containers/kata-proxy_git.bb')
-rw-r--r-- | recipes-core/kata-containers/kata-proxy_git.bb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-core/kata-containers/kata-proxy_git.bb b/recipes-core/kata-containers/kata-proxy_git.bb new file mode 100644 index 00000000..8de0bfcf --- /dev/null +++ b/recipes-core/kata-containers/kata-proxy_git.bb | |||
@@ -0,0 +1,34 @@ | |||
1 | DESCRIPTION = " Kata Containers stdio proxy component" | ||
2 | HOMEPAGE = "https://github.com/kata-containers/proxy" | ||
3 | LICENSE = "Apache-2.0" | ||
4 | LIC_FILES_CHKSUM = "file://src/github.com/kata-containers/proxy/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" | ||
5 | |||
6 | GO_IMPORT = "github.com/kata-containers/proxy" | ||
7 | SRCREV = "1148847739f9a9f47b92e34e4f309dc109d4dba9" | ||
8 | SRC_URI = "git://${GO_IMPORT}.git \ | ||
9 | " | ||
10 | |||
11 | RDEPENDS_${PN}-dev_append = "bash" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | inherit go | ||
16 | |||
17 | do_compile() { | ||
18 | # Pass the needed cflags/ldflags so that cgo | ||
19 | # can find the needed headers files and libraries | ||
20 | export GOARCH=${TARGET_GOARCH} | ||
21 | export CGO_ENABLED="1" | ||
22 | export CGO_CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_TARGET}" | ||
23 | export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" | ||
24 | |||
25 | cd ${S}/src/${GO_IMPORT} | ||
26 | oe_runmake kata-proxy | ||
27 | } | ||
28 | |||
29 | do_install() { | ||
30 | mkdir -p ${D}/${libexecdir}/kata-containers | ||
31 | cp ${WORKDIR}/git/src/${GO_IMPORT}/kata-proxy ${D}/${libexecdir}/kata-containers | ||
32 | } | ||
33 | |||
34 | deltask compile_ptest_base | ||