Add basic change for v1453
Change-Id: I9497a61bbc3717f66413794a4e7dee0347c0bc33
diff --git a/asr_build.sh b/asr_build.sh
new file mode 100755
index 0000000..eede8f4
--- /dev/null
+++ b/asr_build.sh
@@ -0,0 +1,58 @@
+#!/bin/bash
+
+DECONFIG_FILE=defconfig_asr1803p401
+
+help()
+{
+ echo "./asr_build.sh 1803/1806/1903/clean"
+}
+
+build_init()
+{
+ if [ ! -d "feeds/" ]; then
+ echo "Start build inti..."
+ ./scripts/feeds update -a
+ ./scripts/feeds install -a
+ fi
+}
+
+build_code()
+{
+ echo "$DECONFIG_FILE"
+ make $DECONFIG_FILE
+ make -j8 V=99 2>&1 | tee build.log
+}
+
+if [ -n "$1" ] ;then #有参数
+ case "$1" in
+ clean)
+ make distclean
+ ;;
+ 1806)
+ build_init
+
+ DECONFIG_FILE=defconfig_asr1806p301
+
+ build_code
+ ;;
+ 1803)
+ build_init
+
+ DECONFIG_FILE=defconfig_asr1803p401
+
+ build_code
+ ;;
+ 1903)
+ build_init
+
+ DECONFIG_FILE=defconfig_asr1903p501
+
+ build_code
+ ;;
+ *)
+ help
+ ;;
+ esac
+else # 全编
+ help
+fi