Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Qemu helper scripts" |
| 2 | LICENSE = "GPLv2" |
| 3 | RDEPENDS_${PN} = "nativesdk-qemu" |
| 4 | PR = "r9" |
| 5 | |
| 6 | |
| 7 | LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999 \ |
| 8 | file://${COREBASE}/scripts/runqemu;endline=18;md5=77fbe442a88b1bcdc29c3ba67733b21b" |
| 9 | |
| 10 | |
| 11 | SRC_URI = "file://${COREBASE}/scripts/runqemu \ |
| 12 | file://${COREBASE}/scripts/runqemu-internal \ |
| 13 | file://${COREBASE}/scripts/runqemu-addptable2image \ |
| 14 | file://${COREBASE}/scripts/runqemu-gen-tapdevs \ |
| 15 | file://${COREBASE}/scripts/runqemu-ifup \ |
| 16 | file://${COREBASE}/scripts/runqemu-ifdown \ |
| 17 | file://${COREBASE}/scripts/oe-find-native-sysroot \ |
| 18 | file://${COREBASE}/scripts/runqemu-extract-sdk \ |
| 19 | file://${COREBASE}/scripts/runqemu-export-rootfs \ |
| 20 | file://tunctl.c \ |
| 21 | file://raw2flash.c \ |
| 22 | " |
| 23 | |
| 24 | S = "${WORKDIR}" |
| 25 | |
| 26 | inherit nativesdk |
| 27 | |
| 28 | do_compile() { |
| 29 | ${CC} tunctl.c -o tunctl |
| 30 | ${CC} raw2flash.c -o raw2flash.spitz |
| 31 | ${CC} raw2flash.c -o flash2raw.spitz -Dflash2raw |
| 32 | } |
| 33 | |
| 34 | do_install() { |
| 35 | install -d ${D}${bindir} |
| 36 | install -m 0755 ${WORKDIR}${COREBASE}/scripts/oe-* ${D}${bindir}/ |
| 37 | install -m 0755 ${WORKDIR}${COREBASE}/scripts/runqemu* ${D}${bindir}/ |
| 38 | install tunctl ${D}${bindir}/ |
| 39 | install raw2flash.spitz ${D}${bindir}/ |
| 40 | install flash2raw.spitz ${D}${bindir}/ |
| 41 | ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.akita |
| 42 | ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.borzoi |
| 43 | ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.terrier |
| 44 | ln -fs flash2raw.spitz ${D}${bindir}/flash2raw.akita |
| 45 | ln -fs flash2raw.spitz ${D}${bindir}/flash2raw.borzoi |
| 46 | ln -fs flash2raw.spitz ${D}${bindir}/flash2raw.terrier |
| 47 | } |