* [PATCH] Kconfig: default m doesn't work for menuconfig/xconfig/gconfig even if CONFIG_MODULES=y
@ 2009-12-17 0:35 Jiafu He
2009-12-17 21:48 ` Michal Marek
0 siblings, 1 reply; 3+ messages in thread
From: Jiafu He @ 2009-12-17 0:35 UTC (permalink / raw)
To: linux-kbuild; +Cc: Roman Zippel
menuconfig/xconfig/gconfig all fails to set tristate CONFIG_ options to
m even if CONFIG_MODULES=y has been set. The "config" target works,
though.
Signed-off-by: Jiafu He <jay@goldhive.com>
-----
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index b55e72f..9ff712b 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -170,8 +170,11 @@ int conf_read_simple(const char *name, int def)
if (in)
goto load;
sym_add_change_count(1);
- if (!sym_defconfig_list)
+ if (!sym_defconfig_list) {
+ if (modules_sym)
+ sym_calc_value(modules_sym);
return 1;
+ }
for_all_defaults(sym_defconfig_list, prop) {
if (expr_calc_value(prop->visible.expr) == no ||
-----
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Kconfig: default m doesn't work for menuconfig/xconfig/gconfig even if CONFIG_MODULES=y
2009-12-17 0:35 [PATCH] Kconfig: default m doesn't work for menuconfig/xconfig/gconfig even if CONFIG_MODULES=y Jiafu He
@ 2009-12-17 21:48 ` Michal Marek
0 siblings, 0 replies; 3+ messages in thread
From: Michal Marek @ 2009-12-17 21:48 UTC (permalink / raw)
To: Jiafu He; +Cc: linux-kbuild, Roman Zippel
Jiafu He napsal(a):
> menuconfig/xconfig/gconfig all fails to set tristate CONFIG_ options to
> m even if CONFIG_MODULES=y has been set. The "config" target works,
> though.
On a x86_64, I tried adding
config FOOBAR
tristate "foobar"
default m
---help---
aaa aaa
to init/Kconfig
The I run make menuconfig in an already configured build dir and in an
empty one, in both cases FOOBAR was preset to M. Could you provide a
step-by-step testcase that shows the problem you want to fix?
Thanks!
Michal
>
> Signed-off-by: Jiafu He <jay@goldhive.com>
> -----
> diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
> index b55e72f..9ff712b 100644
> --- a/scripts/kconfig/confdata.c
> +++ b/scripts/kconfig/confdata.c
> @@ -170,8 +170,11 @@ int conf_read_simple(const char *name, int def)
> if (in)
> goto load;
> sym_add_change_count(1);
> - if (!sym_defconfig_list)
> + if (!sym_defconfig_list) {
> + if (modules_sym)
> + sym_calc_value(modules_sym);
> return 1;
> + }
>
> for_all_defaults(sym_defconfig_list, prop) {
> if (expr_calc_value(prop->visible.expr) == no ||
> -----
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] Kconfig: default m doesn't work for menuconfig/xconfig/gconfig even if CONFIG_MODULES=y
@ 2009-12-18 0:55 Jiafu He
0 siblings, 0 replies; 3+ messages in thread
From: Jiafu He @ 2009-12-18 0:55 UTC (permalink / raw)
To: Michal Marek; +Cc: linux-kbuild, Roman Zippel
> -------- Original Message --------
> Subject: Re: [PATCH] Kconfig: default m doesn't work for
> menuconfig/xconfig/gconfig even if CONFIG_MODULES=y
> From: Michal Marek <mmarek@suse.cz>
> Date: Thu, December 17, 2009 4:48 pm
> To: Jiafu He <jay@goldhive.com>
> Cc: linux-kbuild@vger.kernel.org, Roman Zippel <zippel@linux-m68k.org>
>
>
> Jiafu He napsal(a):
> > menuconfig/xconfig/gconfig all fails to set tristate CONFIG_ options to
> > m even if CONFIG_MODULES=y has been set. The "config" target works,
> > though.
>
> On a x86_64, I tried adding
> config FOOBAR
> tristate "foobar"
> default m
> ---help---
> aaa aaa
> to init/Kconfig
>
> The I run make menuconfig in an already configured build dir and in an
> empty one, in both cases FOOBAR was preset to M. Could you provide a
> step-by-step testcase that shows the problem you want to fix?
>
It must be the host or source tree defconfig's jumped in. Remember to
delete .config and commenting out the "default" lines for "config
DEFCONFIG_LIST" in init/Kconfig and the "default" lines for "config
ARCH_DEFCONFIG" in arch/x86/Kconfig before running 'make menuconfig'. In
my case (Centos 5), the "/boot/config-$UNAME_RELEASE", which contains
'CONFIG_MODULES=y', jumps in the way.
Jiafu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-18 0:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-17 0:35 [PATCH] Kconfig: default m doesn't work for menuconfig/xconfig/gconfig even if CONFIG_MODULES=y Jiafu He
2009-12-17 21:48 ` Michal Marek
-- strict thread matches above, loose matches on Subject: below --
2009-12-18 0:55 Jiafu He
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.