summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>2021-11-16 11:35:27 -0800
committerSai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>2021-11-16 12:30:30 -0800
commitdc2f1f19a5e8d3e88e49b168bad8290f7c871dc5 (patch)
tree682aca8fe457cbd37137848c79f1106ccc32cdba
parent583cf4c738c2f8cec4c3b4b0c2a60152b91d6189 (diff)
downloadmeta-xilinx-dc2f1f19a5e8d3e88e49b168bad8290f7c871dc5.tar.gz
qemu-xilinx-helper-native: Break the dependency on qemu-helper-nativee
qemu-xilinx-helper-native: Break dependecy on qemu-helper-native Break the dependency on qemu-helper-native, set qemu-xilinx-helper-native as default provider of qemu-helper-native and blacklist qemu-helper-native so that runqemu can pick the correct paths. Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
-rw-r--r--meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb32
1 files changed, 21 insertions, 11 deletions
diff --git a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb
index efd23d50..eb14c0c1 100644
--- a/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb
+++ b/meta-xilinx-bsp/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb
@@ -1,18 +1,22 @@
1
2python () {
3 if d.getVar("PREFERRED_PROVIDER_qemu-helper-native") != d.getVar("PN"):
4 raise bb.parse.SkipRecipe("Set qemu-helper-native provider to use this recipe")
5}
6
7# TODO: improve this, since it is very hacky that this recipe need to build tunctl.
8# include the existing qemu-helper-native
9require recipes-devtools/qemu/qemu-helper-native_1.0.bb
10# get the path to tunctl.c (from oe-core!)
11FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:" 1FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:"
12 2
13# provide it, to replace the existing 3# provide it, to replace the existing
14PROVIDES += "qemu-helper-native" 4PROVIDES = "qemu-helper-native"
5
6LICENSE = "GPLv2"
7LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999"
8
9SRC_URI = "\
10 file://tunctl.c \
11 "
12
13S = "${WORKDIR}"
15 14
15inherit native
16
17do_compile() {
18 ${CC} ${CFLAGS} ${LDFLAGS} -Wall tunctl.c -o tunctl
19}
16# replace qemu with qemu-xilinx 20# replace qemu with qemu-xilinx
17DEPENDS:remove = "qemu-system-native" 21DEPENDS:remove = "qemu-system-native"
18DEPENDS:append = " \ 22DEPENDS:append = " \
@@ -22,3 +26,9 @@ DEPENDS:append = " \
22 26
23RDEPENDS:${PN}:remove = "qemu-system-native" 27RDEPENDS:${PN}:remove = "qemu-system-native"
24RDEPENDS:${PN}:append = " qemu-xilinx-system-native" 28RDEPENDS:${PN}:append = " qemu-xilinx-system-native"
29
30do_install() {
31 install -d ${STAGING_BINDIR_NATIVE}
32 install tunctl ${STAGING_BINDIR_NATIVE}
33
34}