summaryrefslogtreecommitdiff
path: root/meta/recipes-kernel/linux
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-09-07 15:13:28 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-07 15:16:31 +0100
commitb86a5977e136fb8c2ccd4f7af93612f837b0388a (patch)
treee8034fabcedd935be9332b0986d063bb1ad1e327 /meta/recipes-kernel/linux
parente8fdc98779c03aedd12c92a8df29737df97bcfcf (diff)
downloadopenembedded-core-b86a5977e136fb8c2ccd4f7af93612f837b0388a.tar.gz
openembedded-core-b86a5977e136fb8c2ccd4f7af93612f837b0388a.tar.bz2
openembedded-core-b86a5977e136fb8c2ccd4f7af93612f837b0388a.tar.xz
openembedded-core-b86a5977e136fb8c2ccd4f7af93612f837b0388a.zip
linux: Fix the compulab image post deploy function by making it a postfunc
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-kernel/linux')
-rw-r--r--meta/recipes-kernel/linux/linux_2.6.23.bb7
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/recipes-kernel/linux/linux_2.6.23.bb b/meta/recipes-kernel/linux/linux_2.6.23.bb
index 5d5c21b9d..4ced980c8 100644
--- a/meta/recipes-kernel/linux/linux_2.6.23.bb
+++ b/meta/recipes-kernel/linux/linux_2.6.23.bb
@@ -34,14 +34,14 @@ CMDLINE_cm-x270 = "console=${CMX270_CONSOLE_SERIAL_PORT},38400 monitor=8 bpp=16
FILES_kernel-image_cm-x270 = ""
-python do_compulab_image() {
+python compulab_image() {
import os
import os.path
import struct
machine = bb.data.getVar('MACHINE', d, 1)
if machine == "cm-x270":
- deploy_dir = bb.data.getVar('DEPLOY_DIR_IMAGE', d, 1)
+ deploy_dir = bb.data.getVar('DEPLOYDIR', d, 1)
kernel_file = os.path.join(deploy_dir, bb.data.expand('${KERNEL_IMAGE_BASE_NAME}', d) + '.bin')
img_file = os.path.join(deploy_dir, bb.data.expand('${KERNEL_IMAGE_BASE_NAME}', d) + '.cmx270')
@@ -68,8 +68,7 @@ python do_compulab_image() {
pass
os.symlink(img_file, link_file)
}
-
-addtask compulab_image after do_deploy before do_package
+do_deploy[postfuncs] += "compulab_image"
do_kernel_image() {