在裁剪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就没有这个错误了。

 

 

特此记录下。

 

相关文章:

  • 2021-08-21
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
猜你喜欢
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2021-07-13
  • 2022-12-23
相关资源
相似解决方案