blob: abba7fe1595de37410cb92196c6f6b506a949611 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Qemu helper scripts"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00002LICENSE = "GPL-2.0-only"
Patrick Williams213cb262021-08-07 19:21:33 -05003RDEPENDS:${PN} = "nativesdk-qemu \
Brad Bishop316dfdd2018-06-25 12:45:53 -04004 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 \
Brad Bishopc342db32019-05-15 21:57:59 -040010 file://${COREBASE}/scripts/runqemu;beginline=5;endline=10;md5=ac2b489a58739c7628a2604698db5e7f"
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}