summaryrefslogtreecommitdiff
path: root/packages/linux/compulab-pxa270_2.6.22.bb
diff options
context:
space:
mode:
authorCliff Brake <cbrake@bec-systems.com>2007-08-21 21:56:00 +0000
committerCliff Brake <cbrake@bec-systems.com>2007-08-21 21:56:00 +0000
commitc730ac55545f18e58f6bba42b2289bf90abd1654 (patch)
treeffe00670936fe6088bf4bfbbc9f41444c89fa406 /packages/linux/compulab-pxa270_2.6.22.bb
parent066eabd17483a4cfe52a427df47bd0b0ba469342 (diff)
compulab-pxa270_2.6.22.bb: fix issues caused by inclusion of linux.inc
the compulab kernel recipe has an extra task that is used to create images with a special header. This task needs to know the image file name created in linux.inc
Diffstat (limited to 'packages/linux/compulab-pxa270_2.6.22.bb')
-rw-r--r--packages/linux/compulab-pxa270_2.6.22.bb9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/linux/compulab-pxa270_2.6.22.bb b/packages/linux/compulab-pxa270_2.6.22.bb
index 31a925d2e5..c1d0116a4f 100644
--- a/packages/linux/compulab-pxa270_2.6.22.bb
+++ b/packages/linux/compulab-pxa270_2.6.22.bb
@@ -44,13 +44,12 @@ python do_compulab_image() {
import struct
deploy_dir = bb.data.getVar('DEPLOY_DIR_IMAGE', d, 1)
- kernel_name = os.path.join(deploy_dir, bb.data.expand('${KERNEL_IMAGETYPE}-${MACHINE}.bin', d))
-
- img_file = os.path.join(deploy_dir, 'zImage-compulab-pxa270.cmx270')
+ 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')
fo = open(img_file, 'wb')
- image_data = open(kernel_name, 'rb').read()
+ image_data = open(kernel_file, 'rb').read()
# first write size into first 4 bytes
size_s = struct.pack('i', len(image_data))
@@ -63,5 +62,5 @@ python do_compulab_image() {
fo.close()
}
-addtask compulab_image before do_install after do_deploy
+addtask compulab_image after do_deploy before do_package