summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@amd.com>2022-09-13 10:50:24 -0700
committerMark Hatle <mark.hatle@amd.com>2022-09-13 11:23:18 -0700
commita942ccc3b8f440f2c755c2168a2eb9d5e18bb556 (patch)
tree3763c14414bca9fead1496cb36cd1e272e64487d
parentb48bdce03f0c0502d9476ad9dad8ab82580a004a (diff)
downloadmeta-xilinx-a942ccc3b8f440f2c755c2168a2eb9d5e18bb556.tar.gz
qemu-xilinx-helper-native: Base off core qemu-helper-native
Simplify the recipe, as the purpose of the change isn't to adjust the contents, but to change the name, depends and rdepends. (Can't use a bbappend as the changes need to be contingent on qemu-xilinx being built.) Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb31
1 files changed, 4 insertions, 27 deletions
diff --git a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb
index f57ce6e9..dd47f7a7 100644
--- a/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb
+++ b/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb
@@ -1,36 +1,13 @@
1FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:" 1FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:"
2 2
3# provide it, to replace the existing 3require ${COREBASE}/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb
4PROVIDES = "qemu-helper-native"
5PR = "r1"
6
7LICENSE = "GPL-2.0-only"
8LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999"
9
10SRC_URI = "\
11 file://tunctl.c \
12 "
13
14S = "${WORKDIR}"
15 4
16inherit native 5# provide it, to replace the existing recipe
6PROVIDES = "qemu-helper-native"
17 7
18do_compile() {
19 ${CC} ${CFLAGS} ${LDFLAGS} -Wall tunctl.c -o tunctl
20}
21# replace qemu with qemu-xilinx 8# replace qemu with qemu-xilinx
22DEPENDS:remove = "qemu-system-native" 9DEPENDS:remove = "qemu-system-native"
23DEPENDS:append = " \ 10DEPENDS:append = " qemu-xilinx-system-native qemu-xilinx-multiarch-helper-native"
24 qemu-xilinx-system-native \
25 qemu-xilinx-multiarch-helper-native \
26 "
27 11
28RDEPENDS:${PN}:remove = "qemu-system-native" 12RDEPENDS:${PN}:remove = "qemu-system-native"
29RDEPENDS:${PN}:append = " qemu-xilinx-system-native" 13RDEPENDS:${PN}:append = " qemu-xilinx-system-native"
30
31do_install() {
32 install -d ${STAGING_BINDIR_NATIVE}
33 install tunctl ${STAGING_BINDIR_NATIVE}
34
35}
36addtask addto_recipe_sysroot after do_populate_sysroot before do_build