Beagle Distribution:
[vuplus_openembedded] / linux / linux-mtx-1_2.4.24.oe
1 SECTION = "kernel"
2 DESCRIPTION = "Linux kernel for MTX-1 (MeshCube)"
3 MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
4 LICENSE = "GPL"
5 KV = "${PV}"
6 PACKAGE_ARCH = "mtx-1"
7 RDEPENDS = "mtd"
8
9 CVSDATE = "20041016"
10 SRC_URI = "cvs://anoncvs:anoncvs@meshcube.org/data/cvs;module=kernel/linux"
11
12 S = "${WORKDIR}/linux"
13
14 inherit kernel
15
16 ARCH = "mips"
17 KERNEL_OUTPUT = "arch/mips/zboot/images/mtx-1.flash.bin"
18 KERNEL_IMAGETYPE = "zImage.flash"
19 KERNEL_IMAGEDEST = "tmp"
20
21 do_configure_prepend() {
22         install -m 0644 ${S}/arch/mips/defconfig-mtx-1 ${S}/.config
23 }
24
25 pkg_postinst_kernel() {
26 if test "x$D" != "x"; then
27         exit 1
28 else
29         if test -e /tmp/zImage.flash-${KV}; then
30                 echo "*** flashing kernel ***"
31                 flashcp -v /tmp/zImage.flash-${KV} /dev/mtd/2
32                 echo "*** done. please reboot ***"
33         fi
34 fi
35 }
36
37 FILES_kernel += " /tmp"
38
39 do_deploy() {
40         install -d ${DEPLOY_DIR}/images
41         install -m 0644 arch/mips/zboot/images/mtx-1.flash.bin ${DEPLOY_DIR}/images/${MACHINE}-${KV}-${DATETIME}.flash.bin
42         install -m 0644 arch/mips/zboot/images/mtx-1.flash.srec ${DEPLOY_DIR}/images/${MACHINE}-${KV}-${DATETIME}.flash.srec
43         install -m 0644 arch/mips/zboot/images/mtx-1.srec ${DEPLOY_DIR}/images/${MACHINE}-${KV}-${DATETIME}.ram.srec
44 }
45
46 do_deploy[dirs] = "${S}"
47
48 addtask deploy before do_build after do_compile