diff options
Diffstat (limited to 'scripts/mkcompile_h')
| -rwxr-xr-x | scripts/mkcompile_h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/mkcompile_h b/scripts/mkcompile_h index fd8fdb91581d..87f1fc9801d7 100755 --- a/scripts/mkcompile_h +++ b/scripts/mkcompile_h | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 | ||
| 2 | 3 | ||
| 3 | TARGET=$1 | 4 | TARGET=$1 |
| 4 | ARCH=$2 | 5 | ARCH=$2 |
| @@ -27,12 +28,7 @@ LC_ALL=C | |||
| 27 | export LC_ALL | 28 | export LC_ALL |
| 28 | 29 | ||
| 29 | if [ -z "$KBUILD_BUILD_VERSION" ]; then | 30 | if [ -z "$KBUILD_BUILD_VERSION" ]; then |
| 30 | if [ -r .version ]; then | 31 | 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 | 32 | else |
| 37 | VERSION=$KBUILD_BUILD_VERSION | 33 | VERSION=$KBUILD_BUILD_VERSION |
| 38 | fi | 34 | fi |
