From: Bernhard Reutner-Fischer Date: Thu, 27 Jan 2011 02:13:30 +0000 (+0000) Subject: kernel.bbclass: simplify "if image" condition X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=707e73212dfbd007b4799da4e10ec296659d5769;p=openembedded.git 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 Signed-off-by: Tom Rini --- diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index 0d1b4ad4b0..e22211dae4 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)