diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-06-29 14:29:08 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-06-29 15:20:33 +0100 |
commit | b6fcd71cb5b85e23036b31df1545a92f4ed402dc (patch) | |
tree | e91fcf7eb6ea0adaefd17d495d1d3cbc4a831ffa /meta-extras/packages/linux/linux-openmoko.inc | |
parent | 5dab2c9aa7ef81115fb3e0d5092cf2f12a23a5d5 (diff) | |
download | openembedded-core-b6fcd71cb5b85e23036b31df1545a92f4ed402dc.tar.gz openembedded-core-b6fcd71cb5b85e23036b31df1545a92f4ed402dc.tar.bz2 openembedded-core-b6fcd71cb5b85e23036b31df1545a92f4ed402dc.zip |
linux: move some older kernels to meta-extras
Move kernels for retired machines to meta-extras
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta-extras/packages/linux/linux-openmoko.inc')
-rw-r--r-- | meta-extras/packages/linux/linux-openmoko.inc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-extras/packages/linux/linux-openmoko.inc b/meta-extras/packages/linux/linux-openmoko.inc new file mode 100644 index 0000000000..a0bf48e609 --- /dev/null +++ b/meta-extras/packages/linux/linux-openmoko.inc @@ -0,0 +1,25 @@ +RDEPENDS_kernel-image += "mtd-utils" + +pkg_postinst_kernel-image () { +if test "x$D" != "x"; then + exit 1 +else + if [ -f ${sysconfdir}/default/flashkernel ] ; then + echo "Upgrading Kernel in Flash" + echo "DO NOT stop this process" + + MTD_KERNEL_PARTITION=`cat /proc/mtd | grep kernel | cut -d':' -f1` + MTD_KERNEL_PARTITION=/dev/$MTD_KERNEL_PARTITION + + if [ "x$MTD_KERNEL_PARTITION" = "x" ] ; then + exit 1 + fi + + ${bindir}/flash_eraseall $MTD_KERNEL_PARTITION + ${bindir}/nandwrite -p $MTD_KERNEL_PARTITION /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_VERSION} + else + touch ${sysconfdir}/default/flashkernel + fi +fi +} + |