diff options
| -rw-r--r-- | meta/recipes-kernel/linux/linux_2.6.23.bb | 7 |
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 | ||
| 35 | FILES_kernel-image_cm-x270 = "" | 35 | FILES_kernel-image_cm-x270 = "" |
| 36 | 36 | ||
| 37 | python do_compulab_image() { | 37 | python 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 | 71 | do_deploy[postfuncs] += "compulab_image" | |
| 72 | addtask compulab_image after do_deploy before do_package | ||
| 73 | 72 | ||
| 74 | do_kernel_image() { | 73 | do_kernel_image() { |
| 75 | 74 | ||
