From 7d09b3e7fac01abd5c54fe34bcf0b85b60d1e059 Mon Sep 17 00:00:00 2001 From: Sipke Vriend Date: Mon, 29 Apr 2013 12:05:19 +1000 Subject: Add creation of symlink uramdisk.image.gz which is default name for uboot ramdisk image. Signed-off-by: Sipke Vriend --- recipes-core/images/rootfs-extra.inc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 recipes-core/images/rootfs-extra.inc (limited to 'recipes-core/images/rootfs-extra.inc') diff --git a/recipes-core/images/rootfs-extra.inc b/recipes-core/images/rootfs-extra.inc new file mode 100644 index 00000000..8919463b --- /dev/null +++ b/recipes-core/images/rootfs-extra.inc @@ -0,0 +1,16 @@ +# File containing rootfs related tasks + +# Create links to match Xilinx uboot default names +# Do this silently as they may not exist depending on configuration + +# When booting with sd card, Xilinx u-boot by default expects +# the rootfs as a u-boot-mkimage wrapped file called uramdisk.image.gz, +# so for convenience symlink the ext2.gz.u-boot file. +# Confirm if all bsps need this? +SRC_MKIMAGE_ROOTFS ?= "${IMAGE_NAME}.rootfs.ext2.gz.u-boot" +SYMLINK_URAMDISK ?= "uramdisk.image.gz" +do_rootfs_append() { + cd ${DEPLOY_DIR_IMAGE} + rm -f ${SYMLINK_URAMDISK} + ln -sf ${SRC_MKIMAGE_ROOTFS} ${SYMLINK_URAMDISK} +} -- cgit v1.2.3-54-g00ecf