diff options
author | Richard Purdie <rpurdie@rpsys.net> | 2008-05-31 11:12:17 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-05-31 11:12:17 +0000 |
commit | dcf3049eb9eedf0838af59969b3f70a43298d3d7 (patch) | |
tree | ed91ac475118556373c1d2cda22b25b59b07f1b0 /classes/kernel.bbclass | |
parent | e2187e6b90b74bf6b633ebb526f31e1a036ad77b (diff) |
classes/kernen.bbclass: Fix INITRAMFS logic to stop breaking builds for people not using it
Diffstat (limited to 'classes/kernel.bbclass')
-rw-r--r-- | classes/kernel.bbclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index 01655440a9..5085d9cabd 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -17,10 +17,14 @@ python __anonymous () { depends = "%s u-boot-mkimage-openmoko-native" % depends bb.data.setVar("DEPENDS", depends, d) - if bb.data.getVar('INITRAMFS_IMAGE', d, True) != '': - bb.data.setVar('INITRAMFS_TASK', '${INITRAMFS_IMAGE}:do_rootfs', d); + image = bb.data.getVar('INITRAMFS_IMAGE', d, True) + if image != '' and image is not None: + bb.data.setVar('INITRAMFS_TASK', '${INITRAMFS_IMAGE}:do_rootfs', d) } +INITRAMFS_IMAGE ?= "" +INITRAMFS_TASK ?= "" + inherit kernel-arch PACKAGES_DYNAMIC += "kernel-module-*" |