linux 2.6.22: provide symlink to latest kernel image built for Compulab CM-X270 board
authorMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 9 Oct 2007 14:15:11 +0000 (14:15 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 9 Oct 2007 14:15:11 +0000 (14:15 +0000)
packages/linux/linux_2.6.22.bb

index b33274d..c493d05 100644 (file)
@@ -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