kernel.bbclass,linux.inc: move dependency on u-boot-openmoko-native to kernel.bbclass
authorJeremy Laine <jeremy.laine@m4x.org>
Thu, 27 Mar 2008 22:31:45 +0000 (22:31 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Thu, 27 Mar 2008 22:31:45 +0000 (22:31 +0000)
classes/kernel.bbclass
packages/linux/linux.inc

index f111c9f..06ae246 100644 (file)
@@ -5,6 +5,8 @@ DEPENDS += "virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} v
 
 KERNEL_IMAGETYPE ?= "zImage"
 
+# Add dependency on mkimage for kernels that build a uImage
+
 python __anonymous () {
 
     import bb
@@ -12,7 +14,7 @@ python __anonymous () {
     kerneltype = bb.data.getVar('KERNEL_IMAGETYPE', d, 1) or ''
     if kerneltype == 'uImage':
        depends = bb.data.getVar("DEPENDS", d, 1)
-       depends = "%s u-boot-mkimage-native" % depends
+       depends = "%s u-boot-mkimage-openmoko-native" % depends
        bb.data.setVar("DEPENDS", depends, d)
 }
 
index 66636ba..e460616 100644 (file)
@@ -4,20 +4,6 @@ LICENSE = "GPL"
 
 inherit kernel
 
-# 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"
 
 # Specify the commandline for your device