summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-10-09 14:15:11 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-10-09 14:15:11 +0000
commit7d24d4c5875d461d0c354e96e2c2933c77fae295 (patch)
treec6087f320186c197bf25aef33f6356a820bcb41c /packages
parent8c092e5b6ecc1d32fda067d5cea3b1e23310f94f (diff)
linux 2.6.22: provide symlink to latest kernel image built for Compulab CM-X270 board
Diffstat (limited to 'packages')
-rw-r--r--packages/linux/linux_2.6.22.bb9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/linux/linux_2.6.22.bb b/packages/linux/linux_2.6.22.bb
index b33274d8bf..c493d05b8b 100644
--- a/packages/linux/linux_2.6.22.bb
+++ b/packages/linux/linux_2.6.22.bb
@@ -51,6 +51,15 @@ python do_compulab_image() {
fo.write(size_s)
fo.write(image_data)
fo.close()
+
+ os.chdir(deploy_dir)
+ link_file = bb.data.expand('${KERNEL_IMAGE_SYMLINK_NAME}', d) + '.cmx270'
+ img_file = bb.data.expand('${KERNEL_IMAGE_BASE_NAME}', d) + '.cmx270'
+ try:
+ os.unlink(link_file)
+ except:
+ pass
+ os.symlink(img_file, link_file)
}
addtask compulab_image after do_deploy before do_package