For linux kernel and driver, you should be able to visit the kernel dir and built. This won't need to build entire Android source.
Due to the limitation of the android kernel building rules,
if you just change the kernel tree, it won't
trigger to rebuild the kernel image (and modules).
The correct way to trigger the rebuilding is
touch your kernel config
(the file depends which target you use),
or just rm $OUT/kernel.
(not $OUT/obj/kernel as you said, this will
rebuild the whole kernel tree that is unnecessary)
在 2011年7月20日下午10:21,Kuan Po Huang <kph...@gmail.com> 寫道:
> Dear Tony,
> 之前碰到的問題是
> x86 android有支援build kernel的make rules
> 也就是make kernel TARGET_PRODUCT=generic_x86
> 可是這個build kernel的方法不會去build到kernel裡面的所有drivers
> 所以一旦修改rt3070的driver source code想要重編
> 就是要把android整個build好的東西砍掉重編
> 也就是先make clean後
> 再make usb_img TARGET_PRODUCT=generic_x86
> 今天下午我發現一個方法
> 1. remove <android_x86_src>/out/target/product/generic_x86/obj/kernel
> 2. make -j2 usb_img TARGET_PRODUCT=generic_x86
> 這樣build system會誤以為kernel裡面的東西全都沒有編過
> 然後會在2.的時候重編kernel
> 這樣就可以緩解每次改動rt3070 source code的時候
> 必須把整個android砍掉重編的時間
> 只有kernel重編的話大概半小時
> 可是android重編的話大概要一個多小時
--
Chih-Wei
Android-x86 project
http://www.android-x86.org