aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mkcompile_h
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mkcompile_h')
-rwxr-xr-xscripts/mkcompile_h8
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
3TARGET=$1 4TARGET=$1
4ARCH=$2 5ARCH=$2
@@ -27,12 +28,7 @@ LC_ALL=C
27export LC_ALL 28export LC_ALL
28 29
29if [ -z "$KBUILD_BUILD_VERSION" ]; then 30if [ -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
36else 32else
37 VERSION=$KBUILD_BUILD_VERSION 33 VERSION=$KBUILD_BUILD_VERSION
38fi 34fi