diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-07-15 17:29:38 +0200 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-07-15 17:29:38 +0200 |
commit | b42f8cbcf1b66eb580abdd3c67b2e9ead1270580 (patch) | |
tree | 98e032f2ba41a3a9b58bd2c7b395fb5ba41c5661 /meta-oe/classes | |
parent | 14609a197a8fb2c34818fe37ebc0272a0ec07095 (diff) | |
download | meta-openembedded-b42f8cbcf1b66eb580abdd3c67b2e9ead1270580.tar.gz |
kernel.bbclass: sync with oe-core after recent initramfs merges
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/classes')
-rw-r--r-- | meta-oe/classes/kernel.bbclass | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/meta-oe/classes/kernel.bbclass b/meta-oe/classes/kernel.bbclass index a5c906222..3e3e71cf5 100644 --- a/meta-oe/classes/kernel.bbclass +++ b/meta-oe/classes/kernel.bbclass | |||
@@ -7,6 +7,8 @@ DEPENDS += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}depmod virtual/$ | |||
7 | INHIBIT_DEFAULT_DEPS = "1" | 7 | INHIBIT_DEFAULT_DEPS = "1" |
8 | 8 | ||
9 | KERNEL_IMAGETYPE ?= "zImage" | 9 | KERNEL_IMAGETYPE ?= "zImage" |
10 | INITRAMFS_IMAGE ?= "" | ||
11 | INITRAMFS_TASK ?= "" | ||
10 | 12 | ||
11 | python __anonymous () { | 13 | python __anonymous () { |
12 | kerneltype = bb.data.getVar('KERNEL_IMAGETYPE', d, 1) or '' | 14 | kerneltype = bb.data.getVar('KERNEL_IMAGETYPE', d, 1) or '' |
@@ -16,7 +18,7 @@ python __anonymous () { | |||
16 | bb.data.setVar("DEPENDS", depends, d) | 18 | bb.data.setVar("DEPENDS", depends, d) |
17 | 19 | ||
18 | image = bb.data.getVar('INITRAMFS_IMAGE', d, True) | 20 | image = bb.data.getVar('INITRAMFS_IMAGE', d, True) |
19 | if image != '' and image is not None: | 21 | if image: |
20 | bb.data.setVar('INITRAMFS_TASK', '${INITRAMFS_IMAGE}:do_rootfs', d) | 22 | bb.data.setVar('INITRAMFS_TASK', '${INITRAMFS_IMAGE}:do_rootfs', d) |
21 | 23 | ||
22 | machine_kernel_pr = bb.data.getVar('MACHINE_KERNEL_PR', d, True) | 24 | machine_kernel_pr = bb.data.getVar('MACHINE_KERNEL_PR', d, True) |
@@ -25,9 +27,6 @@ python __anonymous () { | |||
25 | bb.data.setVar('PR', machine_kernel_pr, d) | 27 | bb.data.setVar('PR', machine_kernel_pr, d) |
26 | } | 28 | } |
27 | 29 | ||
28 | INITRAMFS_IMAGE ?= "" | ||
29 | INITRAMFS_TASK ?= "" | ||
30 | |||
31 | inherit kernel-arch deploy | 30 | inherit kernel-arch deploy |
32 | 31 | ||
33 | PACKAGES_DYNAMIC += "kernel-module-*" | 32 | PACKAGES_DYNAMIC += "kernel-module-*" |
@@ -194,7 +193,7 @@ kernel_do_configure() { | |||
194 | yes '' | oe_runmake oldconfig | 193 | yes '' | oe_runmake oldconfig |
195 | 194 | ||
196 | if [ ! -z "${INITRAMFS_IMAGE}" ]; then | 195 | if [ ! -z "${INITRAMFS_IMAGE}" ]; then |
197 | for img in cpio.gz cpio.lzo cpio.lzma; do | 196 | for img in cpio.gz cpio.lzo cpio.lzma cpio.xz ; do |
198 | if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" ]; then | 197 | if [ -e "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" ]; then |
199 | cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" initramfs.$img | 198 | cp "${DEPLOY_DIR_IMAGE}/${INITRAMFS_IMAGE}-${MACHINE}.$img" initramfs.$img |
200 | fi | 199 | fi |
@@ -202,7 +201,7 @@ kernel_do_configure() { | |||
202 | fi | 201 | fi |
203 | } | 202 | } |
204 | 203 | ||
205 | kernel_do_configure[depends] += "${INITRAMFS_TASK}" | 204 | do_configure[depends] += "${INITRAMFS_TASK}" |
206 | 205 | ||
207 | do_menuconfig() { | 206 | do_menuconfig() { |
208 | export DISPLAY='${DISPLAY}' | 207 | export DISPLAY='${DISPLAY}' |