Fixed a bug where the U-boot environment files are not copied to the boot partition if they were installed in /boot by other recipes.
We should copy the uEnv.txt and user.txt always without placing a condition for the presence of anything else in /boot. This is the original behavior of sdcard_image before the recent wave of changes to it. Signed-off-by: Joel A Fernandes <joelag...@ti.com> --- v2: Updated commit summary classes/sdcard_image.bbclass | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/classes/sdcard_image.bbclass b/classes/sdcard_image.bbclass index ed9d779..c535ad2 100644 --- a/classes/sdcard_image.bbclass +++ b/classes/sdcard_image.bbclass @@ -86,8 +86,10 @@ IMAGE_CMD_sdimg () { suffix=bin fi + cp -v ${IMAGE_ROOTFS}/boot/{user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + if [ -e ${IMAGE_ROOTFS}/boot/u-boot.$suffix ] ; then - cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true + cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix} ${WORKDIR}/tmp-mnt-boot || true else cp -v ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.$suffix ${WORKDIR}/tmp-mnt-boot/u-boot.$suffix fi -- 1.7.0.4 _______________________________________________ Angstrom-distro-devel mailing list Angstrom-distro-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel