summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass14
1 files changed, 13 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 67dff3f7e6..4b72b682ce 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -3,6 +3,19 @@ inherit linux-kernel-base module_strip
3PROVIDES += "virtual/kernel" 3PROVIDES += "virtual/kernel"
4DEPENDS += "virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules" 4DEPENDS += "virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules"
5 5
6KERNEL_IMAGETYPE ?= "zImage"
7
8python __anonymous () {
9
10 import bb
11
12 kerneltype = bb.data.getVar('KERNEL_IMAGETYPE', d, 1) or ''
13 if kerneltype == 'uImage':
14 depends = bb.data.getVar("DEPENDS", d, 1)
15 depends = "%s u-boot-mkimage-native" % depends
16 bb.data.setVar("DEPENDS", depends, d)
17}
18
6inherit kernel-arch 19inherit kernel-arch
7 20
8PACKAGES_DYNAMIC += "kernel-module-*" 21PACKAGES_DYNAMIC += "kernel-module-*"
@@ -10,7 +23,6 @@ PACKAGES_DYNAMIC += "kernel-image-*"
10 23
11export OS = "${TARGET_OS}" 24export OS = "${TARGET_OS}"
12export CROSS_COMPILE = "${TARGET_PREFIX}" 25export CROSS_COMPILE = "${TARGET_PREFIX}"
13KERNEL_IMAGETYPE ?= "zImage"
14 26
15KERNEL_PRIORITY = "${@bb.data.getVar('PV',d,1).split('-')[0].split('.')[-1]}" 27KERNEL_PRIORITY = "${@bb.data.getVar('PV',d,1).split('-')[0].split('.')[-1]}"
16 28