[Feature][ZXW-25]add version in ap, boot, cap

Change-Id: I381aa18ef8a692dc302891151f2dd45e6cae0a8b
diff --git a/ap/os/linux/linux-3.4.x/init/version.c b/ap/os/linux/linux-3.4.x/init/version.c
index 86fe0cc..01275b6 100644
--- a/ap/os/linux/linux-3.4.x/init/version.c
+++ b/ap/os/linux/linux-3.4.x/init/version.c
@@ -45,4 +45,7 @@
 const char linux_proc_banner[] =
 	"%s version %s"
 	" (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
+//xf.li@20230420 add for ZXW-25 start
+	" (" LYNQ_VERSION ")"
+//xf.li@20230420 add for ZXW-25 end
 	" (" LINUX_COMPILER ") %s\n";
diff --git a/ap/os/linux/linux-3.4.x/scripts/mkcompile_h b/ap/os/linux/linux-3.4.x/scripts/mkcompile_h
index 198517f..88bad3b 100755
--- a/ap/os/linux/linux-3.4.x/scripts/mkcompile_h
+++ b/ap/os/linux/linux-3.4.x/scripts/mkcompile_h
@@ -44,20 +44,26 @@
 	TIMESTAMP=$KBUILD_BUILD_TIMESTAMP
 fi
 if test -z "$KBUILD_BUILD_USER"; then
-	LINUX_COMPILE_BY="SCM"
+#xf.li@2023.04.14 modify for ZXW-25 start
+	LINUX_COMPILE_BY=${USER}
+
 else
 	LINUX_COMPILE_BY=$KBUILD_BUILD_USER
 fi
 if test -z "$KBUILD_BUILD_HOST"; then
-	LINUX_COMPILE_HOST="ZTE"
+	LINUX_COMPILE_HOST=`uname -n`
 else
 	LINUX_COMPILE_HOST=$KBUILD_BUILD_HOST
 fi
+#xf.li@2023.04.10 modify for ZXW-25 end
 
 UTS_VERSION="#$VERSION"
 #zhouguopo modify begin
 UTS_VERSION="#2"
 #zhouguopo modify end
+#xf.li@2023.04.20 modify for ZXW-25 start
+LYNQ_VERSION="$(echo $COMMITID $LYNQ_VERSION)"
+#xf.li@2023.04.20 modify for ZXW-25 end
 CONFIG_FLAGS=""
 if [ -n "$SMP" ] ; then CONFIG_FLAGS="SMP"; fi
 if [ -n "$PREEMPT" ] ; then CONFIG_FLAGS="$CONFIG_FLAGS PREEMPT"; fi
@@ -77,7 +83,9 @@
   echo \#define UTS_MACHINE \"$ARCH\"
 
   echo \#define UTS_VERSION \"`echo $UTS_VERSION | $UTS_TRUNCATE`\"
-
+#xf.li@2023.04.14 modify for ZXW-25 start
+  printf '#define LYNQ_VERSION "%s"\n' "$LYNQ_VERSION"
+#xf.li@2023.04.14 modify for ZXW-25 end
   echo \#define LINUX_COMPILE_BY \"`echo $LINUX_COMPILE_BY | $UTS_TRUNCATE`\"
   echo \#define LINUX_COMPILE_HOST \"`echo $LINUX_COMPILE_HOST | $UTS_TRUNCATE`\"