History

kconfig: add make localyesconfig option

This adds the option localyesconfig to make. This is similar to localmodconfig, but after it removes unnecessary modules it runs sed -i s/=m/=y/ on the .config file. It then runs "make silentoldconfig" to fix any wholes that were created by the conversion of modules to core.

Steven Rostedt committed 17 years ago

Commit 281c9da1 parent 03fa25d1 file · +12 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kconfig/Makefile+12−1
@@ -3,7 +3,7 @@ · 2 unmodified lines
3# These targets are used from top-level makefile3# These targets are used from top-level makefile
4 4
5PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \5PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \
6 localmodconfig6 localmodconfig localyesconfig
7 7
8ifdef KBUILD_KCONFIG8ifdef KBUILD_KCONFIG
9Kconfig := $(KBUILD_KCONFIG)9Kconfig := $(KBUILD_KCONFIG)
@@ -38,6 +38,16 @@ localmodconfig: $(obj)/streamline_config.pl $(obj)/conf · 28 unmodified lines
38 mv -f .config.old.1 .config.old)38 mv -f .config.old.1 .config.old)
39 $(Q)rm -f .tmp.config39 $(Q)rm -f .tmp.config
40 40
41localyesconfig: $(obj)/streamline_config.pl
42 $(Q)perl $< $(Kconfig) > .tmp.config
43 $(Q)sed -i s/=m/=y/ .tmp.config
44 $(Q)cmp -s .tmp.config .config || \
45 (mv -f .config .config.old.1; \
46 mv -f .tmp.config .config; \
47 $(obj)/conf -s $(Kconfig); \
48 mv -f .config.old.1 .config.old)
49 $(Q)rm -f .tmp.config
50
41# Create new linux.pot file51# Create new linux.pot file
42# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files52# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
43# The symlink is used to repair a deficiency in arch/um53# The symlink is used to repair a deficiency in arch/um
@@ -94,6 +104,7 @@ help: · 50 unmodified lines
94 @echo ' gconfig - Update current config utilising a GTK based front-end'104 @echo ' gconfig - Update current config utilising a GTK based front-end'
95 @echo ' oldconfig - Update current config utilising a provided .config as base'105 @echo ' oldconfig - Update current config utilising a provided .config as base'
96 @echo ' localmodconfig - Update current config disabling modules not loaded'106 @echo ' localmodconfig - Update current config disabling modules not loaded'
107 @echo ' localyesconfig - Update current config converting local mods to core'
97 @echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps'108 @echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps'
98 @echo ' randconfig - New config with random answer to all options'109 @echo ' randconfig - New config with random answer to all options'
99 @echo ' defconfig - New config with default answer to all options'110 @echo ' defconfig - New config with default answer to all options'