Chinaunix首页 | 论坛 | 博客
  • 博客访问: 826586
  • 博文数量: 168
  • 博客积分: 5431
  • 博客等级: 大校
  • 技术积分: 1560
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-22 11:56
文章存档

2015年(2)

2014年(1)

2013年(12)

2012年(12)

2011年(15)

2010年(5)

2009年(16)

2008年(41)

2007年(64)

分类: LINUX

2011-04-15 12:15:19

Ubuntu 10.10 64bit based Android kernel build env setup
1.Install Ubuntu 10.10
2.$apt-get install git-core
3.
$ 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:


阅读(618) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~