Linux uboot 白名单问题
最近在修改uboot 代码,在*.h配置文件中加入一个控制宏,发现编译不过,uboot 版本:
5 VERSION = 2017
6 PATCHLEVEL = 03
7 SUBLEVEL =
8 EXTRAVERSION =
加入宏后报如下错误:
CFGCHK u-boot.cfg
comm: file 2 is not in sorted order
Error: You must add new CONFIG options using Kconfig
The following new ad-hoc CONFIG options were detected:
CONFIG_XXX_SERIAL_OUTPUT
Please add these via Kconfig instead. Find a suitable Kconfig
file and add a ‘config’ or ‘menuconfig’ option.
make: *** [all] Error 1
Failed!!!
经查证原因为:
在uboot 的编译后面 脚本 check-config.sh 会,对 u-boot.cfg 进行有序检查,与 ./scripts/cofnig_whitelist.txt 进行对比
执行 comm -23 --nocheck-order ${configs} ${whitelist} > ${suspects} 此条命令的时候报错。
comm 加入 --nocheck-order 可以屏蔽此条错误。
comm -23 --nocheck-order ${configs} ${whitelist} > ${suspects}
或者直接屏蔽
**#quiet_cmd_cfgcheck = CFGCHK $2
#cmd_cfgcheck = $(srctree)/scripts/check-config.sh KaTeX parse error: Expected 'EOF', got '\ ' at position 3: 2 \̲ ̲#(srctree)/scripts/config_whitelist.txt $(srctree)
即可解决上面问题