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
494494 outputmakefile:
495495 ifneq ($(KBUILD_SRC),)
496496 $(Q)ln -fsn $(srctree) source
497− $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile \
498− $(srctree) $(objtree) $(VERSION) $(PATCHLEVEL)
497+ $(Q)$(CONFIG_SHELL) $(srctree)/scripts/mkmakefile $(srctree) $(objtree)
499498 endif
500499
501500 ifeq ($(cc-name),clang)
scripts/mkmakefile+0−6
@@ -7,9 +7,6 @@ · 6 unmodified lines
77 # Usage
88 # $1 - Kernel src directory
99 # $2 - Output directory
10−# $3 - version
11−# $4 - patchlevel
12−
1310
1411 test ! -r $2/Makefile -o -O $2/Makefile || exit 0
1512 # Only overwrite automatically generated Makefiles
@@ -25,9 +22,6 @@ fi · 9 unmodified lines
2522 cat << EOF > $2/Makefile
2623 # Automatically generated by $0: don't edit
2724
28−VERSION = $3
29−PATCHLEVEL = $4
30−
3125 lastword = \$(word \$(words \$(1)),\$(1))
3226 makedir := \$(dir \$(call lastword,\$(MAKEFILE_LIST)))
3327

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