diff options
Diffstat (limited to 'meta/recipes-devtools/qemu/qemu-helper-nativesdk_1.0.bb')
-rw-r--r-- | meta/recipes-devtools/qemu/qemu-helper-nativesdk_1.0.bb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-devtools/qemu/qemu-helper-nativesdk_1.0.bb b/meta/recipes-devtools/qemu/qemu-helper-nativesdk_1.0.bb new file mode 100644 index 0000000000..473411db92 --- /dev/null +++ b/meta/recipes-devtools/qemu/qemu-helper-nativesdk_1.0.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | DESCRIPTION = "Qemu helper scripts from Poky" | ||
2 | LICENSE = "GPL" | ||
3 | RDEPENDS = "qemu-nativesdk" | ||
4 | PR = "r7" | ||
5 | |||
6 | FILESPATH = "${FILE_DIRNAME}/qemu-helper" | ||
7 | |||
8 | SRC_URI = "file://${POKYBASE}/scripts/poky-qemu \ | ||
9 | file://${POKYBASE}/scripts/poky-qemu-internal \ | ||
10 | file://${POKYBASE}/scripts/poky-addptable2image \ | ||
11 | file://${POKYBASE}/scripts/poky-qemu-ifup \ | ||
12 | file://${POKYBASE}/scripts/poky-qemu-ifdown \ | ||
13 | file://${POKYBASE}/scripts/poky-find-native-sysroot \ | ||
14 | file://${POKYBASE}/scripts/poky-extract-sdk \ | ||
15 | file://${POKYBASE}/scripts/poky-export-rootfs \ | ||
16 | file://${POKYBASE}/scripts/runqemu-nfs \ | ||
17 | file://tunctl.c \ | ||
18 | file://raw2flash.c \ | ||
19 | " | ||
20 | |||
21 | S = "${WORKDIR}" | ||
22 | |||
23 | inherit nativesdk | ||
24 | |||
25 | do_compile() { | ||
26 | ${CC} tunctl.c -o tunctl | ||
27 | ${CC} raw2flash.c -o raw2flash.spitz | ||
28 | ${CC} raw2flash.c -o flash2raw.spitz -Dflash2raw | ||
29 | } | ||
30 | |||
31 | do_install() { | ||
32 | install -d ${D}${bindir} | ||
33 | install -m 0755 ${WORKDIR}${POKYBASE}/scripts/poky-* ${D}${bindir}/ | ||
34 | install -m 0755 ${WORKDIR}${POKYBASE}/scripts/runqemu-nfs ${D}${bindir}/ | ||
35 | install tunctl ${D}${bindir}/ | ||
36 | install raw2flash.spitz ${D}${bindir}/ | ||
37 | install flash2raw.spitz ${D}${bindir}/ | ||
38 | ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.akita | ||
39 | ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.borzoi | ||
40 | ln -fs raw2flash.spitz ${D}${bindir}/raw2flash.terrier | ||
41 | ln -fs flash2raw.spitz ${D}${bindir}/flash2raw.akita | ||
42 | ln -fs flash2raw.spitz ${D}${bindir}/flash2raw.borzoi | ||
43 | ln -fs flash2raw.spitz ${D}${bindir}/flash2raw.terrier | ||
44 | } | ||