summaryrefslogtreecommitdiff
path: root/meta/packages/qemu/qemu-helper-nativesdk_1.0.bb
blob: 5d8e45f1234e7df332af3046efc63d97d5be08bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
DESCRIPTION = "Qemu helper scripts from Poky"
LICENSE = "GPL"
RDEPENDS = "qemu-nativesdk"
PR = "r7"

FILESPATH = "${FILE_DIRNAME}/qemu-helper"

SRC_URI = "file://${OEROOT}/scripts/poky-qemu \
           file://${OEROOT}/scripts/poky-qemu-internal \
           file://${OEROOT}/scripts/poky-addptable2image \
           file://${OEROOT}/scripts/poky-qemu-ifup \
           file://${OEROOT}/scripts/poky-qemu-ifdown \
	   file://raw2flash.c"

S = "${WORKDIR}"

inherit nativesdk

do_compile() {
	${CC} raw2flash.c -o raw2flash.spitz
	${CC} raw2flash.c -o flash2raw.spitz -Dflash2raw
}

do_install() {
	install -d ${D}${bindir}
	install -m 0755 ${WORKDIR}${OEROOT}/scripts/poky-* ${D}${bindir}/
	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
}