summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
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
parente8fdc98779c03aedd12c92a8df29737df97bcfcf (diff)
downloadpoky-b86a5977e136fb8c2ccd4f7af93612f837b0388a.tar.gz
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')
-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 5d5c21b9d3..4ced980c83 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
34 34
35FILES_kernel-image_cm-x270 = "" 35FILES_kernel-image_cm-x270 = ""
36 36
37python do_compulab_image() { 37python compulab_image() {
38 import os 38 import os
39 import os.path 39 import os.path
40 import struct 40 import struct
41 41
42 machine = bb.data.getVar('MACHINE', d, 1) 42 machine = bb.data.getVar('MACHINE', d, 1)
43 if machine == "cm-x270": 43 if machine == "cm-x270":
44 deploy_dir = bb.data.getVar('DEPLOY_DIR_IMAGE', d, 1) 44 deploy_dir = bb.data.getVar('DEPLOYDIR', d, 1)
45 kernel_file = os.path.join(deploy_dir, bb.data.expand('${KERNEL_IMAGE_BASE_NAME}', d) + '.bin') 45 kernel_file = os.path.join(deploy_dir, bb.data.expand('${KERNEL_IMAGE_BASE_NAME}', d) + '.bin')
46 img_file = os.path.join(deploy_dir, bb.data.expand('${KERNEL_IMAGE_BASE_NAME}', d) + '.cmx270') 46 img_file = os.path.join(deploy_dir, bb.data.expand('${KERNEL_IMAGE_BASE_NAME}', d) + '.cmx270')
47 47
@@ -68,8 +68,7 @@ python do_compulab_image() {
68 pass 68 pass
69 os.symlink(img_file, link_file) 69 os.symlink(img_file, link_file)
70} 70}
71 71do_deploy[postfuncs] += "compulab_image"
72addtask compulab_image after do_deploy before do_package
73 72
74do_kernel_image() { 73do_kernel_image() {
75 74