Android模拟器:从AOSP构建boot.img [英] Android emulator: Building boot.img from AOSP
问题描述
我正在尝试在Debian 7(amd64)上构建AOSP 4.3(内部版本:JSR78D;分支:android-4.3_r2).我遵循了 Google Android网站中列出的说明,并成功完成了构建步骤.最后,我可以使用 Android模拟器测试我新建的图像.
I am trying to build AOSP 4.3 (build: JSR78D; branch: android-4.3_r2) on Debian 7 (amd64). I followed the instructions listed in Google Android website and finished build steps successfully. At the end, I could test my newly built image with the Android emulator.
现在,我在out/target/product/generic
目录中有3个图像文件:system.img
,userdata.img
和ramdisk.img
.但是,缺少boot.img
.我尝试发出make bootimage
命令,但是它无助于生成上述文件.我希望Makefile
为我自动构建此文件,因为它包含build/core/main.mk
,其中bootimage
作为其目标之一.
Now, I have 3 image files in the out/target/product/generic
directory: system.img
, userdata.img
, and ramdisk.img
. However, boot.img
is missing. I tried issuing the make bootimage
command, but it did not help generating the aforesaid file. I expected Makefile
to automatically build this file for me since it includes build/core/main.mk
which has bootimage
as one of its targets.
PS.我见过类似 this 的帖子,但目前尚不清楚我为什么boot.img
不能自动构建.
PS. I have seen posts like this, but it is still not clear to me why boot.img
is not built automatically.
推荐答案
Boot.img包含内核.这是操作系统和硬件之间的接口.仿真器设备中没有硬件.(通用).
Boot.img contains the kernel. Which is the interface between the OS and the hardware. We don't have hardware in emulator device.(generic).
您要boot.img吗?为真实设备(例如Nexus 5)构建Android
You want boot.img? build Android for a real device(Ex. Nexus 5)
这篇关于Android模拟器:从AOSP构建boot.img的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!