Re: Re: Suggestion: Improve the dependency information during Kconfig compilation

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

 



On Wed, May 31, 2023 at 5:11 PM <sunying@xxxxxxxxxxxxxx> wrote:
>
> On Sat, May 20, 2023 at 1:21 PM <masahiroy@xxxxxxxxxx> wrote:
> &gt;
> &gt; On Thu, May 18, 2023 at 4:13 PM <sunying@xxxxxxxxxxxxxx> wrote:
> &gt; &gt;
> &gt; &gt; Hi,
> &gt; &gt;
> &gt; &gt;
> &gt; &gt; We found that the Kconfig build system silently changes invalid values in the. config file,
> &gt; &gt; which may prevent users from getting their desired kernel, and also make it hard to know
> &gt; &gt; which configuration option caused the forced change based on the compilation information.
> &gt; &gt;
> &gt; &gt; There are similar questions on stack overflow, where people find it difficult to get
> &gt; &gt; the complete dependency chain and other information:
> &gt; &gt;
> &gt; &gt;   ex1. How can I disable CONFIG_PM when building Linux kernel for x86_64 - Stack Overflow
> &gt; &gt;   https://stackoverflow.com/questions/64499221/how-can-i-disable-config-pm-when-building-linux-kernel-for-x86-64/64501647#64501647
> &gt; &gt;
> &gt; &gt;   ex2. c - kernel symbol enabled but doesn't shows up in .config - Stack Overflow
> &gt; &gt;   https://stackoverflow.com/questions/24074116/kernel-symbol-enabled-but-doesnt-shows-up-in-config)
> &gt; &gt;
> &gt; &gt;   ex3. makefile - update menuconfig entries without recompiling all the kernel - Stack Overflow
> &gt; &gt;   https://stackoverflow.com/questions/71075113/update-menuconfig-entries-without-recompiling-all-the-kernel
> &gt; &gt;
> &gt; &gt;   ex4. linux - disabling CONFIG_NET_DMA - Stack Overflow
> &gt; &gt;   https://stackoverflow.com/questions/30794576/disabling-config-net-dma/30796820#30796820
> &gt; &gt;
> &gt; &gt; We plan to optimize the conf_read() function in /scripts/kconfig/confdata.c,
> &gt; &gt; and add information for the mismatched configuration options to help users get the desired Linux kernel.
> &gt; &gt; Do you think it's necessary? Any suggestions?
> &gt; &gt;
> &gt;
> &gt;
> &gt; It may be helpful.
> &gt; I do not know if such warnings should be turned on by default,
> &gt; or under some verbose mode, though.
> &gt;
>
>
> Can we reuse "KBUILD_VERBOSE" switch to print more warning?
> By default, a message is added as follows only when invalid values in .config are detected:
>     "warning: values in .config are forcibly modified to meet the kconfig dependency constraints.
> For more information, enable the environment variable 'export KBUILD_VERBOSE=1'."
>
> In verbose mode, print invalid configuration options one by one, including error causes and current values,
> to help users correct them. For example, in the case of ex1. above, we can prompt with the following message:
>     "file:line: warning: 'CONFIG_PM' reverse select error, due to 'CONFIG_PM_SLEEO' is set to 'y'."
>
> Do you think this would work? Can we modify it in this way?


I prefer a separate option (e.g. "KCONFIG_*")
because KBUILD_VERBOSE=1 is a different class of verbosity.

And, I'd like to keep it quiet by default (current behavior).



>
>
> &gt; &gt; Best regards,
> &gt; &gt; Siyuan Guo
> &gt; &gt; Ying Sun
> &gt; &gt;
> &gt; &gt;
> &gt;
> &gt;
> &gt; --
> &gt; Best Regards
> &gt; Masahiro Yamada
>
>
> --
> Best regards,
> Siyuan Guo
> Ying Sun
> </sunying@xxxxxxxxxxxxxx></masahiroy@xxxxxxxxxx>



-- 
Best Regards
Masahiro Yamada




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

  Powered by Linux