diff options
Diffstat (limited to 'meta/packages/linux/linux-openmoko.inc')
-rw-r--r-- | meta/packages/linux/linux-openmoko.inc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/packages/linux/linux-openmoko.inc b/meta/packages/linux/linux-openmoko.inc index 910c6549ef..69d7845f04 100644 --- a/meta/packages/linux/linux-openmoko.inc +++ b/meta/packages/linux/linux-openmoko.inc | |||
@@ -1 +1,31 @@ | |||
1 | # extra stuff we need for openmoko that is not in linux.inc | 1 | # extra stuff we need for openmoko that is not in linux.inc |
2 | do_deploy_append() { | ||
3 | rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin | ||
4 | ln -sf ${DEPLOY_DIR_IMAGE}/uImage-${PV}-${PR}-${MACHINE_ARCH}.bin ${DEPLOY_DIR_IMAGE}/uImage-${MACHINE_ARCH}-latest.bin | ||
5 | } | ||
6 | |||
7 | RDEPENDS_kernel-image += "mtd-utils" | ||
8 | |||
9 | pkg_postinst_kernel-image () { | ||
10 | if test "x$D" != "x"; then | ||
11 | exit 1 | ||
12 | else | ||
13 | if [ -f ${sysconfdir}/default/flashkernel ] ; then | ||
14 | echo "Upgrading Kernel in Flash" | ||
15 | echo "DO NOT stop this process" | ||
16 | |||
17 | MTD_KERNEL_PARTITION=`cat /proc/mtd | grep kernel | cut -d':' -f1` | ||
18 | MTD_KERNEL_PARTITION=/dev/$MTD_KERNEL_PARTITION | ||
19 | |||
20 | if [ "x$MTD_KERNEL_PARTITION" = "x" ] ; then | ||
21 | exit 1 | ||
22 | fi | ||
23 | |||
24 | ${bindir}/flash_eraseall $MTD_KERNEL_PARTITION | ||
25 | ${bindir}/nandwrite -p $MTD_KERNEL_PARTITION /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-${KERNEL_VERSION} | ||
26 | else | ||
27 | touch ${sysconfdir}/default/flashkernel | ||
28 | fi | ||
29 | fi | ||
30 | } | ||
31 | |||