aboutsummaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core/recipes-devtools/qemu/qemu-xilinx-helper-native_1.0.bb
blob: eb14c0c165231cbffb65ef5ef238633c978a5b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-devtools/qemu/qemu-helper:"

# provide it, to replace the existing
PROVIDES = "qemu-helper-native"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999"

SRC_URI = "\
    file://tunctl.c \
    "

S = "${WORKDIR}"

inherit native

do_compile() {
        ${CC} ${CFLAGS} ${LDFLAGS} -Wall tunctl.c -o tunctl
}
# replace qemu with qemu-xilinx
DEPENDS:remove = "qemu-system-native"
DEPENDS:append = " \
		qemu-xilinx-system-native \
		qemu-xilinx-multiarch-helper-native \
		"

RDEPENDS:${PN}:remove = "qemu-system-native"
RDEPENDS:${PN}:append = " qemu-xilinx-system-native"

do_install() {
        install -d ${STAGING_BINDIR_NATIVE}
	install tunctl ${STAGING_BINDIR_NATIVE}

}