Makefile (9b031c86506cef9acae45e61339fcf9deaabb793) Makefile (c3cd7cfad51ab521bf4c3edd050f3dcf275e9ee8)
1# SPDX-License-Identifier: GPL-2.0
2# ===========================================================================
3# Kernel configuration targets
4# These targets are used from top-level makefile
5
6PHONY += xconfig gconfig menuconfig config localmodconfig localyesconfig \
7 build_menuconfig build_nconfig build_gconfig build_xconfig
8

--- 82 unchanged lines hidden (view full) ---

91
92%.config: $(obj)/conf
93 $(if $(call configfiles),, $(error No configuration exists for this target on this architecture))
94 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles)
95 $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
96
97PHONY += kvmconfig
98kvmconfig: kvm_guest.config
1# SPDX-License-Identifier: GPL-2.0
2# ===========================================================================
3# Kernel configuration targets
4# These targets are used from top-level makefile
5
6PHONY += xconfig gconfig menuconfig config localmodconfig localyesconfig \
7 build_menuconfig build_nconfig build_gconfig build_xconfig
8

--- 82 unchanged lines hidden (view full) ---

91
92%.config: $(obj)/conf
93 $(if $(call configfiles),, $(error No configuration exists for this target on this architecture))
94 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles)
95 $(Q)$(MAKE) -f $(srctree)/Makefile olddefconfig
96
97PHONY += kvmconfig
98kvmconfig: kvm_guest.config
99 @:
99 @echo >&2 "WARNING: 'make $@' will be removed after Linux 5.10"
100 @echo >&2 " Please use 'make $<' instead."
100
101PHONY += xenconfig
102xenconfig: xen.config
101
102PHONY += xenconfig
103xenconfig: xen.config
103 @:
104 @echo >&2 "WARNING: 'make $@' will be removed after Linux 5.10"
105 @echo >&2 " Please use 'make $<' instead."
104
105PHONY += tinyconfig
106tinyconfig:
107 $(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config
108
109# CHECK: -o cache_dir=<path> working?
110PHONY += testconfig
111testconfig: $(obj)/conf

--- 6 unchanged lines hidden (view full) ---

118help:
119 @echo ' config - Update current config utilising a line-oriented program'
120 @echo ' nconfig - Update current config utilising a ncurses menu based program'
121 @echo ' menuconfig - Update current config utilising a menu based program'
122 @echo ' xconfig - Update current config utilising a Qt based front-end'
123 @echo ' gconfig - Update current config utilising a GTK+ based front-end'
124 @echo ' oldconfig - Update current config utilising a provided .config as base'
125 @echo ' localmodconfig - Update current config disabling modules not loaded'
106
107PHONY += tinyconfig
108tinyconfig:
109 $(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config
110
111# CHECK: -o cache_dir=<path> working?
112PHONY += testconfig
113testconfig: $(obj)/conf

--- 6 unchanged lines hidden (view full) ---

120help:
121 @echo ' config - Update current config utilising a line-oriented program'
122 @echo ' nconfig - Update current config utilising a ncurses menu based program'
123 @echo ' menuconfig - Update current config utilising a menu based program'
124 @echo ' xconfig - Update current config utilising a Qt based front-end'
125 @echo ' gconfig - Update current config utilising a GTK+ based front-end'
126 @echo ' oldconfig - Update current config utilising a provided .config as base'
127 @echo ' localmodconfig - Update current config disabling modules not loaded'
128 @echo ' except those preserved by LMC_KEEP environment variable'
126 @echo ' localyesconfig - Update current config converting local mods to core'
129 @echo ' localyesconfig - Update current config converting local mods to core'
130 @echo ' except those preserved by LMC_KEEP environment variable'
127 @echo ' defconfig - New config with default from ARCH supplied defconfig'
128 @echo ' savedefconfig - Save current config as ./defconfig (minimal config)'
129 @echo ' allnoconfig - New config where all options are answered with no'
130 @echo ' allyesconfig - New config where all options are accepted with yes'
131 @echo ' allmodconfig - New config selecting modules when possible'
132 @echo ' alldefconfig - New config with all symbols set to default'
133 @echo ' randconfig - New config with random answer to all options'
134 @echo ' yes2modconfig - Change answers from yes to mod if possible'
135 @echo ' mod2yesconfig - Change answers from mod to yes if possible'
136 @echo ' listnewconfig - List new options'
137 @echo ' helpnewconfig - List new options and help text'
138 @echo ' olddefconfig - Same as oldconfig but sets new symbols to their'
139 @echo ' default value without prompting'
131 @echo ' defconfig - New config with default from ARCH supplied defconfig'
132 @echo ' savedefconfig - Save current config as ./defconfig (minimal config)'
133 @echo ' allnoconfig - New config where all options are answered with no'
134 @echo ' allyesconfig - New config where all options are accepted with yes'
135 @echo ' allmodconfig - New config selecting modules when possible'
136 @echo ' alldefconfig - New config with all symbols set to default'
137 @echo ' randconfig - New config with random answer to all options'
138 @echo ' yes2modconfig - Change answers from yes to mod if possible'
139 @echo ' mod2yesconfig - Change answers from mod to yes if possible'
140 @echo ' listnewconfig - List new options'
141 @echo ' helpnewconfig - List new options and help text'
142 @echo ' olddefconfig - Same as oldconfig but sets new symbols to their'
143 @echo ' default value without prompting'
140 @echo ' kvmconfig - Enable additional options for kvm guest kernel support'
141 @echo ' xenconfig - Enable additional options for xen dom0 and guest kernel'
142 @echo ' support'
143 @echo ' tinyconfig - Configure the tiniest possible kernel'
144 @echo ' testconfig - Run Kconfig unit tests (requires python3 and pytest)'
145
146# ===========================================================================
147# object files used by all kconfig flavours
148common-objs := confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o \
149 symbol.o util.o
150

--- 35 unchanged lines hidden (view full) ---

186HOSTLDLIBS_qconf = $(shell . $(obj)/qconf-cfg && echo $$libs)
187HOSTCXXFLAGS_qconf.o = $(shell . $(obj)/qconf-cfg && echo $$cflags)
188
189$(obj)/qconf.o: $(obj)/qconf-cfg $(obj)/qconf.moc
190
191quiet_cmd_moc = MOC $@
192 cmd_moc = $(shell . $(obj)/qconf-cfg && echo $$moc) -i $< -o $@
193
144 @echo ' tinyconfig - Configure the tiniest possible kernel'
145 @echo ' testconfig - Run Kconfig unit tests (requires python3 and pytest)'
146
147# ===========================================================================
148# object files used by all kconfig flavours
149common-objs := confdata.o expr.o lexer.lex.o parser.tab.o preprocess.o \
150 symbol.o util.o
151

--- 35 unchanged lines hidden (view full) ---

187HOSTLDLIBS_qconf = $(shell . $(obj)/qconf-cfg && echo $$libs)
188HOSTCXXFLAGS_qconf.o = $(shell . $(obj)/qconf-cfg && echo $$cflags)
189
190$(obj)/qconf.o: $(obj)/qconf-cfg $(obj)/qconf.moc
191
192quiet_cmd_moc = MOC $@
193 cmd_moc = $(shell . $(obj)/qconf-cfg && echo $$moc) -i $< -o $@
194
194$(obj)/%.moc: $(src)/%.h $(obj)/qconf-cfg
195 $(call cmd,moc)
195$(obj)/%.moc: $(src)/%.h $(obj)/qconf-cfg FORCE
196 $(call if_changed,moc)
196
197
198targets += qconf.moc
199
197# gconf: Used for the gconfig target based on GTK+
198hostprogs += gconf
199gconf-objs := gconf.o images.o $(common-objs)
200
201HOSTLDLIBS_gconf = $(shell . $(obj)/gconf-cfg && echo $$libs)
202HOSTCFLAGS_gconf.o = $(shell . $(obj)/gconf-cfg && echo $$cflags)
203
204$(obj)/gconf.o: $(obj)/gconf-cfg
205
206# check if necessary packages are available, and configure build flags
207filechk_conf_cfg = $(CONFIG_SHELL) $<
208
209$(obj)/%conf-cfg: $(src)/%conf-cfg.sh FORCE
210 $(call filechk,conf_cfg)
211
212clean-files += *conf-cfg
200# gconf: Used for the gconfig target based on GTK+
201hostprogs += gconf
202gconf-objs := gconf.o images.o $(common-objs)
203
204HOSTLDLIBS_gconf = $(shell . $(obj)/gconf-cfg && echo $$libs)
205HOSTCFLAGS_gconf.o = $(shell . $(obj)/gconf-cfg && echo $$cflags)
206
207$(obj)/gconf.o: $(obj)/gconf-cfg
208
209# check if necessary packages are available, and configure build flags
210filechk_conf_cfg = $(CONFIG_SHELL) $<
211
212$(obj)/%conf-cfg: $(src)/%conf-cfg.sh FORCE
213 $(call filechk,conf_cfg)
214
215clean-files += *conf-cfg