Skip to content

Commit

Permalink
kbuild: mkcompile_h: do not create .version
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahiro Yamada committed Oct 9, 2017
1 parent 278ae60 commit 37131ec
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/mkcompile_h
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,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
Expand Down

0 comments on commit 37131ec

Please sign in to comment.