[oe-commits] Martin Jansa : linux-openmoko: upgrade kernel in NAND partition also if rootfs is ubi (not only mtdblock)

git version control git at git.openembedded.org
Wed Jul 21 11:15:44 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 99f1588f4dd095151ab7d073144ca42b6a8ee5fe
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=99f1588f4dd095151ab7d073144ca42b6a8ee5fe

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Wed Jul 21 13:14:30 2010 +0200

linux-openmoko: upgrade kernel in NAND partition also if rootfs is ubi (not only mtdblock)

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 recipes/linux/linux-openmoko.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/recipes/linux/linux-openmoko.inc b/recipes/linux/linux-openmoko.inc
index c8c38d0..8516954 100644
--- a/recipes/linux/linux-openmoko.inc
+++ b/recipes/linux/linux-openmoko.inc
@@ -68,10 +68,11 @@ 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`
+has_ubi=`echo $boot_arg |grep ubi`
 
 if test "x$D" != "x"; then
         exit 1
-elif test "empty$has_mtdblock" != "empty"; then
+elif test "empty$has_mtdblock" != "empty" -o "empty$has_ubi" != "empty"; then
 	if [ -f ${sysconfdir}/default/flashkernel ] ; then
 		echo "Upgrading Kernel in Flash"
 		echo "DO NOT stop this process"





More information about the Openembedded-commits mailing list