Skip to content

Commit 37131ec

Browse files
committed
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. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 278ae60 commit 37131ec

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎scripts/mkcompile_h‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ LC_ALL=C
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

0 commit comments

Comments
 (0)