diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/kernel.bbclass | 14 | ||||
-rw-r--r-- | meta/packages/linux/linux.inc | 11 |
2 files changed, 13 insertions, 12 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 | |||
3 | PROVIDES += "virtual/kernel" | 3 | PROVIDES += "virtual/kernel" |
4 | DEPENDS += "virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules" | 4 | DEPENDS += "virtual/${TARGET_PREFIX}depmod-${@get_kernelmajorversion('${PV}')} virtual/${TARGET_PREFIX}gcc${KERNEL_CCSUFFIX} update-modules" |
5 | 5 | ||
6 | KERNEL_IMAGETYPE ?= "zImage" | ||
7 | |||
8 | python __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 | |||
6 | inherit kernel-arch | 19 | inherit kernel-arch |
7 | 20 | ||
8 | PACKAGES_DYNAMIC += "kernel-module-*" | 21 | PACKAGES_DYNAMIC += "kernel-module-*" |
@@ -10,7 +23,6 @@ PACKAGES_DYNAMIC += "kernel-image-*" | |||
10 | 23 | ||
11 | export OS = "${TARGET_OS}" | 24 | export OS = "${TARGET_OS}" |
12 | export CROSS_COMPILE = "${TARGET_PREFIX}" | 25 | export CROSS_COMPILE = "${TARGET_PREFIX}" |
13 | KERNEL_IMAGETYPE ?= "zImage" | ||
14 | 26 | ||
15 | KERNEL_PRIORITY = "${@bb.data.getVar('PV',d,1).split('-')[0].split('.')[-1]}" | 27 | KERNEL_PRIORITY = "${@bb.data.getVar('PV',d,1).split('-')[0].split('.')[-1]}" |
16 | 28 | ||
diff --git a/meta/packages/linux/linux.inc b/meta/packages/linux/linux.inc index 2b376e2d01..6993091dfc 100644 --- a/meta/packages/linux/linux.inc +++ b/meta/packages/linux/linux.inc | |||
@@ -6,17 +6,6 @@ inherit kernel | |||
6 | 6 | ||
7 | DEPENDS_append_em-x270 = " mtd-utils " | 7 | DEPENDS_append_em-x270 = " mtd-utils " |
8 | 8 | ||
9 | python __anonymous () { | ||
10 | |||
11 | import bb | ||
12 | |||
13 | kerneltype = bb.data.getVar('KERNEL_IMAGETYPE', d, 1) or '' | ||
14 | if kerneltype == 'uImage': | ||
15 | depends = bb.data.getVar("DEPENDS", d, 1) | ||
16 | depends = "%s u-boot-mkimage-native" % depends | ||
17 | bb.data.setVar("DEPENDS", depends, d) | ||
18 | } | ||
19 | |||
20 | RPSRC = "http://www.rpsys.net/openzaurus/patches/archive" | 9 | RPSRC = "http://www.rpsys.net/openzaurus/patches/archive" |
21 | 10 | ||
22 | # Specify the commandline for your device | 11 | # Specify the commandline for your device |