diff options
author | Bruno Randolf <br1@subnet.at> | 2004-10-04 10:19:20 +0000 |
---|---|---|
committer | Bruno Randolf <br1@subnet.at> | 2004-10-04 10:19:20 +0000 |
commit | 1bfd6c1445d07750dd6937e8ff0daa86c64925eb (patch) | |
tree | 285f95675f4bbb3b61a89456317ef20dbfcc5230 /linux/linux-mtx-1_2.4.24.oe | |
parent | 505bb5fa47b7bde8768c55db37beea8fffc240ae (diff) |
added KERNEL_IMAGEDEST for variable path of kernel image in package
updated mtx-1 kernel to use it and added postinst
BKrev: 416123a8bRfzYsYbF-RzCOkTSs0GFw
Diffstat (limited to 'linux/linux-mtx-1_2.4.24.oe')
-rw-r--r-- | linux/linux-mtx-1_2.4.24.oe | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/linux/linux-mtx-1_2.4.24.oe b/linux/linux-mtx-1_2.4.24.oe index e69de29bb2..96de77bb88 100644 --- a/linux/linux-mtx-1_2.4.24.oe +++ b/linux/linux-mtx-1_2.4.24.oe @@ -0,0 +1,43 @@ +DESCRIPTION = "Linux kernel for MTX-1 (MeshCube)" +MAINTAINER = "Bruno Randolf <bruno.randolf@4g-systems.biz>" +LICENSE = "GPL" +KV = "2.4.24" +PV = "${KV}" +PACKAGE_ARCH = "mtx-1" +RDEPENDS = "mtd" + +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.bin" +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 + echo "*** flashing kernel ***" + flashcp -v /tmp/zImage.flash.bin-${KV} /dev/mtd/2 + echo "*** done. please reboot ***" +fi +} + +FILES_kernel += " /tmp" + +do_deploy() { + install -d ${DEPLOY_DIR}/images + install -m 0644 ${KERNEL_OUTPUT} ${DEPLOY_DIR}/images/${MACHINE}-${KV}-${KERNEL_IMAGETYPE}-${DATETIME} +} + +do_deploy[dirs] = "${S}" + +addtask deploy before do_build after do_compile
\ No newline at end of file |