Skip to content

Commit 45e3e19

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next
* 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next: (53 commits) .gitignore: ignore *.lzma files kbuild: add generic --set-str option to scripts/config kbuild: simplify argument loop in scripts/config kbuild: handle non-existing options in scripts/config kallsyms: generalize text region handling kallsyms: support kernel symbols in Blackfin on-chip memory documentation: make version fix kbuild: fix a compile warning gitignore: Add GNU GLOBAL files to top .gitignore kbuild: fix delay in setlocalversion on readonly source README: fix misleading pointer to the defconf directory vmlinux.lds.h update kernel-doc: cleanup perl script Improve vmlinux.lds.h support for arch specific linker scripts kbuild: fix headers_exports with boolean expression kbuild/headers_check: refine extern check kbuild: fix "Argument list too long" error for "make headers_check", ignore *.patch files Remove bashisms from scripts menu: fix embedded menu presentation ...
2 parents cf50463 + 3f8d9ce commit 45e3e19

34 files changed

+872
-442
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
*.elf
2626
*.bin
2727
*.gz
28+
*.lzma
29+
*.patch
2830

2931
#
3032
# Top-level generic files
@@ -62,6 +64,12 @@ series
6264
cscope.*
6365
ncscope.*
6466

67+
# gnu global files
68+
GPATH
69+
GRTAGS
70+
GSYMS
71+
GTAGS
72+
6573
*.orig
6674
*~
6775
\#*#

Documentation/Changes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ hardware, for example, you probably needn't concern yourself with
2929
isdn4k-utils.
3030

3131
o Gnu C 3.2 # gcc --version
32-
o Gnu make 3.79.1 # make --version
32+
o Gnu make 3.80 # make --version
3333
o binutils 2.12 # ld -v
3434
o util-linux 2.10o # fdformat --version
3535
o module-init-tools 0.9.10 # depmod -V
@@ -62,7 +62,7 @@ computer.
6262
Make
6363
----
6464

65-
You will need Gnu make 3.79.1 or later to build the kernel.
65+
You will need Gnu make 3.80 or later to build the kernel.
6666

6767
Binutils
6868
--------

Documentation/kbuild/kconfig.txt

Lines changed: 60 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -35,48 +35,26 @@ new .config files to see the differences:
3535

3636
(Yes, we need something better here.)
3737

38-
39-
======================================================================
40-
menuconfig
41-
--------------------------------------------------
42-
43-
SEARCHING for CONFIG symbols
44-
45-
Searching in menuconfig:
46-
47-
The Search function searches for kernel configuration symbol
48-
names, so you have to know something close to what you are
49-
looking for.
50-
51-
Example:
52-
/hotplug
53-
This lists all config symbols that contain "hotplug",
54-
e.g., HOTPLUG, HOTPLUG_CPU, MEMORY_HOTPLUG.
55-
56-
For search help, enter / followed TAB-TAB-TAB (to highlight
57-
<Help>) and Enter. This will tell you that you can also use
58-
regular expressions (regexes) in the search string, so if you
59-
are not interested in MEMORY_HOTPLUG, you could try
60-
61-
/^hotplug
62-
63-
6438
______________________________________________________________________
65-
Color Themes for 'menuconfig'
39+
Environment variables for '*config'
6640

67-
It is possible to select different color themes using the variable
68-
MENUCONFIG_COLOR. To select a theme use:
41+
KCONFIG_CONFIG
42+
--------------------------------------------------
43+
This environment variable can be used to specify a default kernel config
44+
file name to override the default name of ".config".
6945

70-
make MENUCONFIG_COLOR=<theme> menuconfig
46+
KCONFIG_OVERWRITECONFIG
47+
--------------------------------------------------
48+
If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not
49+
break symlinks when .config is a symlink to somewhere else.
7150

72-
Available themes are:
73-
mono => selects colors suitable for monochrome displays
74-
blackbg => selects a color scheme with black background
75-
classic => theme with blue background. The classic look
76-
bluetitle => a LCD friendly version of classic. (default)
51+
KCONFIG_NOTIMESTAMP
52+
--------------------------------------------------
53+
If this environment variable exists and is non-null, the timestamp line
54+
in generated .config files is omitted.
7755

7856
______________________________________________________________________
79-
Environment variables in 'menuconfig'
57+
Environment variables for '{allyes/allmod/allno/rand}config'
8058

8159
KCONFIG_ALLCONFIG
8260
--------------------------------------------------
@@ -95,8 +73,7 @@ values.
9573
This enables you to create "miniature" config (miniconfig) or custom
9674
config files containing just the config symbols that you are interested
9775
in. Then the kernel config system generates the full .config file,
98-
including dependencies of your miniconfig file, based on the miniconfig
99-
file.
76+
including symbols of your miniconfig file.
10077

10178
This 'KCONFIG_ALLCONFIG' file is a config file which contains
10279
(usually a subset of all) preset config symbols. These variable
@@ -113,26 +90,14 @@ These examples will disable most options (allnoconfig) but enable or
11390
disable the options that are explicitly listed in the specified
11491
mini-config files.
11592

93+
______________________________________________________________________
94+
Environment variables for 'silentoldconfig'
95+
11696
KCONFIG_NOSILENTUPDATE
11797
--------------------------------------------------
11898
If this variable has a non-blank value, it prevents silent kernel
11999
config udpates (requires explicit updates).
120100

121-
KCONFIG_CONFIG
122-
--------------------------------------------------
123-
This environment variable can be used to specify a default kernel config
124-
file name to override the default name of ".config".
125-
126-
KCONFIG_OVERWRITECONFIG
127-
--------------------------------------------------
128-
If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not
129-
break symlinks when .config is a symlink to somewhere else.
130-
131-
KCONFIG_NOTIMESTAMP
132-
--------------------------------------------------
133-
If this environment variable exists and is non-null, the timestamp line
134-
in generated .config files is omitted.
135-
136101
KCONFIG_AUTOCONFIG
137102
--------------------------------------------------
138103
This environment variable can be set to specify the path & name of the
@@ -143,15 +108,54 @@ KCONFIG_AUTOHEADER
143108
This environment variable can be set to specify the path & name of the
144109
"autoconf.h" (header) file. Its default value is "include/linux/autoconf.h".
145110

111+
112+
======================================================================
113+
menuconfig
114+
--------------------------------------------------
115+
116+
SEARCHING for CONFIG symbols
117+
118+
Searching in menuconfig:
119+
120+
The Search function searches for kernel configuration symbol
121+
names, so you have to know something close to what you are
122+
looking for.
123+
124+
Example:
125+
/hotplug
126+
This lists all config symbols that contain "hotplug",
127+
e.g., HOTPLUG, HOTPLUG_CPU, MEMORY_HOTPLUG.
128+
129+
For search help, enter / followed TAB-TAB-TAB (to highlight
130+
<Help>) and Enter. This will tell you that you can also use
131+
regular expressions (regexes) in the search string, so if you
132+
are not interested in MEMORY_HOTPLUG, you could try
133+
134+
/^hotplug
135+
146136
______________________________________________________________________
147-
menuconfig User Interface Options
148-
----------------------------------------------------------------------
137+
User interface options for 'menuconfig'
138+
139+
MENUCONFIG_COLOR
140+
--------------------------------------------------
141+
It is possible to select different color themes using the variable
142+
MENUCONFIG_COLOR. To select a theme use:
143+
144+
make MENUCONFIG_COLOR=<theme> menuconfig
145+
146+
Available themes are:
147+
mono => selects colors suitable for monochrome displays
148+
blackbg => selects a color scheme with black background
149+
classic => theme with blue background. The classic look
150+
bluetitle => a LCD friendly version of classic. (default)
151+
149152
MENUCONFIG_MODE
150153
--------------------------------------------------
151154
This mode shows all sub-menus in one large tree.
152155

153156
Example:
154-
MENUCONFIG_MODE=single_menu make menuconfig
157+
make MENUCONFIG_MODE=single_menu menuconfig
158+
155159

156160
======================================================================
157161
xconfig

Documentation/kbuild/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ following files:
275275

276276
KERNELDIR := /lib/modules/`uname -r`/build
277277
all::
278-
$(MAKE) -C $KERNELDIR M=`pwd` $@
278+
$(MAKE) -C $(KERNELDIR) M=`pwd` $@
279279

280280
# Module specific targets
281281
genbin:

Makefile

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ MAKEFLAGS += -rR --no-print-directory
3535
# To put more focus on warnings, be less verbose as default
3636
# Use 'make V=1' to see the full commands
3737

38-
ifdef V
39-
ifeq ("$(origin V)", "command line")
40-
KBUILD_VERBOSE = $(V)
41-
endif
38+
ifeq ("$(origin V)", "command line")
39+
KBUILD_VERBOSE = $(V)
4240
endif
4341
ifndef KBUILD_VERBOSE
4442
KBUILD_VERBOSE = 0
@@ -54,10 +52,8 @@ endif
5452
# See the file "Documentation/sparse.txt" for more details, including
5553
# where to get the "sparse" utility.
5654

57-
ifdef C
58-
ifeq ("$(origin C)", "command line")
59-
KBUILD_CHECKSRC = $(C)
60-
endif
55+
ifeq ("$(origin C)", "command line")
56+
KBUILD_CHECKSRC = $(C)
6157
endif
6258
ifndef KBUILD_CHECKSRC
6359
KBUILD_CHECKSRC = 0
@@ -69,12 +65,10 @@ endif
6965
ifdef SUBDIRS
7066
KBUILD_EXTMOD ?= $(SUBDIRS)
7167
endif
72-
ifdef M
73-
ifeq ("$(origin M)", "command line")
74-
KBUILD_EXTMOD := $(M)
75-
endif
76-
endif
7768

69+
ifeq ("$(origin M)", "command line")
70+
KBUILD_EXTMOD := $(M)
71+
endif
7872

7973
# kbuild supports saving output files in a separate directory.
8074
# To locate output files in a separate directory two syntaxes are supported.
@@ -98,10 +92,8 @@ ifeq ($(KBUILD_SRC),)
9892

9993
# OK, Make called in directory where kernel src resides
10094
# Do we want to locate output files in a separate directory?
101-
ifdef O
102-
ifeq ("$(origin O)", "command line")
103-
KBUILD_OUTPUT := $(O)
104-
endif
95+
ifeq ("$(origin O)", "command line")
96+
KBUILD_OUTPUT := $(O)
10597
endif
10698

10799
# That's our default target when none is given on the command line

README

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,17 @@ CONFIGURING the kernel:
174174
"make silentoldconfig"
175175
Like above, but avoids cluttering the screen
176176
with questions already answered.
177+
Additionally updates the dependencies.
177178
"make defconfig" Create a ./.config file by using the default
178-
symbol values from arch/$ARCH/defconfig.
179+
symbol values from either arch/$ARCH/defconfig
180+
or arch/$ARCH/configs/${PLATFORM}_defconfig,
181+
depending on the architecture.
182+
"make ${PLATFORM}_defconfig"
183+
Create a ./.config file by using the default
184+
symbol values from
185+
arch/$ARCH/configs/${PLATFORM}_defconfig.
186+
Use "make help" to get a list of all available
187+
platforms of your architecture.
179188
"make allyesconfig"
180189
Create a ./.config file by setting symbol
181190
values to 'y' as much as possible.

0 commit comments

Comments
 (0)