You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
3.1 KiB

# RELEASE NAME: 20210818_BT_ANDROID_10.0
# RTKBT_API_VERSION=2.1.1.0
ifeq ($(strip $(OS_PLATFORM_VERSION)), linux)
LOCAL_PATH := $(call my-dir)
endif
BOARD_HAVE_BLUETOOTH := true
BOARD_HAVE_BLUETOOTH_RTK := true
BOARD_HAVE_BLUETOOTH_RTK_TV := true
ifeq ($(BOARD_HAVE_BLUETOOTH_RTK_TV), true)
#Firmware For Tv
include $(LOCAL_PATH)/Firmware/TV/TV_Firmware.mk
else
#Firmware For Tablet
include $(LOCAL_PATH)/Firmware/BT/BT_Firmware.mk
endif
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(LOCAL_PATH)/bluetooth
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/system/etc/permissions/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
$(LOCAL_PATH)/system/etc/permissions/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
ifeq ($(BOARD_HAVE_BLUETOOTH_RTK_TV), true)
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/vendor/usr/keylayout/Vendor_005d_Product_0001.kl:vendor/usr/keylayout/Vendor_005d_Product_0001.kl \
$(LOCAL_PATH)/vendor/usr/keylayout/Vendor_005d_Product_0002.kl:vendor/usr/keylayout/Vendor_005d_Product_0002.kl
endif
ifeq ($(BOARD_HAVE_BLUETOOTH_IF), rtk_uart)
ifeq ($(BOARD_HAVE_BLUETOOTH_CHIP_VERSION), reserved9)
PRODUCT_COPY_FILES += $(LOCAL_PATH)/vendor/etc/bluetooth/uart_reserved9/rtkbt.conf:odm/etc/bluetooth/rtkbt.conf
else ifeq ($(BOARD_HAVE_BLUETOOTH_CHIP_VERSION), reserved19)
PRODUCT_COPY_FILES += $(LOCAL_PATH)/vendor/etc/bluetooth/uart_reserved19/rtkbt.conf:odm/etc/bluetooth/rtkbt.conf
else ifeq ($(BOARD_HAVE_BLUETOOTH_CHIP_VERSION), hi3751v811)
PRODUCT_COPY_FILES += $(LOCAL_PATH)/vendor/etc/bluetooth/uart_hi3751v811/rtkbt.conf:odm/etc/bluetooth/rtkbt.conf
else ifeq ($(BOARD_HAVE_BLUETOOTH_CHIP_VERSION), reserved13)
PRODUCT_COPY_FILES += $(LOCAL_PATH)/vendor/etc/bluetooth/uart_reserved13/rtkbt.conf:odm/etc/bluetooth/rtkbt.conf
else ifeq ($(BOARD_HAVE_BLUETOOTH_CHIP_VERSION), reserved26)
PRODUCT_COPY_FILES += $(LOCAL_PATH)/vendor/etc/bluetooth/uart_reserved26/rtkbt.conf:odm/etc/bluetooth/rtkbt.conf
else
$(error can not define board_bluetooth_chip_version)
endif
else
PRODUCT_COPY_FILES += $(LOCAL_PATH)/vendor/etc/bluetooth/rtkbt.conf:odm/etc/bluetooth/rtkbt.conf
endif
# base bluetooth
PRODUCT_PACKAGES += \
Bluetooth \
libbt-vendor \
audio.a2dp.default \
bluetooth.default \
android.hardware.bluetooth@1.0-impl \
android.hidl.memory@1.0-impl \
android.hardware.bluetooth@1.0-service \
android.hardware.bluetooth@1.0-service.rc \
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.bluetooth.rtkcoex=true \
persist.vendor.rtkbt.bdaddr_path=none \
persist.vendor.bluetooth.prefferedrole=master \
persist.vendor.rtkbtadvdisable=false
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += persist.bluetooth.btsnooplogmode=disable \
persist.bluetooth.btsnooppath=/data/misc/bluedroid/btsnoop_hci.cfa \
persist.bluetooth.btsnoopsize=0xffff \
persist.bluetooth.showdeviceswithoutnames=false \
vendor.bluetooth.enable_timeout_ms=11000