[coreboot-gerrit] New patch to review for coreboot: 04d8e5b util/kconfig/Makefile: Add savedefconfig target

Martin Roth (gaumless@gmail.com) gerrit at coreboot.org
Mon Jun 8 04:30:58 CEST 2015

Martin Roth (gaumless at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10462


commit 04d8e5b159b5881d10e41392f4180da4ba9198a7
Author: Martin Roth <gaumless at gmail.com>
Date:   Sun Jun 7 20:30:28 2015 -0600

    util/kconfig/Makefile: Add savedefconfig target
    Add a savedefconfig target and the help for it to the kconfig
    The main advantage I found for using defconfigs instead of the full
    .config is that they require less maintenence, so long as reasonable
    default values are set when adding new config options.  When the
    defconfig is expanded, it will use default values for all options not
    saved in the defconfig.  This cuts the size of a saved config from
    500ish lines to roughly 20 lines.
    savedefconfig was added to the linux kernel in commit id
    Change-Id: I45f3dc87b773fb6e9ee53e32fdcafff1f53074d2
    Signed-off-by: Martin Roth <gaumless at gmail.com>
 util/kconfig/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/util/kconfig/Makefile b/util/kconfig/Makefile
index f6ce818..a216fd3 100644
--- a/util/kconfig/Makefile
+++ b/util/kconfig/Makefile
@@ -76,11 +76,14 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h
 	$(Q)rm -f $(obj)/config.pot
 # --- UNUSED, ignore ----------------------------------------------------------
-PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig
+PHONY += allnoconfig allyesconfig allmodconfig alldefconfig randconfig savedefconfig
 allnoconfig allyesconfig allmodconfig alldefconfig randconfig: $(objk)/conf
 	$< --$@ $(Kconfig)
+savedefconfig: $(objk)/conf
+	$< --$@=defconfig $(Kconfig)
 defconfig: $(objk)/conf
 	$< -d $(Kconfig)
@@ -104,6 +107,7 @@ help:
 	@echo  '  localyesconfig  - Update current config converting local mods to core'
 	@echo  '  silentoldconfig - Same as oldconfig, but quietly, additionally update deps'
 	@echo  '  defconfig	  - New config with default answer to all options'
+	@echo  '  savedefconfig   - Save current config as ./defconfig (minimal config)'
 	@echo  '  allnoconfig	  - New config where all options are answered with no'
 	@echo  '  allyesconfig	  - New config where all options are accepted with yes'
 	@echo  '  allmodconfig	  - New config selecting modules when possible'

More information about the coreboot-gerrit mailing list