首先在android路径下面 执行
$ source build/envsetup.sh
会导入相关的编译环境。
linux 编译过程:
1. 编译配置 $ ./build a20
会生成.config
2. 编译内核:$ ./build all
3. 编译模块: $./build modules
编译完了会生成uimage,mudules。
android编译过程:
1. 复制uimage,modules到android目录:$ extract-bsp
2. 选择相关产品 $ lunch
3. 编译: $ make -j2 //我的是双核电脑
打包:
$ pack
在output目录下会生成 img。
自己记录下来。