diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-09-22 01:31:14 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-10-09 10:28:46 -0400 |
commit | 37131ec4f9cb60750be6f75fca20ff6bbf1b8efd (patch) | |
tree | d61347048afeaea692934aebb377662df493fc51 | |
parent | 278ae6040397f37fa6a96a6b86ed02d4762080a7 (diff) |
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>
-rwxr-xr-x | scripts/mkcompile_h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index fd8fdb91581d..f1ee4ebd6518 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h | |||
@@ -27,12 +27,7 @@ LC_ALL=C | |||
27 | export LC_ALL | 27 | export LC_ALL |
28 | 28 | ||
29 | if [ -z "$KBUILD_BUILD_VERSION" ]; then | 29 | if [ -z "$KBUILD_BUILD_VERSION" ]; then |
30 | if [ -r .version ]; then | 30 | VERSION=$(cat .version 2>/dev/null || echo 1) |
31 | VERSION=`cat .version` | ||
32 | else | ||
33 | VERSION=0 | ||
34 | echo 0 > .version | ||
35 | fi | ||
36 | else | 31 | else |
37 | VERSION=$KBUILD_BUILD_VERSION | 32 | VERSION=$KBUILD_BUILD_VERSION |
38 | fi | 33 | fi |