History

kbuild: remove VERSION and PATCHLEVEL from $(objtree)/Makefile

Neither VERSION nor PATCHLEVEL is used in any useful way.

Masahiro Yamada committed 8 years ago

Commit 77ec0c21 parent 80463f12 files · +1 −8Browse files

Unified · Split

2 files
  1. Makefile +1 −2
  2. scripts/mkmakefile +0 −6
Makefile+1−2
@@ -494,8 +494,7 @@ PHONY += outputmakefile · 493 unmodified lines
494outputmakefile:494outputmakefile:
495ifneq ($(KBUILD_SRC),)495ifneq ($(KBUILD_SRC),)
496 $(Q)ln -fsn $(srctree) source496 $(Q)ln -fsn $(srctree) source
497 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \497 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree) $(objtree)
498 $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL)
499endif498endif
500 499
501ifeq ($(cc-name),clang)500ifeq ($(cc-name),clang)
scripts/mkmakefile+0−6
@@ -7,9 +7,6 @@ · 6 unmodified lines
7# Usage7# Usage
8# $1 - Kernel src directory8# $1 - Kernel src directory
9# $2 - Output directory9# $2 - Output directory
10# $3 - version
11# $4 - patchlevel
12
13 10
14test ! -r $2/Makefile -o -O $2/Makefile || exit 011test ! -r $2/Makefile -o -O $2/Makefile || exit 0
15# Only overwrite automatically generated Makefiles12# Only overwrite automatically generated Makefiles
@@ -25,9 +22,6 @@ fi · 9 unmodified lines
25cat << EOF > $2/Makefile22cat << EOF > $2/Makefile
26# Automatically generated by $0: don't edit23# Automatically generated by $0: don't edit
27 24
28VERSION = $3
29PATCHLEVEL = $4
30
31lastword = \$(word \$(words \$(1)),\$(1))25lastword = \$(word \$(words \$(1)),\$(1))
32makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST)))26makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST)))
33 27

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t