编译器:arm-linux- 3.4.1

    出现以下错误

cc1: error: invalid option `short-load-bytes'
make: *** [entry.o] 错误 1

    如果改用2.95.3则不会出现该问题。

    原因是高版本的编译器不支持-mshort-load-bytes选项,改为-malignment-traps即可。

 

makefile中一些易忘记的东西

Makefile中的"="":="、"?="和"+="区别是:
"="是直接给变量赋值。
":="是将":="右边中包含的变量直接展开给左边的变量赋值。
"?="是在该变量没有被赋值 的情况下为其赋值。
"+="是给该变量追加值。

reference:

http://blog.chinaunix.net/u/13991/showart_105697.html

http://blog.chinaunix.net/u/13991/showart_79823.html

http://blog.csdn.net/skywalker_nick/archive/2007/08/18/1750011.aspx

http://superlp.bokee.com/1391393.html

http://student.csdn.net/space.php?uid=47527&do=blog&id=12732

 

linux kernel:ftp://ftp.kernel.org/pub/linux/kernel/

arm-linux kernel :ftp://ftp.arm.linux.org.uk/pub/armlinux/kernel/

posted on 2010-01-05 22:54  灰太狼大王  阅读(161)  评论(0编辑  收藏  举报