diff --git a/recipes-bsp/u-boot/u-boot-am335x-nmhw21_git.bb b/recipes-bsp/u-boot/u-boot-am335x-nmhw21_git.bb index 59ba5a9..6be4469 100644 --- a/recipes-bsp/u-boot/u-boot-am335x-nmhw21_git.bb +++ b/recipes-bsp/u-boot/u-boot-am335x-nmhw21_git.bb @@ -22,3 +22,11 @@ do_deploy_append() { cp ${S}/MLO ${DEPLOYDIR}/spl-${PN}.${UBOOT_SUFFIX} } +# nmhw21 and hw26 using same u-boot sources so let's create symlinks for hw26 when building nmhw21 +PN_E = "u-boot-${MACHINE}" +do_deploy_append_am335x-hw26() { + ln -sr ${DEPLOYDIR}/spl-${PN}.xmodem.bin ${DEPLOYDIR}/spl-${PN_E}.xmodem.bin + ln -sr ${DEPLOYDIR}/${PN}.xmodem.bin ${DEPLOYDIR}/${PN_E}.xmodem.bin + ln -sr ${DEPLOYDIR}/${PN}.${UBOOT_SUFFIX} ${DEPLOYDIR}/${PN_E}.${UBOOT_SUFFIX} + ln -sr ${DEPLOYDIR}/spl-${PN}.${UBOOT_SUFFIX} ${DEPLOYDIR}/spl-${PN_E}.${UBOOT_SUFFIX} +}