u-boot-2010.06编译时只要在include/configs/下在任何一个开发板的配置头文件中加入#include <ovideo_fb.h> 然后编译就报错:
.../u-boot-2010.06/include/video_fb.h: Assembler messages:
.../u-boot-2010.06/include/video_fb.h:54: Error: bad instruction `typedef struct {'
.../u-boot-2010.06/include/video_fb.h:55: Error: bad instruction `unsigned int isaBase'
.../u-boot-2010.06/include/video_fb.h:56: Error: bad instruction `unsigned int pciBase'
.../u-boot-2010.06/include/video_fb.h:57: Error: bad instruction `unsigned int dprBase'
.../u-boot-2010.06/include/video_fb.h:58: Error: bad instruction `unsigned int vprBase'
.../u-boot-2010.06/include/video_fb.h:59: Error: bad instruction `unsigned int cprBase'
.../u-boot-2010.06/include/video_fb.h:60: Error: bad instruction `unsigned int frameAdrs'
.../u-boot-2010.06/include/video_fb.h:61: Error: bad instruction `unsigned int memSize'
.../u-boot-2010.06/include/video_fb.h:62: Error: bad instruction `unsigned int mode'
.../u-boot-2010.06/include/video_fb.h:63: Error: bad instruction `unsigned int gdfIndex'
.../u-boot-2010.06/include/video_fb.h:64: Error: bad instruction `unsigned int gdfBytesPP'
.../u-boot-2010.06/include/video_fb.h:65: Error: bad instruction `unsigned int fg'
.../u-boot-2010.06/include/video_fb.h:66: Error: bad instruction `unsigned int bg'
.../u-boot-2010.06/include/video_fb.h:67: Error: bad instruction `unsigned int plnSizeX'
.../u-boot-2010.06/include/video_fb.h:68: Error: bad instruction `unsigned int plnSizeY'
.../u-boot-2010.06/include/video_fb.h:69: Error: bad instruction `unsigned int winSizeX'
.../u-boot-2010.06/include/video_fb.h:70: Error: bad instruction `unsigned int winSizeY'
.../u-boot-2010.06/include/video_fb.h:71: Error: bad instruction `char modeIdent[80]'
.../u-boot-2010.06/include/video_fb.h:72: Error: junk at end of line, first unrecognized character is `}'
.../u-boot-2010.06/include/video_fb.h:79: Error: bad instruction `void *video_hw_init(void)'
.../u-boot-2010.06/include/video_fb.h:104: Error: bad instruction `void video_set_lut('
.../u-boot-2010.06/include/video_fb.h:105: Error: bad instruction `unsigned int index,'
.../u-boot-2010.06/include/video_fb.h:106: Error: bad instruction `unsigned char r,'
.../u-boot-2010.06/include/video_fb.h:107: Error: bad instruction `unsigned char g,'
.../u-boot-2010.06/include/video_fb.h:108: Error: bad instruction `unsigned char b'
.../u-boot-2010.06/include/video_fb.h:109: Error: junk at end of line, first unrecognized character is `)'
make[1]: *** [start.o] Error 1
怎么解决?
------解决思路----------------------
错误的这几行代码也贴一下吧
------解决思路----------------------
很明显你这个是被当做汇编命令处理了,你为啥要在那个文件加?那里面都是宏定义