SECTION = "kernel" DESCRIPTION = "Linux kernel for MTX-1 (MeshCube)" MAINTAINER = "Bruno Randolf " LICENSE = "GPL" KV = "${PV}" PACKAGE_ARCH = "mtx-1" RDEPENDS = "mtd" CVSDATE = "20041016" SRC_URI = "cvs://anoncvs:anoncvs@meshcube.org/data/cvs;module=kernel/linux" S = "${WORKDIR}/linux" inherit kernel ARCH = "mips" KERNEL_OUTPUT = "arch/mips/zboot/images/mtx-1.flash.bin" KERNEL_IMAGETYPE = "zImage.flash" KERNEL_IMAGEDEST = "tmp" do_configure_prepend() { install -m 0644 ${S}/arch/mips/defconfig-mtx-1 ${S}/.config } pkg_postinst_kernel() { if test "x$D" != "x"; then exit 1 else if test -e /tmp/zImage.flash-${KV}; then echo "*** flashing kernel ***" flashcp -v /tmp/zImage.flash-${KV} /dev/mtd/2 echo "*** done. please reboot ***" fi fi } FILES_kernel += " /tmp" do_deploy() { install -d ${DEPLOY_DIR}/images install -m 0644 arch/mips/zboot/images/mtx-1.flash.bin ${DEPLOY_DIR}/images/${MACHINE}-${KV}-${DATETIME}.flash.bin install -m 0644 arch/mips/zboot/images/mtx-1.flash.srec ${DEPLOY_DIR}/images/${MACHINE}-${KV}-${DATETIME}.flash.srec install -m 0644 arch/mips/zboot/images/mtx-1.srec ${DEPLOY_DIR}/images/${MACHINE}-${KV}-${DATETIME}.ram.srec } do_deploy[dirs] = "${S}" addtask deploy before do_build after do_compile