2 DESCRIPTION = "Linux kernel for MTX-1 (MeshCube)"
3 MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>"
10 SRC_URI = "cvs://anoncvs:anoncvs@meshcube.org/data/cvs;module=kernel/linux"
12 S = "${WORKDIR}/linux"
17 KERNEL_OUTPUT = "arch/mips/zboot/images/mtx-1.flash.bin"
18 KERNEL_IMAGETYPE = "zImage.flash"
19 KERNEL_IMAGEDEST = "tmp"
21 do_configure_prepend() {
22 install -m 0644 ${S}/arch/mips/defconfig-mtx-1 ${S}/.config
25 pkg_postinst_kernel() {
26 if test "x$D" != "x"; then
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 ***"
37 FILES_kernel += " /tmp"
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
46 do_deploy[dirs] = "${S}"
48 addtask deploy before do_build after do_compile