Android-How to build Audroid Automotive OS

来自个人维基
2019年9月23日 (一) 10:21free6d1823讨论 | 贡献的版本

跳转至: 导航搜索

Environment:

Host: Ubuntu 18.04, Intel  i7
EVT: Hikey960

Steps:
1. change directory to Android AOSP folder.
2. modify device/linaro/hikey/AndroidProducts.mk, add hikey960_car-userdebug menu item

PRODUCT_MAKEFILES := \
   $(LOCAL_DIR)/hikey.mk \
   $(LOCAL_DIR)/hikey32.mk \
   $(LOCAL_DIR)/hikey64_only.mk \
   $(LOCAL_DIR)/hikey_tv.mk \
   $(LOCAL_DIR)/hikey960.mk \
   $(LOCAL_DIR)/hikey960_tv.mk \
   $(LOCAL_DIR)/hikey960_car.mk 
COMMON_LUNCH_CHOICES := \
   hikey-userdebug \
   hikey64_only-userdebug \
   hikey_tv-userdebug \
   hikey960-userdebug \
   hikey960_tv-userdebug \
   hikey960_car-userdebug</nowiki>

3. cp device/linaro/hikey/hikey960.mk to device/linaro/hikey/hikey960_car.mk
4. Modify hikey960_car.mk

 ...
 # Inherit the full_base and device configurations
 $(call inherit-product, device/generic/car/common/car.mk)
 $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
 $(call inherit-product, device/linaro/hikey/hikey960/device-hikey960.mk)
 $(call inherit-product, device/linaro/hikey/device-common.mk)
 $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
 ...
 PRODUCT_NAME := hikey960_car
 PRODUCT_DEVICE := hikey960
 PRODUCT_BRAND := Android
 PRODUCT_MODEL := Car on hikey960

5. source ./build/envsetup
6. lunch hikey960_car-userdebug
7. make -j32