| .. | .. |
|---|
| 60 | 60 | # "v2.6.30-rc5-302-g72357d5"), we pretty print it. |
|---|
| 61 | 61 | if atag="`git describe 2>/dev/null`"; then |
|---|
| 62 | 62 | 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 |
|---|
| 65 | 63 | |
|---|
| 66 | 64 | # If we don't have a tag at all we print -g{commitish}. |
|---|
| 67 | 65 | else |
|---|
| .. | .. |
|---|
| 74 | 72 | printf -- '-svn%s' "`git svn find-rev $head`" |
|---|
| 75 | 73 | fi |
|---|
| 76 | 74 | |
|---|
| 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 | + |
|---|
| 77 | 79 | # Check for uncommitted changes |
|---|
| 78 | 80 | if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then |
|---|
| 79 | 81 | printf '%s' -dirty |
|---|
| 80 | 82 | fi |
|---|
| 81 | 83 | |
|---|
| 84 | + # Print build user |
|---|
| 82 | 85 | printf ' \#%s' $USER |
|---|
| 83 | 86 | |
|---|
| 84 | 87 | # All done with git |
|---|