summaryrefslogtreecommitdiff
path: root/bluetooth.mk (plain)
blob: 4012bb0c532aed7fb93b779e6cb41997898321d8
1#
2# Copyright (C) 2012 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17#Support modules:
18# bcm40183, AP6210, AP6476, AP6330, AP62x2,AP6335,mt5931 & mt6622
19
20ifeq ($(BOARD_HAVE_BLUETOOTH),false)
21 BLUETOOTH_MODULE :=
22endif
23
24ifeq ($(MULTI_BLUETOOTH_SUPPORT), true)
25 BOARD_HAVE_BLUETOOTH := true
26 PRODUCT_PROPERTY_OVERRIDES += \
27 config.disable_bluetooth=false
28else
29ifeq ($(BLUETOOTH_MODULE),)
30 BOARD_HAVE_BLUETOOTH := false
31 PRODUCT_PROPERTY_OVERRIDES += \
32 config.disable_bluetooth=true
33else
34 BOARD_HAVE_BLUETOOTH := true
35 PRODUCT_PROPERTY_OVERRIDES += \
36 config.disable_bluetooth=false
37endif
38endif
39
40ifeq ($(BOARD_HAVE_BLUETOOTH),true)
41PRODUCT_PACKAGES += Bluetooth \
42 bt_vendor.conf \
43 bt_stack.conf \
44 bt_did.conf \
45 auto_pair_devlist.conf \
46 libbt-hci \
47 bluetooth.default \
48 audio.a2dp.default \
49 libbt-client-api \
50 com.broadcom.bt \
51 com.broadcom.bt.xml \
52 android.hardware.bluetooth@1.0-impl \
53 android.hardware.bluetooth@1.0-service
54
55PRODUCT_COPY_FILES += \
56 hardware/amlogic/libbt/data/auto_pairing.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/auto_pairing.conf \
57 hardware/amlogic/libbt/data/blacklist.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/blacklist.conf
58
59ifneq ($(wildcard device/amlogic/$(TARGET_PRODUCT)/bluetooth),)
60BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/amlogic/$(TARGET_PRODUCT)/bluetooth
61endif
62
63endif
64
65################################################################################## bcm40183
66ifeq ($(BLUETOOTH_MODULE),bcm40183)
67
68BOARD_HAVE_BLUETOOTH_BROADCOM := true
69
70PRODUCT_COPY_FILES += device/amlogic/common/tools/BCM40183B2_26M.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4330.hcd
71
72PRODUCT_COPY_FILES += \
73 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
74 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
75
76PRODUCT_PACKAGES += libbt-vendor
77
78ifeq ($(BLUETOOTH_USE_BPLUS), true)
79ifeq ($(BCM_BLUETOOTH_LPM_ENABLE), true)
80 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_lpm.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
81else
82 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
83endif
84endif
85endif
86
87################################################################################## AP6269
88ifeq ($(BLUETOOTH_MODULE),AP6269)
89
90BOARD_HAVE_BLUETOOTH_BROADCOM := true
91BCM_USB_BT := true
92
93PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6269/BT/bcm43569a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43569a2.hcd
94
95PRODUCT_COPY_FILES += \
96 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
97 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
98
99PRODUCT_PACKAGES += libbt-vendor
100
101endif
102
103################################################################################## AP62x8
104ifeq ($(BLUETOOTH_MODULE),AP62x8)
105
106BOARD_HAVE_BLUETOOTH_BROADCOM := true
107BCM_USB_BT := true
108BCM_USB_WAKEUP := true
109PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP62x8/bcm43569a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43569a2.hcd
110PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP62x8/rc.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/rc.conf
111
112PRODUCT_COPY_FILES += \
113 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
114 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
115
116PRODUCT_PACKAGES += libbt-vendor
117
118endif
119
120################################################################################## AP6242
121ifeq ($(BLUETOOTH_MODULE),AP6242)
122
123BOARD_HAVE_BLUETOOTH_BROADCOM := true
124BCM_USB_BT := true
125
126PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6242/BT/bcm43242a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43242a1.hcd
127
128PRODUCT_COPY_FILES += \
129 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
130 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
131
132PRODUCT_PACKAGES += libbt-vendor
133
134endif
135
136################################################################################## AP6210
137ifeq ($(BLUETOOTH_MODULE),AP6210)
138
139BOARD_HAVE_BLUETOOTH_BROADCOM := true
140
141PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6210/BT/bcm20710a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM20702.hcd
142
143PRODUCT_COPY_FILES += \
144 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
145 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
146
147PRODUCT_PACKAGES += libbt-vendor
148
149ifeq ($(BLUETOOTH_USE_BPLUS), true)
150ifeq ($(BCM_BLUETOOTH_LPM_ENABLE), true)
151 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_AP6210_lpm.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
152else
153 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_AP6210.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
154endif
155endif
156endif
157################################################################################## AP6476
158ifeq ($(BLUETOOTH_MODULE),AP6476)
159
160BOARD_HAVE_BLUETOOTH_BROADCOM := true
161
162PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6476/GPS/bcm2076b1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM2076.hcd
163
164PRODUCT_COPY_FILES += \
165 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
166 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
167
168PRODUCT_PACKAGES += libbt-vendor
169
170ifeq ($(BLUETOOTH_USE_BPLUS), true)
171ifeq ($(BCM_BLUETOOTH_LPM_ENABLE), true)
172 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_AP6476_lpm.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
173else
174 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_AP6476.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
175endif
176endif
177 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_stack.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_stack.conf
178endif
179################################################################################## AP6330
180ifeq ($(BLUETOOTH_MODULE),AP6330)
181
182BOARD_HAVE_BLUETOOTH_BROADCOM := true
183
184PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6330/BT/bcm40183b2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4330.hcd
185
186PRODUCT_COPY_FILES += \
187 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
188 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
189
190PRODUCT_PACKAGES += libbt-vendor
191
192ifeq ($(BLUETOOTH_USE_BPLUS), true)
193ifeq ($(BCM_BLUETOOTH_LPM_ENABLE), true)
194 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_lpm.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
195else
196 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
197endif
198endif
199endif
200
201ifeq ($(BLUETOOTH_USE_BPLUS), true)
202# BPlus
203PRODUCT_COPY_FILES += \
204 device/amlogic/common/bplus/bplus.default.so:$(TARGET_COPY_OUT_VENDOR)/lib/hw/bplus.default.so
205
206PRODUCT_COPY_FILES += \
207 device/amlogic/common/bplus/iop_bt.db:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/iop_bt.db \
208 device/amlogic/common/bplus/bt_did.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_did.conf
209
210PRODUCT_PACKAGES += libbt_cust \
211 leexplorer
212endif
213
214################################################################################## AP62x2
215ifeq ($(BLUETOOTH_MODULE),AP62x2)
216
217BOARD_HAVE_BLUETOOTH_BROADCOM := true
218
219PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/62x2/BT/bcm43241b4.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43241b4.hcd
220
221PRODUCT_COPY_FILES += \
222 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
223 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
224
225PRODUCT_PACKAGES += libbt-vendor
226
227endif
228################################################################################## AP6335
229ifeq ($(BLUETOOTH_MODULE),AP6335)
230
231BOARD_HAVE_BLUETOOTH_BROADCOM := true
232
233PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6335/BT/bcm4335c0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm4335c0.hcd
234
235PRODUCT_COPY_FILES += \
236 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
237 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
238
239PRODUCT_PACKAGES += libbt-vendor
240
241endif
242################################################################################## AP6441
243ifeq ($(BLUETOOTH_MODULE),AP6441)
244
245BOARD_HAVE_BLUETOOTH_BROADCOM := true
246
247PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6441/BT/bcm43341b0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43341b0.hcd
248
249PRODUCT_COPY_FILES += \
250 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
251 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
252
253PRODUCT_PACKAGES += libbt-vendor
254
255endif
256################################################################################## AP6441
257ifeq ($(BLUETOOTH_MODULE),AP6234)
258
259BOARD_HAVE_BLUETOOTH_BROADCOM := true
260
261PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6234/BT/bcm43341b0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43341b0.hcd
262
263PRODUCT_COPY_FILES += \
264 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
265 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
266
267PRODUCT_COPY_FILES += \
268 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
269
270PRODUCT_PACKAGES += libbt-vendor
271
272endif
273################################################################################## AP6212
274ifeq ($(BLUETOOTH_MODULE),AP6212)
275
276BOARD_HAVE_BLUETOOTH_BROADCOM := true
277
278PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6212/BT/bcm43438a0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/4343.hcd
279
280PRODUCT_COPY_FILES += \
281 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
282 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
283
284PRODUCT_PACKAGES += libbt-vendor
285
286PRODUCT_COPY_FILES += \
287 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
288endif
289
290################################################################################## AP6354
291ifeq ($(BLUETOOTH_MODULE),AP6354)
292
293BOARD_HAVE_BLUETOOTH_BROADCOM := true
294
295PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4354/bcm4354a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4350.hcd
296
297PRODUCT_COPY_FILES += \
298 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
299 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
300
301PRODUCT_PACKAGES += libbt-vendor
302
303endif
304
305
306################################################################################## AP6255
307ifeq ($(BLUETOOTH_MODULE),AP6255)
308
309BOARD_HAVE_BLUETOOTH_BROADCOM := true
310
311PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6255/BT/BCM4345C0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4345C0.hcd
312
313PRODUCT_COPY_FILES += \
314 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
315 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
316
317PRODUCT_PACKAGES += libbt-vendor
318
319endif
320
321
322################################################################################## bcm4356
323ifeq ($(BLUETOOTH_MODULE),bcm4356)
324
325BOARD_HAVE_BLUETOOTH_BROADCOM := true
326
327PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4356/bcm4356a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4354.hcd
328PRODUCT_COPY_FILES += \
329 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
330 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
331PRODUCT_PACKAGES += libbt-vendor
332endif
333
334################################################################################## bcm4358
335ifeq ($(BLUETOOTH_MODULE),bcm4358)
336
337BOARD_HAVE_BLUETOOTH_BROADCOM := true
338
339PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4358/BT/BCM4358A3.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4358A3.hcd
340PRODUCT_COPY_FILES += \
341 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
342 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
343PRODUCT_PACKAGES += libbt-vendor
344endif
345
346
347################################################################################## bcm43458
348ifeq ($(BLUETOOTH_MODULE),bcm43458)
349
350BOARD_HAVE_BLUETOOTH_BROADCOM := true
351
352PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/43458/BCM4345C0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4345.hcd
353PRODUCT_COPY_FILES += \
354 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
355 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
356PRODUCT_PACKAGES += libbt-vendor
357endif
358################################################################################## bcm43341
359ifeq ($(BLUETOOTH_MODULE),bcm43341)
360
361BOARD_HAVE_BLUETOOTH_BROADCOM := true
362
363PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_usi/config/43341/BCM43341B0_002.001.014.0018.0000_USI_WM-BAN-BM-13_CL15_TESTONLY.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43341b0.hcd
364
365PRODUCT_COPY_FILES += \
366 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
367 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
368
369PRODUCT_PACKAGES += libbt-vendor
370
371endif
372
373################################################################################## bcm43241
374ifeq ($(BLUETOOTH_MODULE),bcm43241)
375
376BOARD_HAVE_BLUETOOTH_BROADCOM := true
377
378PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_usi/config/43241/BCM4324B3_USI_WM-BAN-BM-10.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm4324b3.hcd
379
380PRODUCT_COPY_FILES += \
381 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
382 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
383
384PRODUCT_PACKAGES += libbt-vendor
385
386endif
387
388################################################################################## mt6622
389ifeq ($(BLUETOOTH_MODULE),mt6622)
390BOARD_HAVE_BLUETOOTH_MTK := true
391PRODUCT_PACKAGES += libbluetooth_mtk \
392 MTK_MT6622_E2_Patch.nb0
393ifneq ($(wildcard $(TARGET_PRODUCT_DIR)/bluetooth),)
394BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(TARGET_PRODUCT_DIR)/bluetooth
395endif
396endif
397################################################################################## rtl8723bs,rtl8761
398#ifeq ($(BLUETOOTH_MODULE),rtl8723bs)
399ifneq ($(filter rtl8761 rtl8723bs rtl8723bu rtl8821 rtl8822bu, $(BLUETOOTH_MODULE)),)
400
401BLUETOOTH_USR_RTK_BLUEDROID := true
402#Realtek add start
403$(call inherit-product, hardware/realtek/bluetooth/rtkbt/rtkbt.mk )
404#realtek add end
405PRODUCT_PACKAGES += libbt-vendor
406
407#Realtek add start
408PRODUCT_COPY_FILES += \
409 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
410 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
411#realtek add end
412endif
413
414################################################################################## qca9377
415ifeq ($(BLUETOOTH_MODULE),qca9377)
416BOARD_HAVE_BLUETOOTH_QCOM := true
417BOARD_HAS_QCA_BT_ROME := true
418BOARD_HAVE_BLUETOOTH_BLUEZ := false
419QCOM_BT_USE_SIBS := false
420
421
422PRODUCT_COPY_FILES += \
423 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
424 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
425 hardware/amlogic/wifi/qcom/config/qca9377/bt/nvm_tlv_tf_1.1.bin:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/qca9377/ar3k/nvm_tlv_tf_1.1.bin \
426 hardware/amlogic/wifi/qcom/config/qca9377/bt/rampatch_tlv_tf_1.1.tlv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/qca9377/ar3k/rampatch_tlv_tf_1.1.tlv
427
428PRODUCT_PROPERTY_OVERRIDES += poweroff.doubleclick=1
429PRODUCT_PROPERTY_OVERRIDES += qcom.bluetooth.soc=rome_uart
430#PRODUCT_PROPERTY_OVERRIDES += bt.qcom9377.power=off
431
432endif
433
434################################################################################## qca6174
435ifeq ($(BLUETOOTH_MODULE),qca6174)
436BOARD_HAVE_BLUETOOTH_QCOM := true
437
438PRODUCT_COPY_FILES += \
439 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
440 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
441 hardware/amlogic/wifi/qcom/config/qca6174/bt/nvm_tlv_3.2.bin:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/qca6174/ar3k/nvm_tlv_3.2.bin \
442 hardware/amlogic/wifi/qcom/config/qca6174/bt/rampatch_tlv_3.2.tlv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/qca6174/ar3k/rampatch_tlv_3.2.tlv
443
444PRODUCT_PROPERTY_OVERRIDES += wc_transport.soc_initialized=0
445
446PRODUCT_PACKAGES += libbt-vendor
447endif
448
449##################################################################################multi_bt
450ifeq ($(MULTI_BLUETOOTH_SUPPORT), true)
451
452BOARD_HAVE_BLUETOOTH_BROADCOM := true
453#BOARD_HAVE_BLUETOOTH_RTK := true
454PRODUCT_PACKAGES += \
455 libbt-vendor
456# libbt-vendor-rtl-uart \
457# libbt-vendor-rtl-usb
458
459PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6210/BT/bcm20710a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM20702.hcd
460PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6476/GPS/bcm2076b1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM2076.hcd
461PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6330/BT/bcm40183b2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4330.hcd
462PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/62x2/BT/bcm43241b4.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43241b4.hcd
463PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6335/BT/bcm4335c0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm4335c0.hcd
464PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6441/BT/bcm43341b0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43341b0.hcd
465PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6212/BT/bcm43438a0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/4343.hcd
466PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4354/bcm4354a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4350.hcd
467PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4356/bcm4356a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4354.hcd
468PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6255/BT/BCM4345C0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4345C0.hcd
469PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6269/BT/bcm43569a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43569a2.hcd
470#$(call inherit-product, hardware/realtek/bluetooth/firmware/uart/rtlbtfw_cfg.mk )
471#$(call inherit-product, hardware/realtek/bluetooth/firmware/usb/rtl8723b/device-rtl.mk)
472#$(call inherit-product, hardware/realtek/bluetooth/firmware/usb/rtl8761a/device-rtl.mk)
473
474PRODUCT_COPY_FILES += \
475 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
476 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
477endif
478