Neither VERSION nor PATCHLEVEL is used in any useful way.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
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)
# 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
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)))