From: Rene Wagner Date: Sat, 13 May 2006 16:29:45 +0000 (+0200) Subject: rootfs_ipk.bbclass: add new function make_zimage_symlink_relative X-Git-Tag: familiar-v0.8.4-rc2.3-tag~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a912bd06e6266de715a1873dbe10e56745a9aabb;p=familiar-h63xx-build.git rootfs_ipk.bbclass: add new function make_zimage_symlink_relative --- 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