我正在建造AOSP 4.2 Jelly Bean
。当我构建默认full-eng
配置并在模拟器上运行它时,一切都很好。
我需要构建自定义设备并运行它(在emulator
- 用于测试它是否真的有效,并且在真实设备上)。当我基于full_base.mk
文件创建自定义设备并运行它时emulator
-emulator
只是挂断了带有 ANDROID 文本的第一个屏幕,并且根本不会加载。我system.img, userdata.img, ramdisk.img
在建立目录之后。这就是我构建自定义 AOSP 并在设备上运行它所需的全部内容吗?我可以在模拟器上运行我的构建,还是只在真实设备上运行?
我是否应该有一些额外的东西来为真实设备构建 AOSP:内核、设备驱动程序等?
自定义设备文件夹文件(device/my_company/my_product):
安卓.mk
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
ifneq ($(filter my_product,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))
endif
安卓产品.mk
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full_myproduct.mk
BoardConfig.mk
TARGET_NO_BOOTLOADER := true
TARGET_NO_KERNEL := true
TARGET_ARCH := arm
TARGET_ARCH_VARIANT := armv7-a
TARGET_CPU_VARIANT := generic
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
HAVE_HTC_AUDIO_DRIVER := true
BOARD_USES_GENERIC_AUDIO := true
# no hardware camera
USE_CAMERA_STUB := true
# Enable dex-preoptimization to speed up the first boot sequence
# of an SDK AVD. Note that this operation only works on Linux for now
ifeq ($(HOST_OS),linux)
ifeq ($(WITH_DEXPREOPT),)
WITH_DEXPREOPT := true
endif
endif
# Build OpenGLES emulation guest and host libraries
BUILD_EMULATOR_OPENGL := true
# Build and enable the OpenGL ES View renderer. When running on the emulator,
# the GLES renderer disables itself if host GL acceleration isn't available.
USE_OPENGL_RENDERER := true
full_myproduct.mk
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
#DEVICE_PACKAGE_OVERLAYS :=
#PRODUCT_PACKAGES +=
#PRODUCT_COPY_FILES +=
PRODUCT_NAME := full_myproduct
PRODUCT_DEVICE := myproduct
PRODUCT_MODEL := Customized Android
PRODUCT_BRAND := Android
供应商设置.sh
add_lunch_combo full_myproduct-userdebug