编译Linux内核是出现错误:
解决办法:
- To execute ‘make imx_v7_defconf’ instead of ‘make menuconfig’ to generate a .config file, can build kernel image successfully. You might compare the default configuration with the one you get from menuconfig.
- 执行make imx_v7_defconf代替make menuconfig
编译模块时出现错误:
error: implicit declaration of function ‘pinctrl_pm_select_default_state’ [-Werror=implicit-function-declaration]
error: implicit declaration of function ‘pinctrl_pm_select_sleep_state’ [-Werror=implicit-function-declaration]
解决办法:
- 在相应文件中添加头文件:
#include <linux/pinctrl/consumer.h>
- 只要是出现类似pinctrl定义错误,都可以通过添加该头文件解决。