今天在调试rk3288的 uboot的
./include/configs/rk_default_config.h文件
我的本意是屏蔽掉uboot 的lcd驱动,然后我习惯用“//”用单行注释双斜杠注释了一个宏定义比如
//#define CONFIG_LCD
编译后提示错误
arm-linux-ld:u-boot.lds:1: ignoring invalid character `#' in expression
arm-linux-ld:u-boot.lds:1: syntax error
通过参考网上信息
得出解决办法
//#define CONFIG_LCD这样更换为
/* #define CONFIG_LCD */
或者
#if0
#define CONFIG_CMD_NAND
#endif
两种方法都是可以的。