zte's code,first commit
Change-Id: I9a04da59e459a9bc0d67f101f700d9d7dc8d681b
diff --git a/build/compiler/gcc-4.9.4_thumb_linux/utils/ubifs.sh b/build/compiler/gcc-4.9.4_thumb_linux/utils/ubifs.sh
new file mode 100755
index 0000000..7d6b4a9
--- /dev/null
+++ b/build/compiler/gcc-4.9.4_thumb_linux/utils/ubifs.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+cfg_file_name=$1
+img_file_name=$2
+vol_name=$3
+file_size=$4
+
+vol_size=$[$file_size*942-512]
+
+
+echo "[ubifs]" > $cfg_file_name
+echo "mode=ubi" >> $cfg_file_name
+echo "image=${img_file_name}" >> $cfg_file_name
+echo "vol_id=0" >> $cfg_file_name
+echo "vol_size=${vol_size}KiB" >> $cfg_file_name
+echo "vol_type=dynamic" >> $cfg_file_name
+echo "vol_name=${vol_name}" >> $cfg_file_name
+echo "vol_flags=autoresize" >> $cfg_file_name
\ No newline at end of file