Fix build.sh
Change-Id: I5cecdeff573d970ade913bbfc9eff3574e873200
diff --git a/build.sh b/build.sh
index 9a0ba12..4d5117c 100755
--- a/build.sh
+++ b/build.sh
@@ -2,13 +2,24 @@
# Config item.
# static / shared
-LIB_TYPE=static
+#LIB_TYPE=static
# gcc-4.9 / gcc-8.4
-PLATFORM=gcc-4.9
+#export PLATFORM=gcc-4.9
+
+# static / shared
+export BUILD_LIB_TYPE=shared
+# gcc-4.9 / gcc-8.4
+
+grep "url" ../.git/config | cut -d " " -f 3 | grep "kernel_5.4.195"
+if [ $? -eq "0" ]; then
+ export BUILD_PLATFORM=gcc-8.4
+else
+ export BUILD_PLATFORM=gcc-4.9
+fi
ROOT_DIR=`pwd`
-TOOLCHAIN_DIR=$ROOT_DIR/toolchain/$BUILD_PLATFORM
-echo "toolchain : $ROOT_DIR"
+#TOOLCHAIN_DIR=$ROOT_DIR/toolchain/$BUILD_PLATFORM
+#echo "toolchain : $ROOT_DIR"