Android虚拟平台的编译和整合(2)

Linux kernel集成化
获得内核源代码

克隆kernel到Android_platform根目录
$ git clone git://android.git.kernel.org/kernel/common.git kernel
切换kernel分支到2.6.29
$ cd kernel
$ git checkout -b android-goldfish-2.6.29 origin/android-goldfish-2.6.29

增加kernel编译到系统

修改platform下面的build

------------------------------- core/Makefile --------------------------------

index 2f316ca..7a92961 100644

@@ -288,6 +288,9 @@ endif

INSTALLED_BOOTIMAGE_TARGET := $(PRODUCT_OUT)/boot.img

+kernel: $(INSTALLED_BOOTIMAGE_TARGET)

+.PHONY:kernel

+

ifeq ($(TARGET_BOOTIMAGE_USE_EXT2),true)

tmp_dir_for_image := $(call intermediates-dir-for,EXECUTABLES,boot_img)/bootimg

INTERNAL_BOOTIMAGE_ARGS += --tmpdir $(tmp_dir_for_image)

AndroidBoard.mk

Android虚拟平台的编译和整合


内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwgdjg.html