add android automotive build target
This commit is contained in:
@@ -6,8 +6,10 @@
|
||||
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/aosp_rpi4.mk \
|
||||
$(LOCAL_DIR)/aosp_rpi4_car.mk \
|
||||
$(LOCAL_DIR)/aosp_rpi4_tv.mk
|
||||
|
||||
COMMON_LUNCH_CHOICES := \
|
||||
aosp_rpi4-userdebug \
|
||||
aosp_rpi4_car-userdebug \
|
||||
aosp_rpi4_tv-userdebug
|
||||
|
58
aosp_rpi4_car.mk
Normal file
58
aosp_rpi4_car.mk
Normal file
@@ -0,0 +1,58 @@
|
||||
#
|
||||
# Copyright (C) 2021-2023 KonstaKANG
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# Inherit device configuration
|
||||
$(call inherit-product, device/brcm/rpi4/device.mk)
|
||||
|
||||
PRODUCT_AAPT_CONFIG := normal mdpi hdpi
|
||||
PRODUCT_AAPT_PREF_CONFIG := hdpi
|
||||
PRODUCT_CHARACTERISTICS := automotive,nosdcard
|
||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
|
||||
$(call inherit-product, packages/services/Car/car_product/build/car.mk)
|
||||
|
||||
# Android Automotive
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.automotive.vehicle@2.0-default-service
|
||||
|
||||
# Bluetooth
|
||||
PRODUCT_VENDOR_PROPERTIES += \
|
||||
bluetooth.device.class_of_device=38,4,8 \
|
||||
bluetooth.profile.a2dp.source.enabled=false \
|
||||
bluetooth.profile.asha.central.enabled=false \
|
||||
bluetooth.profile.avrcp.target.enabled=false \
|
||||
bluetooth.profile.bap.broadcast.assist.enabled=false \
|
||||
bluetooth.profile.bap.unicast.client.enabled=false \
|
||||
bluetooth.profile.bas.client.enabled=false \
|
||||
bluetooth.profile.ccp.server.enabled=false \
|
||||
bluetooth.profile.csip.set_coordinator.enabled=false \
|
||||
bluetooth.profile.hap.client.enabled=false \
|
||||
bluetooth.profile.hfp.ag.enabled=false \
|
||||
bluetooth.profile.hid.device.enabled=false \
|
||||
bluetooth.profile.hid.host.enabled=false \
|
||||
bluetooth.profile.map.server.enabled=false \
|
||||
bluetooth.profile.mcp.server.enabled=false \
|
||||
bluetooth.profile.opp.enabled=false \
|
||||
bluetooth.profile.pbap.server.enabled=false \
|
||||
bluetooth.profile.sap.server.enabled=false \
|
||||
bluetooth.profile.vcp.controller.enabled=false
|
||||
|
||||
# Overlays
|
||||
PRODUCT_PACKAGES += \
|
||||
AndroidRpiOverlay \
|
||||
SettingsProviderRpiOverlay \
|
||||
WifiRpiOverlay
|
||||
|
||||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/car_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/car_core_hardware.xml
|
||||
|
||||
# Device identifier. This must come after all inclusions.
|
||||
PRODUCT_DEVICE := rpi4
|
||||
PRODUCT_NAME := aosp_rpi4_car
|
||||
PRODUCT_BRAND := Raspberry
|
||||
PRODUCT_MODEL := Raspberry Pi 4
|
||||
PRODUCT_MANUFACTURER := Raspberry
|
||||
PRODUCT_RELEASE_NAME := Raspberry Pi 4
|
Reference in New Issue
Block a user