blob: cdc2f51c2eb7ffc6cbc8f65df5ba31d9206d9c1d [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Qemu helper scripts"
2LICENSE = "GPLv2"
Brad Bishop316dfdd2018-06-25 12:45:53 -04003RDEPENDS_${PN} = "nativesdk-qemu \
4 nativesdk-python3-shell nativesdk-python3-fcntl nativesdk-python3-logging \
Patrick Williamsc0f7c042017-02-23 20:41:17 -06005 "
6
Patrick Williamsc124f4f2015-09-15 14:41:29 -05007PR = "r9"
8
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999 \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060010 file://${COREBASE}/scripts/runqemu;endline=19;md5=a8ad1905c709a2deaa057608ebaf705a"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
12
13SRC_URI = "file://${COREBASE}/scripts/runqemu \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050014 file://${COREBASE}/scripts/runqemu-addptable2image \
15 file://${COREBASE}/scripts/runqemu-gen-tapdevs \
16 file://${COREBASE}/scripts/runqemu-ifup \
17 file://${COREBASE}/scripts/runqemu-ifdown \
18 file://${COREBASE}/scripts/oe-find-native-sysroot \
19 file://${COREBASE}/scripts/runqemu-extract-sdk \
20 file://${COREBASE}/scripts/runqemu-export-rootfs \
21 file://tunctl.c \
Patrick Williamsc124f4f2015-09-15 14:41:29 -050022 "
23
24S = "${WORKDIR}"
25
26inherit nativesdk
27
28do_compile() {
29 ${CC} tunctl.c -o tunctl
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030}
31
32do_install() {
33 install -d ${D}${bindir}
34 install -m 0755 ${WORKDIR}${COREBASE}/scripts/oe-* ${D}${bindir}/
35 install -m 0755 ${WORKDIR}${COREBASE}/scripts/runqemu* ${D}${bindir}/
36 install tunctl ${D}${bindir}/
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037}