diff options
Diffstat (limited to 'packages/linux/compulab-pxa270_2.6.22.bb')
-rw-r--r-- | packages/linux/compulab-pxa270_2.6.22.bb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/linux/compulab-pxa270_2.6.22.bb b/packages/linux/compulab-pxa270_2.6.22.bb index 31a925d2e5..963a8cf39f 100644 --- a/packages/linux/compulab-pxa270_2.6.22.bb +++ b/packages/linux/compulab-pxa270_2.6.22.bb @@ -34,7 +34,6 @@ inherit kernel inherit package ARCH = "arm" -KERNEL_IMAGETYPE = "zImage" FILES_kernel-image = "" @@ -44,13 +43,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 +61,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 |