From dcf3049eb9eedf0838af59969b3f70a43298d3d7 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sat, 31 May 2008 11:12:17 +0000 Subject: classes/kernen.bbclass: Fix INITRAMFS logic to stop breaking builds for people not using it --- classes/kernel.bbclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'classes') 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-*" -- cgit v1.2.3