Change config file.

Change-Id: I86479d14fe794f1bdd61fcfe7fcca1fcdc680383
diff --git a/.gitignore b/.gitignore
index a75a245..0d62a96 100755
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 build.log

 out/

 *.o

+config

diff --git a/build.sh b/build.sh
index b8e75d6..a8fbe05 100755
--- a/build.sh
+++ b/build.sh
@@ -1,5 +1,10 @@
 #!/bin/bash
 
+if [ ! -f config ];then
+	echo "Exec init.sh in the first."
+	exit 1
+fi
+
 # static / shared
 export BUILD_LIB_TYPE=shared
 
diff --git a/configs/config-SDK5G_v2102_v1380-master b/configs/config-SDK5G_v2102_v1380-master
new file mode 100755
index 0000000..7d2b9f7
--- /dev/null
+++ b/configs/config-SDK5G_v2102_v1380-master
@@ -0,0 +1,11 @@
+# Libc glibc / musl
+CONFIG_MBTK_LIBC=musl
+
+# Libc 4.9/8.4/13.3
+CONFIG_GCC_VERSION=13.3
+
+# dev_info version : 1 / 2
+CONFIG_DEV_INFO_VERSION=2
+
+# mbtk_source version : 1 / 2
+CONFIG_MBTK_SOURCE_VERSION=2
diff --git a/config b/configs/config-v1265-LYNQ_SDK_ASR_T108_GXX-000_V05.03.01.01
similarity index 100%
rename from config
rename to configs/config-v1265-LYNQ_SDK_ASR_T108_GXX-000_V05.03.01.01
diff --git a/config b/configs/config-v1265-LYNQ_SDK_ASR_T108_V05.03.01.00
similarity index 100%
copy from config
copy to configs/config-v1265-LYNQ_SDK_ASR_T108_V05.03.01.00
diff --git a/config b/configs/config-v1265-LYNQ_SDK_ASR_T108_YX-000_V05.03.01.01
similarity index 100%
copy from config
copy to configs/config-v1265-LYNQ_SDK_ASR_T108_YX-000_V05.03.01.01
diff --git a/config b/configs/config-v1265-master
similarity index 100%
copy from config
copy to configs/config-v1265-master
diff --git a/init.sh b/init.sh
new file mode 100755
index 0000000..0eab8ab
--- /dev/null
+++ b/init.sh
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+current_branch=`cat ../scripts/current_branch`
+brance_right=0
+
+function help()
+{
+	echo "可用分支:"
+	for brance in $current_branch;
+	do
+		echo $brance
+	done
+}
+
+function brance_check()
+{
+	for brance in $current_branch;
+	do
+		if [ "$brance" == "$1" ];then
+			brance_right=1
+		fi
+	done
+}
+
+
+cd ..
+MBTK_SOURCE_DIR="mbtk_source"
+ASR_RLS_BRANCH=`git branch | grep "*" | cut -d " " -f 2`
+cd $MBTK_SOURCE_DIR
+
+if [ -n "$1" ] ;then
+	brance_check $1
+	if [ $brance_right -eq 1 ]; then
+	#if [ ! $1 in $current_branch ];then
+		echo "Brance : $1"
+		ASR_CUSTOM_BRANCH=$1
+	else
+		help
+		exit 1
+	fi
+else
+	help
+	exit 1
+fi
+
+CONFIG_FILE_NAME=config-$ASR_RLS_BRANCH-$ASR_CUSTOM_BRANCH
+if [ -f configs/$CONFIG_FILE_NAME ];then
+	cp -f configs/$CONFIG_FILE_NAME config
+	./build.sh clean
+	echo "Use config file : $CONFIG_FILE_NAME"
+	cat config | grep =
+else
+	echo "No found config file : $CONFIG_FILE_NAME"
+fi
+