欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > linux >内容正文

linux

porting linux

发布时间:2023/12/9 linux 55 豆豆
生活随笔 收集整理的这篇文章主要介绍了 porting linux 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

    编译器: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/

转载于:https://www.cnblogs.com/cjjnjust/archive/2010/01/05/1639964.html

总结

以上是生活随笔为你收集整理的porting linux的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。