diff options
| author | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-11-16 11:35:27 -0800 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2021-11-16 12:30:30 -0800 |
| commit | dc2f1f19a5e8d3e88e49b168bad8290f7c871dc5 (patch) | |
| tree | 682aca8fe457cbd37137848c79f1106ccc32cdba | |
| parent | 583cf4c738c2f8cec4c3b4b0c2a60152b91d6189 (diff) | |
| download | meta-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.bb | 32 |
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 | |||
| 2 | python () { | ||
| 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 | ||
| 9 | require recipes-devtools/qemu/qemu-helper-native_1.0.bb | ||
| 10 | # get the path to tunctl.c (from oe-core!) | ||
| 11 | FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:" | 1 | FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:" |
| 12 | 2 | ||
| 13 | # provide it, to replace the existing | 3 | # provide it, to replace the existing |
| 14 | PROVIDES += "qemu-helper-native" | 4 | PROVIDES = "qemu-helper-native" |
| 5 | |||
| 6 | LICENSE = "GPLv2" | ||
| 7 | LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999" | ||
| 8 | |||
| 9 | SRC_URI = "\ | ||
| 10 | file://tunctl.c \ | ||
| 11 | " | ||
| 12 | |||
| 13 | S = "${WORKDIR}" | ||
| 15 | 14 | ||
| 15 | inherit native | ||
| 16 | |||
| 17 | do_compile() { | ||
| 18 | ${CC} ${CFLAGS} ${LDFLAGS} -Wall tunctl.c -o tunctl | ||
| 19 | } | ||
| 16 | # replace qemu with qemu-xilinx | 20 | # replace qemu with qemu-xilinx |
| 17 | DEPENDS:remove = "qemu-system-native" | 21 | DEPENDS:remove = "qemu-system-native" |
| 18 | DEPENDS:append = " \ | 22 | DEPENDS:append = " \ |
| @@ -22,3 +26,9 @@ DEPENDS:append = " \ | |||
| 22 | 26 | ||
| 23 | RDEPENDS:${PN}:remove = "qemu-system-native" | 27 | RDEPENDS:${PN}:remove = "qemu-system-native" |
| 24 | RDEPENDS:${PN}:append = " qemu-xilinx-system-native" | 28 | RDEPENDS:${PN}:append = " qemu-xilinx-system-native" |
| 29 | |||
| 30 | do_install() { | ||
| 31 | install -d ${STAGING_BINDIR_NATIVE} | ||
| 32 | install tunctl ${STAGING_BINDIR_NATIVE} | ||
| 33 | |||
| 34 | } | ||
