From 707e73212dfbd007b4799da4e10ec296659d5769 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 27 Jan 2011 02:13:30 +0000 Subject: [PATCH] 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 --- classes/kernel.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5