History

kbuild: mkcompile_h: do not create .version

This script does not need to create .version; it will be created by scripts/link-vmlinux.sh later. Clean-up the code slightly.

Masahiro Yamada committed 9 years ago

Commit 37131ec1 parent 278ae601 file · +1 −6Browse files

Unified · Split

scripts/mkcompile_h+1−6
@@ -27,12 +27,7 @@ LC_ALL=C · 26 unmodified lines
27export LC_ALL27export LC_ALL
28 28
29if [ -z "$KBUILD_BUILD_VERSION" ]; then29if [ -z "$KBUILD_BUILD_VERSION" ]; then
30 if [ -r .version ]; then30 VERSION=$(cat .version 2>/dev/null || echo 1)
31 VERSION=`cat .version`
32 else
33 VERSION=0
34 echo 0 > .version
35 fi
36else31else
37 VERSION=$KBUILD_BUILD_VERSION32 VERSION=$KBUILD_BUILD_VERSION
38fi33fi