diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-01-27 02:13:30 +0000 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2011-02-12 08:17:48 -0700 |
commit | 707e73212dfbd007b4799da4e10ec296659d5769 (patch) | |
tree | 2e624b1c112447f853393dcfebf0ff1065612850 /classes/kernel.bbclass | |
parent | f2bb9cc21312943a0f3c29c6ff2767f3330dce46 (diff) | |
download | openembedded-707e73212dfbd007b4799da4e10ec296659d5769.tar.gz |
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@gmail.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'classes/kernel.bbclass')
-rw-r--r-- | classes/kernel.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
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) |