summaryrefslogtreecommitdiff
path: root/meta/packages/linux/linux-openmoko.inc
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-04-21 14:42:55 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-04-21 14:42:55 +0000
commita3d63a9291a2b6ed35e98fa864051efd14ebb06e (patch)
tree25e56747938db6d5899f64981be892b01260ba18 /meta/packages/linux/linux-openmoko.inc
parente5444b0d8560b605bf37887cdd3ba3f961c00df7 (diff)
downloadopenembedded-core-a3d63a9291a2b6ed35e98fa864051efd14ebb06e.tar.gz
openembedded-core-a3d63a9291a2b6ed35e98fa864051efd14ebb06e.tar.bz2
openembedded-core-a3d63a9291a2b6ed35e98fa864051efd14ebb06e.tar.xz
openembedded-core-a3d63a9291a2b6ed35e98fa864051efd14ebb06e.zip
linux-openmoko: switch to 2.6.24 (from OE)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4293 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/linux/linux-openmoko.inc')
-rw-r--r--meta/packages/linux/linux-openmoko.inc30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/packages/linux/linux-openmoko.inc b/meta/packages/linux/linux-openmoko.inc
index 910c6549e..69d7845f0 100644
--- a/meta/packages/linux/linux-openmoko.inc
+++ b/meta/packages/linux/linux-openmoko.inc
@@ -1 +1,31 @@
# extra stuff we need for openmoko that is not in linux.inc
+do_deploy_append() {
+ rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin
+ ln -sf ${DEPLOY_DIR_IMAGE}/uImage-${PV}-${PR}-${MACHINE_ARCH}.bin ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE_ARCH}-latest.bin
+}
+
+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
+}
+