Linux编译选项
[ ] Compile the kernel with warnings as errors
This option refers to a setting in the kernel compilation process that determines how the compiler should handle warnings.
If the option is unchecked and warnings are generated during the compilation process, the compiler will still proceed to generate the kernel image.
If the option is checked and warnings are generated during the compilation process, the compiler will treat the warnings as errors and stop the compilation process. This is useful for ensuring that the kernel code is free from any warning messages, which could indicate potential issues or bugs in the code.
Enabling this option can help to improve the quality and stability of the kernel code, but it may also result in longer compilation times and require more effort to resolve any warning messages that are generated.
这个选项是指内核编译过程中的一个设置,它决定了编译器应该如何处理警告。
如果该选项未被选中并且在编译过程中产生了警告,编译器仍然会继续生成内核映像。
如果勾选了该选项,编译过程中产生了警告,编译器会将警告视为错误并停止编译过程。 这对于确保内核代码没有任何警告消息很有用,警告消息可能表明代码中存在潜在问题或错误。
启用此选项有助于提高内核代码的质量和稳定性,但也可能会导致编译时间变长,并且需要付出更多努力来解决生成的任何警告消息。
解决办法:
- 通过make menuconfig进行去除勾选
- 在.config文件中将该编译选项设置为“n”