diff options
author | Rene Wagner <rw@handhelds.org> | 2006-05-13 18:29:45 +0200 |
---|---|---|
committer | Rene Wagner <rw@handhelds.org> | 2006-05-13 18:29:45 +0200 |
commit | a912bd06e6266de715a1873dbe10e56745a9aabb (patch) | |
tree | 319da26f52e86a2786b779d6ab39e9ff40336896 | |
parent | 3d9439629e048dda0f6f3ff2ee7119d656524fe5 (diff) |
rootfs_ipk.bbclass: add new function make_zimage_symlink_relative
-rw-r--r-- | org.handhelds.familiar/classes/rootfs_ipk.bbclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/org.handhelds.familiar/classes/rootfs_ipk.bbclass b/org.handhelds.familiar/classes/rootfs_ipk.bbclass index 062c957..8b8c951 100644 --- a/org.handhelds.familiar/classes/rootfs_ipk.bbclass +++ b/org.handhelds.familiar/classes/rootfs_ipk.bbclass @@ -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 |