Add new device
来源:互联网 发布:求好听的淘宝店铺名字 编辑:程序博客网 时间:2024/06/01 07:51
Add the configuration files for the new device mydevice of the company mycompany.
Create AndroidProducts.mk
mkdir -p device/mycompany/mydevicenano device/mycompany/mydevice/AndroidProducts.mk
PRODUCT_MAKEFILES := \ $(LOCAL_DIR)/full_mydevice.mk
Create file full_mydevice.mk
Example is build/target/product/full.mk
nano device/mycompany/mydevice/full_mydevice.mk
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)$(call inherit-product, $(SRC_TARGET_DIR)/board/generic/device.mk)# OverridesPRODUCT_NAME := full_mydevicePRODUCT_DEVICE := mydevicePRODUCT_BRAND := AndroidPRODUCT_MODEL := Full Android on mydevice
Create file vendorsetup.sh
nano device/mycompany/mydevice/vendorsetup.sh
add_lunch_combo full_mydevice-eng
Create file BoardConfig.mk
Examples are
build/target/board/generic/BoardConfig.mk
device/samsung/crespo/BoardConfig.mk
device/samsung/crespo/BoardConfigCommon.mk
mkdir -p device/mycompany/mydevicenano device/mycompany/mydevice/BoardConfig.mk
# config.mk## Product-specific compile-time definitions.## The generic product target doesn't have any hardware-specific pieces.TARGET_NO_BOOTLOADER := trueTARGET_NO_KERNEL := trueTARGET_CPU_ABI := armeabiHAVE_HTC_AUDIO_DRIVER := trueBOARD_USES_GENERIC_AUDIO := true# no hardware cameraUSE_CAMERA_STUB := true# Set /system/bin/sh to mksh, not ash, to test the transition.TARGET_SHELL := mksh# CPUTARGET_ARCH_VARIANT := armv7-a-neonARCH_ARM_HAVE_TLS_REGISTER := true
Configure Android for mydevice
. build/envsetup.sh
including device/htc/passion/vendorsetup.shincluding device/mycompany/mydevice/vendorsetup.shincluding device/samsung/crespo4g/vendorsetup.shincluding device/samsung/crespo/vendorsetup.sh
lunch
You're building on LinuxLunch menu... pick a combo: 1. full-eng 2. full_x86-eng 3. simulator 4. full_passion-userdebug 5. full_mydevice-eng 6. full_crespo4g-userdebug 7. full_crespo-userdebugWhich would you like? [full-eng] 5============================================PLATFORM_VERSION_CODENAME=AOSPPLATFORM_VERSION=AOSPTARGET_PRODUCT=full_mydeviceTARGET_BUILD_VARIANT=engTARGET_SIMULATOR=falseTARGET_BUILD_TYPE=releaseTARGET_BUILD_APPS=TARGET_ARCH=armTARGET_ARCH_VARIANT=armv7-a-neonHOST_ARCH=x86HOST_OS=linuxHOST_BUILD_TYPE=releaseBUILD_ID=OPENMASTER============================================
Build Android for mydevice
make -j4
Combining NOTICE files: out/target/product/mydevice/obj/NOTICE.htmlTarget system fs image: out/target/product/mydevice/obj/PACKAGING/systemimage_intermediates/system.imgInstall system fs image: out/target/product/mydevice/system.imgInstalled file list: out/target/product/mydevice/installed-files.txt
0 0
- Add new device
- No compatible targets were found. Do you wish to add new Android Virtual Device
- add new LAN8710 and LAN8720 device ids to smsc phy driver
- create New Virtual Device
- 运行Android程序时,出现提示:No compatible targets were found .do you wish to add new android virtual device!
- 运行Android程序时,出现提示:No compatible targets were found .do you wish to add new android virtual device!
- No compatible targets were found,Do you wish to add a new Android Virtual Device?问题解决方法。
- Add New MySQL User
- add a new one
- cannot add new member
- Xenserver add new disk
- cannot add new member
- Add a New Module
- cannot add new member
- svn add new project
- ssh add new key
- New device resource allocate function
- New device resource allocate function
- 初做MAVEN项目 pom.xml报错
- 基于MTD的NAND驱动开发
- 可以说没有这句话,这些字就不会有这个群体的发生
- 【git】gitweb 404 错误
- MongDB学习笔记(二):索引操作
- Add new device
- SPOJ3267--D-query(离线线段树||在线主席树)
- 由" failed to run the android sdk manager"引起的一系列问题 android
- Oracle 配置FAST Cache最佳实践与限制
- 动态注册JNI
- java多线程 sleep()和wait()的区别
- MapReduce----主成分分析
- MFC网络编程,CSocket,网络通信,网络聊天室
- 移植测试工具到android