sdcard_image: Copy user.txt/uEnv.txt if it exists in /boot
[glsdk/meta-ti-glsdk.git] / classes / sdcard_image.bbclass
index d7f48a804bf97591b9803076b26d3b9baa513434..2bbf4c47cf61fa6e9f8ae3ccb524fa8080f8dda8 100644 (file)
@@ -92,8 +92,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