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

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/mkcompile_h+1−6
@@ -27,12 +27,7 @@ LC_ALL=C · 26 unmodified lines
2727 export LC_ALL
2828
2929 if [ -z "$KBUILD_BUILD_VERSION" ]; then
30− if [ -r .version ]; then
31− VERSION=`cat .version`
32− else
33− VERSION=0
34− echo 0 > .version
35− fi
30+ VERSION=$(cat .version 2>/dev/null || echo 1)
3631 else
3732 VERSION=$KBUILD_BUILD_VERSION
3833 fi