u-boot-dey: remove canonical symlinks and add new ones (per U-Boot config)

The canonical symlinks created by poky's U-Boot class in u-boot.inc for
the different U-Boot configs are in the form:
	u-boot.imx-<config>
	u-boot-<machine>.imx-<config>

These symlinks have the .imx file extension hidden in the middle of the
file name, which looks ugly.
For DEY, remove these unused symlinks and generate new ones in the form:
	u-boot-<config>.imx

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-2192
This commit is contained in:
Hector Palacios 2016-02-11 10:50:25 +01:00
parent 308c5c337d
commit d59fab0cc9
1 changed files with 21 additions and 0 deletions

View File

@ -27,6 +27,27 @@ inherit fsl-u-boot-localversion
EXTRA_OEMAKE_append = " KCFLAGS=-fgnu89-inline"
do_deploy_append() {
# Remove canonical U-Boot symlinks for ${UBOOT_CONFIG} currently in the form:
# u-boot-<platform>.imx-<type>
# u-boot-<type>
# and add a more suitable symlink in the form:
# u-boot-<platform>-<config>.imx
if [ "x${UBOOT_CONFIG}" != "x" ]; then
for config in ${UBOOT_MACHINE}; do
i=`expr $i + 1`
for type in ${UBOOT_CONFIG}; do
j=`expr $j + 1`
if [ $j -eq $i ]; then
cd ${DEPLOYDIR}
rm -r ${UBOOT_BINARY}-${type} ${UBOOT_SYMLINK}-${type}
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} u-boot-${type}.${UBOOT_SUFFIX}
fi
done
unset j
done
unset i
fi
# Boot script for DEY images
mkimage -T script -n bootscript -C none -d ${WORKDIR}/boot.txt ${DEPLOYDIR}/boot.scr
}