projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rtnetlink: fix typo in GSO max segments
[platform/kernel/linux-starfive.git]
/
scripts
/
mkcompile_h
diff --git
a/scripts/mkcompile_h
b/scripts/mkcompile_h
index
959199c
..
87f1fc9
100755
(executable)
--- a/
scripts/mkcompile_h
+++ b/
scripts/mkcompile_h
@@
-28,12
+28,7
@@
LC_ALL=C
export LC_ALL
if [ -z "$KBUILD_BUILD_VERSION" ]; then
- if [ -r .version ]; then
- VERSION=`cat .version`
- else
- VERSION=0
- echo 0 > .version
- fi
+ VERSION=$(cat .version 2>/dev/null || echo 1)
else
VERSION=$KBUILD_BUILD_VERSION
fi