summaryrefslogtreecommitdiff
path: root/packages/linux/linux-openmoko.inc
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-12-19 09:20:25 +0100
committerKoen Kooi <koen@openembedded.org>2008-12-19 09:20:25 +0100
commit89becd13888f321e4f7e1d88165db41f86caaaf8 (patch)
tree47c3b02c7f8de78003f446c9a5bc5b73d3f4a40c /packages/linux/linux-openmoko.inc
parent26102276cb26e256186d841390988460c52bde8a (diff)
parentef5ad935d6efd350b24e141e34bf26744ca31409 (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'packages/linux/linux-openmoko.inc')
-rw-r--r--packages/linux/linux-openmoko.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/linux/linux-openmoko.inc b/packages/linux/linux-openmoko.inc
index c986975851..278a01d5ee 100644
--- a/packages/linux/linux-openmoko.inc
+++ b/packages/linux/linux-openmoko.inc
@@ -56,9 +56,14 @@ do_deploy_append() {
RDEPENDS_kernel-image += "mtd-utils"
pkg_postinst_kernel-image () {
+
+# Get the lastest root file system value of boot args
+boot_arg=`cat /proc/cmdline |tr " " "\n"|grep "root=" |tail -n 1`
+has_mtdblock=`echo $boot_arg |grep mtdblock`
+
if test "x$D" != "x"; then
exit 1
-else
+elif test "empty$has_mtdblock" != "empty"; then
if [ -f ${sysconfdir}/default/flashkernel ] ; then
echo "Upgrading Kernel in Flash"
echo "DO NOT stop this process"
@@ -79,6 +84,8 @@ else
else
touch ${sysconfdir}/default/flashkernel
fi
+else
+ echo "You are not booting from NAND, don't flash kernel into mtdblock."
fi
}