[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/build/jffs2.sh b/ap/build/jffs2.sh
new file mode 100755
index 0000000..2462ff6
--- /dev/null
+++ b/ap/build/jffs2.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+if [ x"$PAGESIZE" = x"" ]; then
+ PAGESIZE=0x800
+fi
+
+if [ x"$ERASEBLOCK" = x"" ]; then
+ ERASEBLOCK=0x20000
+fi
+
+mkfs.jffs2 --pagesize=$PAGESIZE --eraseblock=$ERASEBLOCK --little-endian --no-cleanmarkers --squash -d $1 -o $2
+if [ $? -ne 0 ]; then
+ echo "mkfs.jffs2 error"
+ exit -1
+else
+ echo "mkfs.jffs2 ok"
+fi
+
+exit 0