summaryrefslogtreecommitdiff
path: root/packages/simpad-utilities/genboot-native.bb
blob: 39956f6a0797b4cf6cb4fca635ef61da2a205859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SECTION = "console/utils"
FILE_PR = "r1"
DESCRIPTION = "Console utility for generating a SIMpad boot image for the proprietary SIEMENS Switzerland bootloader"
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/genboot"
SRC_URI = "file://gen_boot.c file://arnold_boot.h file://simpad-make-flashimg"
LICENSE = "GPL"

DEPENDS = "pad-native"

inherit native

do_compile() {
	cp ${WORKDIR}/*.h ${WORKDIR}/*.c .
	${CC} -I. -o genboot gen_boot.c
}

do_stage() {
	install -m 0755 genboot ${STAGING_BINDIR}/
	install -m 0755 ${WORKDIR}/simpad-make-flashimg ${STAGING_BINDIR}/
}