diff options
| author | Mark Hatle <mark.hatle@amd.com> | 2022-09-13 10:50:24 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2022-09-13 11:23:18 -0700 |
| commit | a942ccc3b8f440f2c755c2168a2eb9d5e18bb556 (patch) | |
| tree | 3763c14414bca9fead1496cb36cd1e272e64487d | |
| parent | b48bdce03f0c0502d9476ad9dad8ab82580a004a (diff) | |
| download | meta-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.bb | 31 |
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 @@ | |||
| 1 | FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:" | 1 | FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:" |
| 2 | 2 | ||
| 3 | # provide it, to replace the existing | 3 | require ${COREBASE}/meta/recipes-devtools/qemu/qemu-helper-native_1.0.bb |
| 4 | PROVIDES = "qemu-helper-native" | ||
| 5 | PR = "r1" | ||
| 6 | |||
| 7 | LICENSE = "GPL-2.0-only" | ||
| 8 | LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999" | ||
| 9 | |||
| 10 | SRC_URI = "\ | ||
| 11 | file://tunctl.c \ | ||
| 12 | " | ||
| 13 | |||
| 14 | S = "${WORKDIR}" | ||
| 15 | 4 | ||
| 16 | inherit native | 5 | # provide it, to replace the existing recipe |
| 6 | PROVIDES = "qemu-helper-native" | ||
| 17 | 7 | ||
| 18 | do_compile() { | ||
| 19 | ${CC} ${CFLAGS} ${LDFLAGS} -Wall tunctl.c -o tunctl | ||
| 20 | } | ||
| 21 | # replace qemu with qemu-xilinx | 8 | # replace qemu with qemu-xilinx |
| 22 | DEPENDS:remove = "qemu-system-native" | 9 | DEPENDS:remove = "qemu-system-native" |
| 23 | DEPENDS:append = " \ | 10 | DEPENDS:append = " qemu-xilinx-system-native qemu-xilinx-multiarch-helper-native" |
| 24 | qemu-xilinx-system-native \ | ||
| 25 | qemu-xilinx-multiarch-helper-native \ | ||
| 26 | " | ||
| 27 | 11 | ||
| 28 | RDEPENDS:${PN}:remove = "qemu-system-native" | 12 | RDEPENDS:${PN}:remove = "qemu-system-native" |
| 29 | RDEPENDS:${PN}:append = " qemu-xilinx-system-native" | 13 | RDEPENDS:${PN}:append = " qemu-xilinx-system-native" |
| 30 | |||
| 31 | do_install() { | ||
| 32 | install -d ${STAGING_BINDIR_NATIVE} | ||
| 33 | install tunctl ${STAGING_BINDIR_NATIVE} | ||
| 34 | |||
| 35 | } | ||
| 36 | addtask addto_recipe_sysroot after do_populate_sysroot before do_build | ||
