aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-24 22:39:28 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-24 22:39:28 -0400
commit3a1ef0e03eee4c5ac30d19bb1b88e57924295810 (patch)
treea5533d06471203931a034099b907c8169e666104
parent2162b80fcadf5b0afff08b540bd141f8a5ff5ed1 (diff)
parent6b87b70c5339f30e3c5b32085e69625906513dc2 (diff)
Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kconfig updates from Michal Marek: "Just two kconfig commits this time: - kconfig Makefile fix for make 3.80 - Fix calculating symbols so that KCONFIG_ALLCONFIG=... does not disable CONFIG_MODULES silently" * 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild: unbreak allmodconfig KCONFIG_ALLCONFIG=... scripts/kconfig: allow building with make 3.80 again
-rw-r--r--scripts/kconfig/Makefile4
-rw-r--r--scripts/kconfig/confdata.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index d79cba4ce3eb..ebced77deb9c 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -96,13 +96,15 @@ savedefconfig: $(obj)/conf
96defconfig: $(obj)/conf 96defconfig: $(obj)/conf
97ifeq ($(KBUILD_DEFCONFIG),) 97ifeq ($(KBUILD_DEFCONFIG),)
98 $< $(silent) --defconfig $(Kconfig) 98 $< $(silent) --defconfig $(Kconfig)
99else ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),) 99else
100ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
100 @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" 101 @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
101 $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) 102 $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
102else 103else
103 @$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'" 104 @$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'"
104 $(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG) 105 $(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG)
105endif 106endif
107endif
106 108
107%_defconfig: $(obj)/conf 109%_defconfig: $(obj)/conf
108 $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) 110 $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index 0b7dc2fd7bac..dd243d2abd87 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -267,10 +267,8 @@ int conf_read_simple(const char *name, int def)
267 if (in) 267 if (in)
268 goto load; 268 goto load;
269 sym_add_change_count(1); 269 sym_add_change_count(1);
270 if (!sym_defconfig_list) { 270 if (!sym_defconfig_list)
271 sym_calc_value(modules_sym);
272 return 1; 271 return 1;
273 }
274 272
275 for_all_defaults(sym_defconfig_list, prop) { 273 for_all_defaults(sym_defconfig_list, prop) {
276 if (expr_calc_value(prop->visible.expr) == no || 274 if (expr_calc_value(prop->visible.expr) == no ||
@@ -403,7 +401,6 @@ setsym:
403 } 401 }
404 free(line); 402 free(line);
405 fclose(in); 403 fclose(in);
406 sym_calc_value(modules_sym);
407 return 0; 404 return 0;
408} 405}
409 406
@@ -414,8 +411,12 @@ int conf_read(const char *name)
414 411
415 sym_set_change_count(0); 412 sym_set_change_count(0);
416 413
417 if (conf_read_simple(name, S_DEF_USER)) 414 if (conf_read_simple(name, S_DEF_USER)) {
415 sym_calc_value(modules_sym);
418 return 1; 416 return 1;
417 }
418
419 sym_calc_value(modules_sym);
419 420
420 for_all_symbols(i, sym) { 421 for_all_symbols(i, sym) {
421 sym_calc_value(sym); 422 sym_calc_value(sym);
@@ -846,6 +847,7 @@ static int conf_split_config(void)
846 847
847 name = conf_get_autoconfig_name(); 848 name = conf_get_autoconfig_name();
848 conf_read_simple(name, S_DEF_AUTO); 849 conf_read_simple(name, S_DEF_AUTO);
850 sym_calc_value(modules_sym);
849 851
850 if (chdir("include/config")) 852 if (chdir("include/config"))
851 return 1; 853 return 1;