From 244b2c5ca8b14627e4a17755e5922221e121c771 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 09 Oct 2024 06:15:07 +0000
Subject: [PATCH] change system file
---
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