summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-09-18 17:45:51 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-10-04 22:56:01 +0900
commit77ec0c20c7e012b5ebb22197c8a329611458cdf8 (patch)
tree0498aa2469f6e214cd18828716ed606a57706602
parent80463f1b7bf9f822fd3495139bcf3ef254fdca10 (diff)
kbuild: remove VERSION and PATCHLEVEL from $(objtree)/Makefile
Neither VERSION nor PATCHLEVEL is used in any useful way. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r--Makefile3
-rwxr-xr-xscripts/mkmakefile6
2 files changed, 1 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 2087e797c954..182172c72441 100644
--- a/Makefile
+++ b/Makefile
@@ -494,8 +494,7 @@ PHONY += outputmakefile
outputmakefile:
ifneq ($(KBUILD_SRC),)
$(Q)ln -fsn $(srctree) source
- $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \
- $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL)
+ $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree) $(objtree)
endif
ifeq ($(cc-name),clang)
diff --git a/scripts/mkmakefile b/scripts/mkmakefile
index e19d6565f245..e21064445085 100755
--- a/scripts/mkmakefile
+++ b/scripts/mkmakefile
@@ -7,9 +7,6 @@
# Usage
# $1 - Kernel src directory
# $2 - Output directory
-# $3 - version
-# $4 - patchlevel
-
test ! -r $2/Makefile -o -O $2/Makefile || exit 0
# Only overwrite automatically generated Makefiles
@@ -25,9 +22,6 @@ fi
cat << EOF > $2/Makefile
# Automatically generated by $0: don't edit
-VERSION = $3
-PATCHLEVEL = $4
-
lastword = \$(word \$(words \$(1)),\$(1))
makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST)))