Makefile (f0778c8c41001783d4074e34efc7d3e632d87ee3) | Makefile (cbab05f041a4cff6ca15856bdd35238b282b64eb) |
---|---|
1# =========================================================================== 2# Kernel configuration targets 3# These targets are used from top-level makefile 4 5PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \ 6 localmodconfig localyesconfig 7 8ifdef KBUILD_KCONFIG --- 9 unchanged lines hidden (view full) --- 18 $< $(Kconfig) 19 20menuconfig: $(obj)/mconf 21 $< $(Kconfig) 22 23config: $(obj)/conf 24 $< $(Kconfig) 25 | 1# =========================================================================== 2# Kernel configuration targets 3# These targets are used from top-level makefile 4 5PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \ 6 localmodconfig localyesconfig 7 8ifdef KBUILD_KCONFIG --- 9 unchanged lines hidden (view full) --- 18 $< $(Kconfig) 19 20menuconfig: $(obj)/mconf 21 $< $(Kconfig) 22 23config: $(obj)/conf 24 $< $(Kconfig) 25 |
26nconfig: $(obj)/nconf 27 $< $(Kconfig) 28 | |
29oldconfig: $(obj)/conf 30 $< -o $(Kconfig) 31 32silentoldconfig: $(obj)/conf 33 $(Q)mkdir -p include/generated 34 $< -s $(Kconfig) 35 36localmodconfig: $(obj)/streamline_config.pl $(obj)/conf --- 20 unchanged lines hidden (view full) --- 57 $(obj)/conf -s $(Kconfig); \ 58 mv -f .config.old.1 .config.old) \ 59 else \ 60 mv -f .tmp.config .config; \ 61 $(obj)/conf -s $(Kconfig); \ 62 fi 63 $(Q)rm -f .tmp.config 64 | 26oldconfig: $(obj)/conf 27 $< -o $(Kconfig) 28 29silentoldconfig: $(obj)/conf 30 $(Q)mkdir -p include/generated 31 $< -s $(Kconfig) 32 33localmodconfig: $(obj)/streamline_config.pl $(obj)/conf --- 20 unchanged lines hidden (view full) --- 54 $(obj)/conf -s $(Kconfig); \ 55 mv -f .config.old.1 .config.old) \ 56 else \ 57 mv -f .tmp.config .config; \ 58 $(obj)/conf -s $(Kconfig); \ 59 fi 60 $(Q)rm -f .tmp.config 61 |
65nonint_oldconfig: $(obj)/conf 66 $< -b $(Kconfig) 67 68loose_nonint_oldconfig: $(obj)/conf 69 $< -B $(Kconfig) 70 | |
71# Create new linux.pot file 72# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files 73# The symlink is used to repair a deficiency in arch/um 74update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h 75 $(Q)echo " GEN config" 76 $(Q)xgettext --default-domain=linux \ 77 --add-comments --keyword=_ --keyword=N_ \ 78 --from-code=UTF-8 \ --- 35 unchanged lines hidden (view full) --- 114endif 115 116%_defconfig: $(obj)/conf 117 $(Q)$< -D arch/$(SRCARCH)/configs/$@ $(Kconfig) 118 119# Help text used by make help 120help: 121 @echo ' config - Update current config utilising a line-oriented program' | 62# Create new linux.pot file 63# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files 64# The symlink is used to repair a deficiency in arch/um 65update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h 66 $(Q)echo " GEN config" 67 $(Q)xgettext --default-domain=linux \ 68 --add-comments --keyword=_ --keyword=N_ \ 69 --from-code=UTF-8 \ --- 35 unchanged lines hidden (view full) --- 105endif 106 107%_defconfig: $(obj)/conf 108 $(Q)$< -D arch/$(SRCARCH)/configs/$@ $(Kconfig) 109 110# Help text used by make help 111help: 112 @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 ' localyesconfig - Update current config converting local mods to core' 129 @echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps' 130 @echo ' randconfig - New config with random answer to all options' 131 @echo ' defconfig - New config with default answer to all options' 132 @echo ' allmodconfig - New config selecting modules when possible' 133 @echo ' allyesconfig - New config where all options are accepted with yes' 134 @echo ' allnoconfig - New config where all options are answered with no' | 113 @echo ' menuconfig - Update current config utilising a menu based program' 114 @echo ' xconfig - Update current config utilising a QT based front-end' 115 @echo ' gconfig - Update current config utilising a GTK based front-end' 116 @echo ' oldconfig - Update current config utilising a provided .config as base' 117 @echo ' localmodconfig - Update current config disabling modules not loaded' 118 @echo ' localyesconfig - Update current config converting local mods to core' 119 @echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps' 120 @echo ' randconfig - New config with random answer to all options' 121 @echo ' defconfig - New config with default answer to all options' 122 @echo ' allmodconfig - New config selecting modules when possible' 123 @echo ' allyesconfig - New config where all options are accepted with yes' 124 @echo ' allnoconfig - New config where all options are answered with no' |
135 @echo ' nonint_oldconfig - Checks the current configuration and fails if an option is ' 136 @echo ' not set' 137 @echo ' loose_nonint_oldconfig - Same as nonint_oldconfig, but updates the config file with ' 138 @echo ' missing config options as unset' | |
139 140# lxdialog stuff 141check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh 142 143# Use recursively expanded variables so we do not call gcc unless 144# we really need to do so. (Do not call gcc as part of make mrproper) 145HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) 146HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) 147 148HOST_EXTRACFLAGS += -DLOCALE 149 150 151# =========================================================================== 152# Shared Makefile for the various kconfig executables: 153# conf: Used for defconfig, oldconfig and related targets | 125 126# lxdialog stuff 127check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh 128 129# Use recursively expanded variables so we do not call gcc unless 130# we really need to do so. (Do not call gcc as part of make mrproper) 131HOST_EXTRACFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) 132HOST_LOADLIBES = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) 133 134HOST_EXTRACFLAGS += -DLOCALE 135 136 137# =========================================================================== 138# Shared Makefile for the various kconfig executables: 139# conf: Used for defconfig, oldconfig and related targets |
154# nconf: Used for the nconfig target. 155# Utilizes ncurses | |
156# mconf: Used for the menuconfig target 157# Utilizes the lxdialog package 158# qconf: Used for the xconfig target 159# Based on QT which needs to be installed to compile it 160# gconf: Used for the gconfig target 161# Based on GTK which needs to be installed to compile it 162# object files used by all kconfig flavours 163 164lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o 165lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o 166 167conf-objs := conf.o zconf.tab.o | 140# mconf: Used for the menuconfig target 141# Utilizes the lxdialog package 142# qconf: Used for the xconfig target 143# Based on QT which needs to be installed to compile it 144# gconf: Used for the gconfig target 145# Based on GTK which needs to be installed to compile it 146# object files used by all kconfig flavours 147 148lxdialog := lxdialog/checklist.o lxdialog/util.o lxdialog/inputbox.o 149lxdialog += lxdialog/textbox.o lxdialog/yesno.o lxdialog/menubox.o 150 151conf-objs := conf.o zconf.tab.o |
168mconf-objs := mconf.o zconf.tab.o $(lxdialog) 169nconf-objs := nconf.o zconf.tab.o nconf.gui.o | 152mconf-objs := mconf.o zconf.tab.o $(lxdialog) |
170kxgettext-objs := kxgettext.o zconf.tab.o 171 172hostprogs-y := conf qconf gconf kxgettext 173 | 153kxgettext-objs := kxgettext.o zconf.tab.o 154 155hostprogs-y := conf qconf gconf kxgettext 156 |
174ifeq ($(MAKECMDGOALS),nconfig) 175 hostprogs-y += nconf 176endif 177 | |
178ifeq ($(MAKECMDGOALS),menuconfig) 179 hostprogs-y += mconf 180endif 181 182ifeq ($(MAKECMDGOALS),xconfig) 183 qconf-target := 1 184endif 185ifeq ($(MAKECMDGOALS),gconfig) --- 7 unchanged lines hidden (view full) --- 193endif 194 195ifeq ($(gconf-target),1) 196gconf-objs := gconf.o kconfig_load.o zconf.tab.o 197endif 198 199clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ 200 .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h | 157ifeq ($(MAKECMDGOALS),menuconfig) 158 hostprogs-y += mconf 159endif 160 161ifeq ($(MAKECMDGOALS),xconfig) 162 qconf-target := 1 163endif 164ifeq ($(MAKECMDGOALS),gconfig) --- 7 unchanged lines hidden (view full) --- 172endif 173 174ifeq ($(gconf-target),1) 175gconf-objs := gconf.o kconfig_load.o zconf.tab.o 176endif 177 178clean-files := lkc_defs.h qconf.moc .tmp_qtcheck \ 179 .tmp_gtkcheck zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h |
201clean-files += mconf qconf gconf nconf | 180clean-files += mconf qconf gconf |
202clean-files += config.pot linux.pot 203 204# Check that we have the required ncurses stuff installed for lxdialog (menuconfig) 205PHONY += $(obj)/dochecklxdialog 206$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog 207$(obj)/dochecklxdialog: 208 $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES) 209 --- 4 unchanged lines hidden (view full) --- 214 215# generated files seem to need this to find local include files 216HOSTCFLAGS_lex.zconf.o := -I$(src) 217HOSTCFLAGS_zconf.tab.o := -I$(src) 218 219HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl 220HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK 221 | 181clean-files += config.pot linux.pot 182 183# Check that we have the required ncurses stuff installed for lxdialog (menuconfig) 184PHONY += $(obj)/dochecklxdialog 185$(addprefix $(obj)/,$(lxdialog)): $(obj)/dochecklxdialog 186$(obj)/dochecklxdialog: 187 $(Q)$(CONFIG_SHELL) $(check-lxdialog) -check $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOST_LOADLIBES) 188 --- 4 unchanged lines hidden (view full) --- 193 194# generated files seem to need this to find local include files 195HOSTCFLAGS_lex.zconf.o := -I$(src) 196HOSTCFLAGS_zconf.tab.o := -I$(src) 197 198HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl 199HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK 200 |
222HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` | 201HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` -ldl |
223HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ 224 -D LKC_DIRECT_LINK 225 | 202HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ 203 -D LKC_DIRECT_LINK 204 |
226HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses | |
227$(obj)/qconf.o: $(obj)/.tmp_qtcheck 228 229ifeq ($(qconf-target),1) 230$(obj)/.tmp_qtcheck: $(src)/Makefile 231-include $(obj)/.tmp_qtcheck 232 233# QT needs some extra effort... 234$(obj)/.tmp_qtcheck: --- 110 unchanged lines hidden --- | 205$(obj)/qconf.o: $(obj)/.tmp_qtcheck 206 207ifeq ($(qconf-target),1) 208$(obj)/.tmp_qtcheck: $(src)/Makefile 209-include $(obj)/.tmp_qtcheck 210 211# QT needs some extra effort... 212$(obj)/.tmp_qtcheck: --- 110 unchanged lines hidden --- |