]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
rootfs_ipk.bbclass: add new function make_zimage_symlink_relative
authorRene Wagner <rw@handhelds.org>
Sat, 13 May 2006 16:29:45 +0000 (18:29 +0200)
committerRene Wagner <rw@handhelds.org>
Sat, 13 May 2006 16:29:45 +0000 (18:29 +0200)
org.handhelds.familiar/classes/rootfs_ipk.bbclass

index 062c95735939d1d71b3a0c600b2f118711021e48..8b8c951a2e89a68cc1e251d949cc44617e247c6c 100644 (file)
@@ -130,7 +130,13 @@ create_etc_timestamp() {
        date +%2m%2d%2H%2M%Y >${IMAGE_ROOTFS}/etc/timestamp
 }
 
+make_zimage_symlink_relative () {
+       if [ -L ${IMAGE_ROOTFS}/boot/zImage ]; then
+               (cd ${IMAGE_ROOTFS}/boot/ && for i in `ls zImage-* | sort`; do ln -sf $i zImage; done)
+       fi
+}
+
 # export the zap_root_password and create_etc_timestamp
-EXPORT_FUNCTIONS zap_root_password create_etc_timestamp
+EXPORT_FUNCTIONS zap_root_password create_etc_timestamp make_zimage_symlink_relative
 
 addtask rootfs before do_build after do_install