flasher: revise autoboot handling
[pandora-misc.git] / flasher / doit.sh
index 0fd8c89..14c1024 100755 (executable)
@@ -20,7 +20,7 @@ mkimage="tmp/mkimage"
 zipfile="pandora_flasher_v.zip"
 
 if test '!' '(' -d $rd_input -a -f ${sysf_in}x-load.bin.ift -a -f ${sysf_in}u-boot.bin \
-       -a -f ${sysf_in}uImage -a -f ${sysf_in}uImage_updater ')'
+       -a -f ${sysf_in}uImage -a -f ${sysf_in}uImage_updater -a -f ${sysf_in}bootmenu.txt ')'
 then
        echo "missing input files"
        exit 1
@@ -37,7 +37,9 @@ cp ${sysf_in}u-boot.bin_updater ${out_opt_dir}u-boot.bin
 
 # bootf.tgz
 cd $sysf_in
-tar czvf $bootf u-boot.bin uImage
+bootf_files=`echo u-boot.bin uImage uImage-* bootmenu.txt`
+test -e autoboot.txt && bootf_files="$bootf_files autoboot.txt"
+tar czvf $bootf $bootf_files
 cd ..
 mv -f ${sysf_in}${bootf} ${out_dir}