diff options
Diffstat (limited to 'packages/simpad-utilities')
-rw-r--r-- | packages/simpad-utilities/genboot-native.bb | 20 | ||||
-rw-r--r-- | packages/simpad-utilities/serload-native.bb | 16 |
2 files changed, 36 insertions, 0 deletions
diff --git a/packages/simpad-utilities/genboot-native.bb b/packages/simpad-utilities/genboot-native.bb index e69de29bb2..3e98947eca 100644 --- a/packages/simpad-utilities/genboot-native.bb +++ b/packages/simpad-utilities/genboot-native.bb @@ -0,0 +1,20 @@ +SECTION = "console/utils" +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}/ +} diff --git a/packages/simpad-utilities/serload-native.bb b/packages/simpad-utilities/serload-native.bb index e69de29bb2..9be199f1e8 100644 --- a/packages/simpad-utilities/serload-native.bb +++ b/packages/simpad-utilities/serload-native.bb @@ -0,0 +1,16 @@ +SECTION = "console/utils" +LICENSE= "GPL" +DESCRIPTION = "Console utility for transferring a SIMpad boot image via serial a SIMpad" +FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/serload" +SRC_URI = "file://serialdownload.cpp file://main.cpp file://serialdownload.h" + +inherit native + +do_compile() { + cp ${WORKDIR}/*.h ${WORKDIR}/*.cpp . + ${CXX} -I. -o serload main.cpp serialdownload.cpp +} + +do_stage() { + install -m 0755 serload ${STAGING_BINDIR}/ +} |