@@ -103,7 +103,7 @@ allnoconfig allyesconfig allmodconfig alldefconfig randconfig: $(obj)/conf
PHONY += listnewconfig oldnoconfig savedefconfig defconfig
-listnewconfig oldnoconfig: $(obj)/conf
+listnewconfig oldnoconfig olddefconfig: $(obj)/conf
$< --$@ $(Kconfig)
savedefconfig: $(obj)/conf
@@ -33,6 +33,7 @@ enum input_mode {
savedefconfig,
listnewconfig,
oldnoconfig,
+ olddefconfig,
} input_mode = oldaskconfig;
static int indent = 1;
@@ -455,6 +456,7 @@ static struct option long_opts[] = {
{"randconfig", no_argument, NULL, randconfig},
{"listnewconfig", no_argument, NULL, listnewconfig},
{"oldnoconfig", no_argument, NULL, oldnoconfig},
+ {"olddefconfig", no_argument, NULL, olddefconfig},
{NULL, 0, NULL, 0}
};
@@ -566,6 +568,7 @@ int main(int ac, char **av)
case oldconfig:
case listnewconfig:
case oldnoconfig:
+ case olddefconfig:
conf_read(NULL);
break;
case allnoconfig:
@@ -624,6 +627,7 @@ int main(int ac, char **av)
conf_set_all_new_symbols(def_random);
break;
case defconfig:
+ case olddefconfig:
conf_set_all_new_symbols(def_default);
break;
case savedefconfig:
This adds an "olddefconfig" build target, which updates a .config file filling any any absent symbols with the Kconfig default value (note: not the architecture defconfig value). Similar to oldnoconfig, this option is useful for build systems when dealing with config fragments. CC: gthelen@google.com CC: tartler@cs.fau.de CC: Dmitry Fink <Dmitry.Fink@palm.com> CC: Darren Hart <dvhart@linux.intel.com> CC: Eric B Munson <ebmunson@us.ibm.com> CC: Bruce Ashfield <Bruce.Ashfield@windriver.com> CC: Michal Marek <mmarek@suse.cz> CC: linux-kbuild@vger.kernel.org Signed-off-by: John Stultz <john.stultz@linaro.org> --- scripts/kconfig/Makefile | 2 +- scripts/kconfig/conf.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletions(-)