歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> Linux文化 >> Linux操作系統內核開發者的一個實用技巧

Linux操作系統內核開發者的一個實用技巧

日期:2017/2/27 11:50:29   编辑:Linux文化

是在實在對重復的勞動感到煩悶後想起它們的,希望對大家有用。

以下是關於kernel image的兩則技巧:

1.建立symbol-link,指向你的固定名字的目的kernel image (soure file修改後制成的kernel image), 這樣,拷貝/移動這個kernel用來測試方便多了。

2.實現給kernel image改名自動化(默認的是bzImage etc) 修改

$SRC_TOPDIR/arch/xxx(對我這個鄉下人而言xxx here永遠都是I386)/boot/Makefile

bzImage的規則下增加一條自定義的改名規則:

bzImage:

.....

mv bzImage Apsl3-bzImage(Any name u like)


Copyright © Linux教程網 All Rights Reserved