hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
u-boot/scripts/setlocalversion
....@@ -60,8 +60,6 @@
6060 # "v2.6.30-rc5-302-g72357d5"), we pretty print it.
6161 if atag="`git describe 2>/dev/null`"; then
6262 echo "$atag" | awk -F- '{printf("-%s", $(NF))}'
63
- date=`git log -1 --author='@rock-chips' --date=format:%y%m%d | sed -n '/Date:/p' | awk '{ print "-"$2 }'`
64
- printf '%s' $date
6563
6664 # If we don't have a tag at all we print -g{commitish}.
6765 else
....@@ -74,11 +72,16 @@
7472 printf -- '-svn%s' "`git svn find-rev $head`"
7573 fi
7674
75
+ # Check submit date of the last rockchip commit
76
+ date=`git log -1 --author='@rock-chips' --date=format:%y%m%d | sed -n '/Date:/p' | awk '{ print "-"$2 }'`
77
+ printf '%s' $date
78
+
7779 # Check for uncommitted changes
7880 if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then
7981 printf '%s' -dirty
8082 fi
8183
84
+ # Print build user
8285 printf ' \#%s' $USER
8386
8487 # All done with git