2011-12-18 23:06:57 +00:00
|
|
|
SUMMARY = "Qemu helper scripts"
|
2010-12-25 19:43:40 +00:00
|
|
|
LICENSE = "GPLv2"
|
2011-12-22 17:43:33 +00:00
|
|
|
RDEPENDS_${PN} = "nativesdk-qemu"
|
2010-12-23 19:23:33 +00:00
|
|
|
PR = "r9"
|
2008-01-22 14:01:16 +00:00
|
|
|
|
2008-02-11 10:22:06 +00:00
|
|
|
|
2010-12-25 19:43:40 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://${WORKDIR}/tunctl.c;endline=4;md5=ff3a09996bc5fff6bc5d4e0b4c28f999 \
|
2011-04-22 06:13:53 +00:00
|
|
|
file://${COREBASE}/scripts/runqemu;endline=18;md5=77fbe442a88b1bcdc29c3ba67733b21b"
|
2011-04-20 15:56:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
SRC_URI = "file://${COREBASE}/scripts/runqemu \
|
|
|
|
file://${COREBASE}/scripts/runqemu-internal \
|
2011-04-20 22:24:51 +00:00
|
|
|
file://${COREBASE}/scripts/runqemu-addptable2image \
|
|
|
|
file://${COREBASE}/scripts/runqemu-gen-tapdevs \
|
2011-04-20 15:56:03 +00:00
|
|
|
file://${COREBASE}/scripts/runqemu-ifup \
|
|
|
|
file://${COREBASE}/scripts/runqemu-ifdown \
|
2011-04-20 22:24:51 +00:00
|
|
|
file://${COREBASE}/scripts/oe-find-native-sysroot \
|
|
|
|
file://${COREBASE}/scripts/runqemu-extract-sdk \
|
|
|
|
file://${COREBASE}/scripts/runqemu-export-rootfs \
|
2010-08-05 15:29:35 +00:00
|
|
|
file://tunctl.c \
|
|
|
|
file://raw2flash.c \
|
|
|
|
"
|
2009-09-16 23:05:34 +00:00
|
|
|
|
2008-01-22 14:01:16 +00:00
|
|
|
S = "${WORKDIR}"
|
2009-09-16 23:05:34 +00:00
|
|
|
|
|
|
|
inherit nativesdk
|
2008-02-11 10:22:06 +00:00
|
|
|
|
|
|
|
do_compile() {
|
2010-08-05 15:29:35 +00:00
|
|
|
${CC} tunctl.c -o tunctl
|
2008-02-11 10:22:06 +00:00
|
|
|
${CC} raw2flash.c -o raw2flash.spitz
|
|
|
|
${CC} raw2flash.c -o flash2raw.spitz -Dflash2raw
|
|
|
|
}
|
|
|
|
|
2008-01-22 14:01:16 +00:00
|
|
|
do_install() {
|
|
|
|
install -d ${D}${bindir}
|
2011-04-20 22:24:51 +00:00
|
|
|
install -m 0755 ${WORKDIR}${COREBASE}/scripts/oe-* ${D}${bindir}/
|
|
|
|
install -m 0755 ${WORKDIR}${COREBASE}/scripts/runqemu* ${D}${bindir}/
|
2010-08-05 15:29:35 +00:00
|
|
|
install tunctl ${D}${bindir}/
|
2008-02-11 10:25:26 +00:00
|
|
|
install raw2flash.spitz ${D}${bindir}/
|
|
|
|
install flash2raw.spitz ${D}${bindir}/
|
|
|
|
ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.akita
|
|
|
|
ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.borzoi
|
|
|
|
ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.terrier
|
|
|
|
ln -fs flash2raw.spitz ${D}${bindir}/flash2raw.akita
|
|
|
|
ln -fs flash2raw.spitz ${D}${bindir}/flash2raw.borzoi
|
|
|
|
ln -fs flash2raw.spitz ${D}${bindir}/flash2raw.terrier
|
2008-02-11 10:22:06 +00:00
|
|
|
}
|