* Copy a user.txt and uEnv.txt if they exist in /boot in the root fs to the 
boot partition,
  When the user button is pressed, U-boot chooses between these 2 files, 
user.txt is used
  for flashing while uEnv.txt is for a regular boot

Signed-off-by: Joel A Fernandes <agnel.j...@gmail.com>
---

Changes since v1:
- Added spaces after if condition as requested

 scripts/assemble-image.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/scripts/assemble-image.sh b/scripts/assemble-image.sh
index 6043bde..f54296d 100755
--- a/scripts/assemble-image.sh
+++ b/scripts/assemble-image.sh
@@ -126,6 +126,14 @@ if [ -e ${WORKDIR}/conf/${MACHINE}/sd ] ; then
                        echo "Using uImage from narcissus, no uImage found in 
rootfs"
                fi
 
+               if [ -e ${TARGET_DIR}/boot/user.txt ] ;then
+                       cp -v ${TARGET_DIR}/boot/user.txt 
/mnt/narcissus/sd_image1/
+               fi
+
+               if [ -e ${TARGET_DIR}/boot/uEnv.txt ] ;then
+                       cp -v ${TARGET_DIR}/boot/uEnv.txt 
/mnt/narcissus/sd_image1/
+               fi
+
                echo "Remounting ${LOOP_DEV}"
                umount ${LOOP_DEV}
                mount ${LOOP_DEV}
-- 
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

Reply via email to