diff options
Diffstat (limited to 'meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb')
-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 2450d275..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 = "GPLv2" | ||
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 | ||