“Android-How to build Audroid Automotive OS”的版本间的差异

来自个人维基
跳转至: 导航搜索
(以“Environment: Host: Ubuntu 18.04, Intel i7 EVT: Hikey960 Steps: 1. change directory to Android AOSP folder. 2. modify device/linaro/hikey/AndroidProducts.mk, ...”为内容创建页面)
 
第21行: 第21行:
 
     hikey960_tv-userdebug \
 
     hikey960_tv-userdebug \
 
     hikey960_car-userdebug</nowiki>
 
     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, <font color=#FF0000>device/generic/car/common/car.mk</font>)
 +
  $(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 := <font color=#FF0000>hikey960_car</font>
 +
  PRODUCT_DEVICE := hikey960
 +
  PRODUCT_BRAND := Android
 +
  PRODUCT_MODEL := <font color=#FF0000>Car on hikey960</font>
 +
 +
5. source ./build/envsetup
 +
6. lunch hikey960_car-userdebug
 +
7. make -j32

2019年9月23日 (一) 10:21的版本

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