summaryrefslogtreecommitdiff
path: root/packages/linux/linux.inc
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-12-18 17:20:32 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-12-18 17:20:32 +0000
commit1e5a836412dbc372c81d37ac4c288857619ed1f6 (patch)
treed33f1d8eed4d591823d2ba86772a116fead3f60f /packages/linux/linux.inc
parent9aae17c427fc2842170f760b0a803665ccd205ea (diff)
parented2948f984ef1ea472362cd08fb08dc91f006da6 (diff)
merge of 'c1fd09a0b09739640d55402e3a267d14a39bfd80'
and 'f32bd285f81d67ffe77c826a1f15be44ccefdc3b'
Diffstat (limited to 'packages/linux/linux.inc')
-rw-r--r--packages/linux/linux.inc15
1 files changed, 12 insertions, 3 deletions
diff --git a/packages/linux/linux.inc b/packages/linux/linux.inc
index a08c3a240b..345a2bd021 100644
--- a/packages/linux/linux.inc
+++ b/packages/linux/linux.inc
@@ -4,9 +4,18 @@ LICENSE = "GPL"
inherit kernel
-# Not every device needs mkimage to generate a kernel image, but lets make OE a bit more
-# friendly and increase the "Just Works(TM) factor. Building uboot takes only a minute.
-DEPENDS += " u-boot-mkimage-openmoko-native "
+# Add dependency on mkimage for kernels that build a uImage
+
+python __anonymous () {
+
+ import bb
+
+ kerneltype = bb.data.getVar('KERNEL_IMAGETYPE', d, 1) or ''
+ if kerneltype == 'uImage':
+ depends = bb.data.getVar("DEPENDS", d, 1)
+ depends = "%s u-boot-mkimage-openmoko-native" % depends
+ bb.data.setVar("DEPENDS", depends, d)
+}
RPSRC = "http://www.rpsys.net/openzaurus/patches/archive"