[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit
Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/build/config_check.sh b/ap/build/config_check.sh
new file mode 100755
index 0000000..e9023ed
--- /dev/null
+++ b/ap/build/config_check.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+diffconfig=$LINUX_DIR/scripts/diffconfig
+
+config_old=$1
+config_new=$2
+
+#diff_cnt=`$diffconfig $config_old $config_new | grep -E "\-|+" | grep " y" | wc | awk '{ print $1 }'`
+diff_cnt=`$diffconfig $config_old $config_new | grep "-" | grep " y" | wc | awk '{ print $1 }'`
+if [ $diff_cnt -gt 0 ]; then
+ echo "[error] $config_old -> $config_new difference"
+ $diffconfig $config_old $config_new | grep "-" | grep " y"
+ exit $diff_cnt
+fi
+
+echo "[pass] linux config diffconfig check pass"
+exit 0