blob: 6b50ad17c7c8bd4cb767d4066108bcb680868332 (
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
|
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
SRC_URI[md5sum] = "3959ea1a2acaae196173b0283541c428"
SRC_URI[sha256sum] = "b1f136a1d89daa4b1b9711eb81ad120b53c9357d159f262021b84ef8c9d128be"
|