zte's code,first commit

Change-Id: I9a04da59e459a9bc0d67f101f700d9d7dc8d681b
diff --git a/ap/build/jffs2_lzo.sh b/ap/build/jffs2_lzo.sh
new file mode 100755
index 0000000..6598127
--- /dev/null
+++ b/ap/build/jffs2_lzo.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 -v -x zlib -x rtime -X lzo --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