]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: use u-boot-mkimage-native for uImage kernels (from linux.inc)
authorMarcin Juszkiewicz <hrw@openedhand.com>
Tue, 25 Mar 2008 15:48:26 +0000 (15:48 +0000)
committerMarcin Juszkiewicz <hrw@openedhand.com>
Tue, 25 Mar 2008 15:48:26 +0000 (15:48 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4116 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/kernel.bbclass
meta/packages/linux/linux.inc

index 67dff3f7e6100434cf753a95c81359c04ed86f39..4b72b682ceea38d7a244cfb32d25f8f92ce0871a 100644 (file)
@@ -3,6 +3,19 @@ inherit linux-kernel-base module_strip
 PROVIDES += "virtual/kernel"
 DEPENDS += "virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules"
 
+KERNEL_IMAGETYPE ?= "zImage"
+
+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-native" % depends
+       bb.data.setVar("DEPENDS", depends, d)
+}
+
 inherit kernel-arch
 
 PACKAGES_DYNAMIC += "kernel-module-*"
@@ -10,7 +23,6 @@ PACKAGES_DYNAMIC += "kernel-image-*"
 
 export OS = "${TARGET_OS}"
 export CROSS_COMPILE = "${TARGET_PREFIX}"
-KERNEL_IMAGETYPE ?= "zImage"
 
 KERNEL_PRIORITY = "${@bb.data.getVar('PV',d,1).split('-')[0].split('.')[-1]}"
 
index 2b376e2d01e4cc987d20781ffc665b0cc5944a09..6993091dfc8ced9fd742749fbd3dfaaf45b9878c 100644 (file)
@@ -6,17 +6,6 @@ inherit kernel
 
 DEPENDS_append_em-x270 = " mtd-utils "
 
-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-native" % depends
-       bb.data.setVar("DEPENDS", depends, d)
-}
-
 RPSRC = "http://www.rpsys.net/openzaurus/patches/archive"
 
 # Specify the commandline for your device