[Feature][T106]add script to make T106
Change-Id: Id7d51de6b9082b421d74253ccdf15d4a00fa7d6a
diff --git a/esdk_patch/mk_esdk.sh b/esdk_patch/mk_esdk.sh
new file mode 100755
index 0000000..5037d76
--- /dev/null
+++ b/esdk_patch/mk_esdk.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+dest_dir_relative=$1
+intall_dir=$(pwd)
+
+chmod a+x ./vehicle_dc-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh
+mkdir ${dest_dir_relative}
+cd $1
+dest_dir=$(pwd)
+cd $intall_dir
+if [ ! -d ${dest_dir} ]; then
+ echo "Input invaild path for folders to install\n"
+ exit 1
+fi
+./vehicle_dc-glibc-x86_64-zxic-image-armv7a-zx297520v3-toolchain-ext-1.0.sh -d ${dest_dir}/esdk
+tar -zxvf upstream.tar.gz -C $dest_dir
+ln -s ${dest_dir}/upstream/tools ${dest_dir}/esdk
+cp linux_bb.diff ${dest_dir}/esdk/layers/meta-zxic/recipes-kernel/linux/
+cd ${dest_dir}/esdk/layers/meta-zxic/recipes-kernel/linux
+git apply linux_bb.diff
+cd ${dest_dir}/esdk