diff options
Diffstat (limited to 'meta-oe')
-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}' |