From 9df731a176aab8e03b984b681b1bea01ccff6644 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 06 Nov 2023 07:23:06 +0000
Subject: [PATCH] rk3568 rt uboot init

---
 u-boot/scripts/setlocalversion |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/u-boot/scripts/setlocalversion b/u-boot/scripts/setlocalversion
index a3014ca..6b433f0 100755
--- a/u-boot/scripts/setlocalversion
+++ b/u-boot/scripts/setlocalversion
@@ -60,8 +60,6 @@
 			# "v2.6.30-rc5-302-g72357d5"), we pretty print it.
 			if atag="`git describe 2>/dev/null`"; then
 				echo "$atag" | awk -F- '{printf("-%s", $(NF))}'
-				date=`git log -1 --author='@rock-chips' --date=format:%y%m%d | sed -n '/Date:/p' | awk '{ print "-"$2 }'`
-				printf '%s' $date
 
 			# If we don't have a tag at all we print -g{commitish}.
 			else
@@ -74,11 +72,16 @@
 			printf -- '-svn%s' "`git svn find-rev $head`"
 		fi
 
+		# Check submit date of the last rockchip commit
+		date=`git log -1 --author='@rock-chips' --date=format:%y%m%d | sed -n '/Date:/p' | awk '{ print "-"$2 }'`
+		printf '%s' $date
+
 		# Check for uncommitted changes
 		if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then
 			printf '%s' -dirty
 		fi
 
+		# Print build user
 		printf ' \#%s' $USER
 
 		# All done with git

--
Gitblit v1.6.2