[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/build/utils/ubifs.sh b/build/utils/ubifs.sh
new file mode 100755
index 0000000..7d6b4a9
--- /dev/null
+++ b/build/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