分类: LINUX
2011-04-15 12:15:19
.
$ mkdir /home/android_kernel $ cd
/home/android_kernel
4.$git clone git://android.git.kernel.org/
+ project path
Next step modify the Makefile to use the arm toolchain for building the kernel image or pass the ARCH will also work!
5.$vim/home/android_kernel/Makefile
find out the ARCH and CROSS_COMPILE var,
ARCH=arm
CROSS_COMPILE = arm-eabi-
//Warning: The arm toolchain's bin need to be in the PATH var
6.
$make menuconfig or make goldfish_defconfig alike commands to config your kernel
This step ie very important which decides the kernel features needed to be compiles
7.
make -j4
8.The kernel image will be found under arch/arm/boot/zImage
You can also build a uImage or bZImage
unyaff: