Re: [PATCH] Kconfig: default m doesn't work for menuconfig/xconfig/gconfig even if CONFIG_MODULES=y

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>
> -----
> 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@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux