mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
go-build_git.bb: go-build recipe to manage go build dependencies for runX
go-build_git recipe manages go build dependencies for runX. This is used to support a console access for runX. Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
cb172a5253
commit
cdbecf3d9a
43
recipes-devtools/go/go-build_git.bb
Normal file
43
recipes-devtools/go/go-build_git.bb
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
HOMEPAGE = "https://github.com/lf-edge/runx"
|
||||||
|
SUMMARY = "console for runx"
|
||||||
|
DESCRIPTION = "Xen Runtime for OCI"
|
||||||
|
|
||||||
|
SRCREV_runx = "da0c75c58ae5232d19b1791c33545db3225e1ea9"
|
||||||
|
SRC_URI = "\
|
||||||
|
git://github.com/lf-edge/runx;nobranch=1;name=runx \
|
||||||
|
"
|
||||||
|
SRC_URI[md5sum] = "0d701ac1e2a67d47ce7127432df2c32b"
|
||||||
|
SRC_URI[sha256sum] = "5a26478906d5005f4f809402e981518d2b8844949199f60c4b6e1f986ca2a769"
|
||||||
|
|
||||||
|
LICENSE = "Apache-2.0"
|
||||||
|
LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=945fc9aa694796a6337395cc291ddd8c"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
PV = "0.1-git${SRCREV_runx}"
|
||||||
|
|
||||||
|
inherit distro_features_check
|
||||||
|
REQUIRED_DISTRO_FEATURES = "vmsep"
|
||||||
|
|
||||||
|
inherit pkgconfig
|
||||||
|
|
||||||
|
GO_IMPORT = "import"
|
||||||
|
inherit go
|
||||||
|
|
||||||
|
RDEPENDS_${PN}-dev = "bash"
|
||||||
|
|
||||||
|
do_compile() {
|
||||||
|
|
||||||
|
export GOARCH="${TARGET_GOARCH}"
|
||||||
|
cd ${S}/src/import/gobuild
|
||||||
|
oe_runmake
|
||||||
|
}
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
|
||||||
|
install -d ${D}${datadir}/runX
|
||||||
|
install -m 755 ${B}/src/import/gobuild/serial_fd_handler ${D}${datadir}/runX/
|
||||||
|
install -m 755 ${B}/src/import/gobuild/recvtty ${D}${datadir}/runX/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
FILES_${PN} += "${datadir}/runX/*"
|
Loading…
Reference in New Issue
Block a user