mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
03fa25da83
commit
281c9dadc3
1 changed files with 12 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
# These targets are used from top-level makefile
|
# These targets are used from top-level makefile
|
||||||
|
|
||||||
PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \
|
PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config \
|
||||||
localmodconfig
|
localmodconfig localyesconfig
|
||||||
|
|
||||||
ifdef KBUILD_KCONFIG
|
ifdef KBUILD_KCONFIG
|
||||||
Kconfig := $(KBUILD_KCONFIG)
|
Kconfig := $(KBUILD_KCONFIG)
|
||||||
|
@ -38,6 +38,16 @@ localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
|
||||||
mv -f .config.old.1 .config.old)
|
mv -f .config.old.1 .config.old)
|
||||||
$(Q)rm -f .tmp.config
|
$(Q)rm -f .tmp.config
|
||||||
|
|
||||||
|
localyesconfig: $(obj)/streamline_config.pl
|
||||||
|
$(Q)perl $< $(Kconfig) > .tmp.config
|
||||||
|
$(Q)sed -i s/=m/=y/ .tmp.config
|
||||||
|
$(Q)cmp -s .tmp.config .config || \
|
||||||
|
(mv -f .config .config.old.1; \
|
||||||
|
mv -f .tmp.config .config; \
|
||||||
|
$(obj)/conf -s $(Kconfig); \
|
||||||
|
mv -f .config.old.1 .config.old)
|
||||||
|
$(Q)rm -f .tmp.config
|
||||||
|
|
||||||
# Create new linux.pot file
|
# Create new linux.pot file
|
||||||
# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
|
# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
|
||||||
# The symlink is used to repair a deficiency in arch/um
|
# The symlink is used to repair a deficiency in arch/um
|
||||||
|
@ -94,6 +104,7 @@ help:
|
||||||
@echo ' gconfig - Update current config utilising a GTK based front-end'
|
@echo ' gconfig - Update current config utilising a GTK based front-end'
|
||||||
@echo ' oldconfig - Update current config utilising a provided .config as base'
|
@echo ' oldconfig - Update current config utilising a provided .config as base'
|
||||||
@echo ' localmodconfig - Update current config disabling modules not loaded'
|
@echo ' localmodconfig - Update current config disabling modules not loaded'
|
||||||
|
@echo ' localyesconfig - Update current config converting local mods to core'
|
||||||
@echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps'
|
@echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps'
|
||||||
@echo ' randconfig - New config with random answer to all options'
|
@echo ' randconfig - New config with random answer to all options'
|
||||||
@echo ' defconfig - New config with default answer to all options'
|
@echo ' defconfig - New config with default answer to all options'
|
||||||
|
|
Loading…
Reference in a new issue