summaryrefslogtreecommitdiff
path: root/org.handhelds.familiar/classes/rootfs_ipk.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'org.handhelds.familiar/classes/rootfs_ipk.bbclass')
-rw-r--r--org.handhelds.familiar/classes/rootfs_ipk.bbclass8
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