[oe-commits] Bernhard Reutner-Fischer : kernel.bbclass: simplify "if image" condition

git version control git at git.openembedded.org
Sat Feb 12 15:19:57 UTC 2011


Module: openembedded.git
Branch: master
Commit: 707e73212dfbd007b4799da4e10ec296659d5769
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=707e73212dfbd007b4799da4e10ec296659d5769

Author: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
Date:   Thu Jan 27 02:13:30 2011 +0000

kernel.bbclass: simplify "if image" condition

Anything that expands image to any false value should not set
INITRAMFS_TASK (instead of just "" or None).

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
Signed-off-by: Tom Rini <tom_rini at mentor.com>

---

 classes/kernel.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index 0d1b4ad..e22211d 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -18,7 +18,7 @@ python __anonymous () {
     	bb.data.setVar("DEPENDS", depends, d)
 
     image = bb.data.getVar('INITRAMFS_IMAGE', d, True)
-    if image != '' and image is not None:
+    if image:
         bb.data.setVar('INITRAMFS_TASK', '${INITRAMFS_IMAGE}:do_rootfs', d)
 
     machine_kernel_pr = bb.data.getVar('MACHINE_KERNEL_PR', d, True)





More information about the Openembedded-commits mailing list