New recipe: lowlevel-topas910, a mini bootloader for the Topas910
authorFlorian Boor <florian.boor@kernelconcepts.de>
Wed, 22 Apr 2009 09:48:31 +0000 (11:48 +0200)
committerFlorian Boor <florian.boor@kernelconcepts.de>
Wed, 22 Apr 2009 11:00:23 +0000 (13:00 +0200)
recipes/lowlevel_topas910/lowlevel-topas910_1.0.bb [new file with mode: 0644]

diff --git a/recipes/lowlevel_topas910/lowlevel-topas910_1.0.bb b/recipes/lowlevel_topas910/lowlevel-topas910_1.0.bb
new file mode 100644 (file)
index 0000000..6a814a2
--- /dev/null
@@ -0,0 +1,31 @@
+DESCRIPTION = "Lowlevel - a simple bootloader for the Toshiba Topas 910."
+SECTION = "bootloaders"
+PRIORITY = "optional"
+LICENSE = "BSD"
+PROVIDES = "virtual/bootloader"
+DEPENDS = "virtual/kernel"
+PR = "r0"
+
+inherit gpe
+
+SRC_URI = "http://www.bplan-gmbh.org/data/toshiba/topas/linux/2.6.26.5/lowlevel_topas910.tar.bz2"
+
+
+S = "${WORKDIR}/lowlevel/"
+
+CFLAGS_append = " -D__LITTLEENDIAN__ -ffreestanding -I. -include ./arm.h -include ./simple_io32.h"
+
+do_install () {
+}
+
+do_deploy () {
+        install -d ${DEPLOY_DIR_IMAGE}
+        install ${S}/bootstart_tmpa910.bin ${DEPLOY_DIR_IMAGE}/bootstart_tmpa910.bin
+       dd if=/dev/full of=/tmp/pad bs=1k count=256
+       cat ${S}/bootstart_tmpa910.bin /tmp/pad > /tmp/pad1
+       dd if=/tmp/pad1 of=/tmp/pad2 bs=1k count=256
+       cat /tmp/pad2 ${DEPLOY_DIR_IMAGE}/zImage-topas910.bin > ${DEPLOY_DIR_IMAGE}/flashimage-topas910.bin
+}
+
+do_deploy[dirs] = "${S}"
+addtask deploy before do_build after do_compile