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的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 遭遇价格欺诈
- 下一篇: Virtualbox 无缝整合linux