tools/fs: add x option, messages and modify volume name on mkromfsimg.sh
authorsunghan <sh924.chang@samsung.com>
Mon, 28 Aug 2017 06:36:19 +0000 (15:36 +0900)
committersunghan <sh924.chang@samsung.com>
Mon, 28 Aug 2017 06:39:32 +0000 (15:39 +0900)
1. Because the .gitignore should not be included at romfs.img, x option
is added.
2. Messages are added to know the start and end of making romfs.
3. The volume name is changed to "TinyAraROMVol" from "NuttXBootVol".

tools/fs/mkromfsimg.sh

index b491f8c..4970bf0 100755 (executable)
@@ -61,6 +61,8 @@ if [ ! -f tools/mkromfsimg.sh ]; then
   fi
 fi
 
+echo "Making romfs.img..."
+
 # Environmental stuff
 
 topdir=$PWD
@@ -83,6 +85,7 @@ genromfs -h 1>/dev/null 2>&1 || { \
 
 # Now we are ready to make the ROMFS image
 
-genromfs -f ${romfsimg} -d ${contentsdir} -V "NuttXBootVol" || { echo "genromfs failed" ; exit 1 ; }
+genromfs -f ${romfsimg} -d ${contentsdir} -x .gitignore -V "TinyAraROMVol" || { echo "genromfs failed" ; exit 1 ; }
 
 # And, finally, create the header file
+echo "${romfsimg} was made."