]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
kbuild: remove VERSION and PATCHLEVEL from $(objtree)/Makefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 18 Sep 2018 08:45:51 +0000 (17:45 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 4 Oct 2018 13:56:01 +0000 (22:56 +0900)
Neither VERSION nor PATCHLEVEL is used in any useful way.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Makefile
scripts/mkmakefile

index 2087e797c954e4c39d10877602167eb78fb24c35..182172c724412079684154ad81f1d805043c4088 100644 (file)
--- 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)
index e19d6565f24570363e0bd464e64f1abc01e25ccb..e21064445085f4445cc4baa3a147e34d5ed1f91f 100755 (executable)
@@ -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)))