在裁剪uboot的時候出現下面錯誤:
LDS u-boot.lds LD u-boot arm-linux-ld:u-boot.lds:1: ignoring invalid character `#' in expression arm-linux-ld:u-boot.lds:1: syntax error Makefile:1018: recipe for target 'u-boot' failed make: *** [u-boot] Error 1
我的裁剪就是在config文件里的,具體來說就是include/configs/smdk2440.h
后來發現是用//注釋宏出的問題,改成#if 0 ... #endif就沒有這個錯誤了。
特此記錄下。
