[Feature][T8TSK-239]add core num in /proc/version, fix the commit id
Change-Id: I4779d2b4930d04544ea4e3a0730369806508ec1f
diff --git a/update_version.sh b/update_version.sh
index 8790303..e3b425f 100644
--- a/update_version.sh
+++ b/update_version.sh
@@ -2,9 +2,14 @@
LYNQ_SW_INSIDE_VERSION="LYNQ_CONFIG_VERSION = \"T800_UNSET_v02.MP1_MR3.02b06.00.01\""
LYNQ_SW_VERSION="LYNQ_CONFIG_SW_VERSION = \"T800_UNSET_v02.MP1_MR1.01b06.00\""
+COMMIT_ID="$(git rev-parse --short HEAD)"
+LYNQ_COMMITID="LYNQ_CONFIG_COMMITID = \"${COMMIT_ID}\""
eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-base.conf
eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-base.conf
+eval sed -i 's/^.*LYNQ_CONFIG_COMMITID.*$/"${LYNQ_COMMITID}"/' $(pwd)/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-base.conf
+
eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/meta-sdk/meta/meta-lynqSDK-T800/conf/machine/auto2735evb-ivt-base.conf
eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/meta-sdk/meta/meta-lynqSDK-T800/conf/machine/auto2735evb-ivt-base.conf
+eval sed -i 's/^.*LYNQ_CONFIG_COMMITID.*$/"${LYNQ_COMMITID}"/' $(pwd)/meta-sdk/meta/meta-lynqSDK-T800/conf/machine/auto2735evb-ivt-base.conf