summaryrefslogtreecommitdiff
path: root/common/bluetooth.mk (plain)
blob: 0c63970d47445091c8d9667724751f8490a5bc37
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 android.hardware.bluetooth@1.0-impl \
52 com.broadcom.bt.xml
53
54PRODUCT_COPY_FILES += \
55 hardware/amlogic/libbt/data/auto_pairing.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/auto_pairing.conf \
56 hardware/amlogic/libbt/data/blacklist.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/blacklist.conf
57
58ifneq ($(wildcard device/amlogic/$(TARGET_PRODUCT)/bluetooth),)
59BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/amlogic/$(TARGET_PRODUCT)/bluetooth
60endif
61
62endif
63
64################################################################################## bcm40183
65ifeq ($(BLUETOOTH_MODULE),bcm40183)
66
67BOARD_HAVE_BLUETOOTH_BCM := true
68
69PRODUCT_COPY_FILES += device/amlogic/common/tools/BCM40183B2_26M.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4330.hcd
70
71PRODUCT_COPY_FILES += \
72 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
73 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
74
75PRODUCT_PACKAGES += libbt-vendor
76
77ifeq ($(BLUETOOTH_USE_BPLUS), true)
78ifeq ($(BCM_BLUETOOTH_LPM_ENABLE), true)
79 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_lpm.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
80else
81 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
82endif
83endif
84endif
85
86################################################################################## AP6269
87ifeq ($(BLUETOOTH_MODULE),AP6269)
88
89BOARD_HAVE_BLUETOOTH_BCM := true
90BCM_USB_BT := true
91
92PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6269/BT/bcm43569a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43569a2.hcd
93
94PRODUCT_COPY_FILES += \
95 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
96 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
97
98PRODUCT_PACKAGES += libbt-vendor
99
100endif
101
102################################################################################## AP62x8
103ifeq ($(BLUETOOTH_MODULE),AP62x8)
104
105BOARD_HAVE_BLUETOOTH_BCM := true
106BCM_USB_BT := true
107BCM_USB_WAKEUP := true
108PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP62x8/bcm43569a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43569a2.hcd
109PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP62x8/rc.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/rc.conf
110
111PRODUCT_COPY_FILES += \
112 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
113 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
114
115PRODUCT_PACKAGES += libbt-vendor
116
117endif
118
119################################################################################## AP6242
120ifeq ($(BLUETOOTH_MODULE),AP6242)
121
122BOARD_HAVE_BLUETOOTH_BCM := true
123BCM_USB_BT := true
124
125PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6242/BT/bcm43242a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43242a1.hcd
126
127PRODUCT_COPY_FILES += \
128 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
129 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
130
131PRODUCT_PACKAGES += libbt-vendor
132
133endif
134
135################################################################################## AP6210
136ifeq ($(BLUETOOTH_MODULE),AP6210)
137
138BOARD_HAVE_BLUETOOTH_BCM := true
139
140PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6210/BT/bcm20710a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM20702.hcd
141
142PRODUCT_COPY_FILES += \
143 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
144 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
145
146PRODUCT_PACKAGES += libbt-vendor
147
148ifeq ($(BLUETOOTH_USE_BPLUS), true)
149ifeq ($(BCM_BLUETOOTH_LPM_ENABLE), true)
150 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_AP6210_lpm.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
151else
152 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_AP6210.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
153endif
154endif
155endif
156################################################################################## AP6476
157ifeq ($(BLUETOOTH_MODULE),AP6476)
158
159BOARD_HAVE_BLUETOOTH_BCM := true
160
161PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6476/GPS/bcm2076b1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM2076.hcd
162
163PRODUCT_COPY_FILES += \
164 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
165 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
166
167PRODUCT_PACKAGES += libbt-vendor
168
169ifeq ($(BLUETOOTH_USE_BPLUS), true)
170ifeq ($(BCM_BLUETOOTH_LPM_ENABLE), true)
171 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_AP6476_lpm.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
172else
173 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_AP6476.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
174endif
175endif
176 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_stack.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_stack.conf
177endif
178################################################################################## AP6330
179ifeq ($(BLUETOOTH_MODULE),AP6330)
180
181BOARD_HAVE_BLUETOOTH_BCM := true
182
183PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6330/BT/bcm40183b2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4330.hcd
184
185PRODUCT_COPY_FILES += \
186 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
187 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
188
189PRODUCT_PACKAGES += libbt-vendor
190
191ifeq ($(BLUETOOTH_USE_BPLUS), true)
192ifeq ($(BCM_BLUETOOTH_LPM_ENABLE), true)
193 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_lpm.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
194else
195 PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf
196endif
197endif
198endif
199
200ifeq ($(BLUETOOTH_USE_BPLUS), true)
201# BPlus
202PRODUCT_COPY_FILES += \
203 device/amlogic/common/bplus/bplus.default.so:$(TARGET_COPY_OUT_VENDOR)/lib/hw/bplus.default.so
204
205PRODUCT_COPY_FILES += \
206 device/amlogic/common/bplus/iop_bt.db:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/iop_bt.db \
207 device/amlogic/common/bplus/bt_did.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_did.conf
208
209PRODUCT_PACKAGES += libbt_cust \
210 leexplorer
211endif
212
213################################################################################## AP62x2
214ifeq ($(BLUETOOTH_MODULE),AP62x2)
215
216BOARD_HAVE_BLUETOOTH_BCM := true
217
218PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/62x2/BT/bcm43241b4.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43241b4.hcd
219
220PRODUCT_COPY_FILES += \
221 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
222 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
223
224PRODUCT_PACKAGES += libbt-vendor
225
226endif
227################################################################################## AP6335
228ifeq ($(BLUETOOTH_MODULE),AP6335)
229
230BOARD_HAVE_BLUETOOTH_BCM := true
231
232PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6335/BT/bcm4335c0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm4335c0.hcd
233
234PRODUCT_COPY_FILES += \
235 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
236 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
237
238PRODUCT_PACKAGES += libbt-vendor
239
240endif
241################################################################################## AP6441
242ifeq ($(BLUETOOTH_MODULE),AP6441)
243
244BOARD_HAVE_BLUETOOTH_BCM := true
245
246PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6441/BT/bcm43341b0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43341b0.hcd
247
248PRODUCT_COPY_FILES += \
249 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
250 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
251
252PRODUCT_PACKAGES += libbt-vendor
253
254endif
255################################################################################## AP6441
256ifeq ($(BLUETOOTH_MODULE),AP6234)
257
258BOARD_HAVE_BLUETOOTH_BCM := true
259
260PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6234/BT/bcm43341b0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43341b0.hcd
261
262PRODUCT_COPY_FILES += \
263 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
264 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
265
266PRODUCT_COPY_FILES += \
267 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
268
269PRODUCT_PACKAGES += libbt-vendor
270
271endif
272################################################################################## AP6212
273ifeq ($(BLUETOOTH_MODULE),AP6212)
274
275BOARD_HAVE_BLUETOOTH_BCM := true
276
277PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6212/BT/bcm43438a0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/4343.hcd
278
279PRODUCT_COPY_FILES += \
280 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
281 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
282
283PRODUCT_PACKAGES += libbt-vendor
284
285PRODUCT_COPY_FILES += \
286 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
287endif
288
289################################################################################## AP6354
290ifeq ($(BLUETOOTH_MODULE),AP6354)
291
292BOARD_HAVE_BLUETOOTH_BCM := true
293
294PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4354/bcm4354a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4350.hcd
295
296PRODUCT_COPY_FILES += \
297 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
298 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
299
300PRODUCT_PACKAGES += libbt-vendor
301
302endif
303
304
305################################################################################## AP6255
306ifeq ($(BLUETOOTH_MODULE),AP6255)
307
308BOARD_HAVE_BLUETOOTH_BCM := true
309
310PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6255/BT/BCM4345C0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4345C0.hcd
311
312PRODUCT_COPY_FILES += \
313 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
314 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
315
316PRODUCT_PACKAGES += libbt-vendor
317
318endif
319
320
321################################################################################## bcm4356
322ifeq ($(BLUETOOTH_MODULE),bcm4356)
323
324BOARD_HAVE_BLUETOOTH_BCM := true
325
326PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4356/bcm4356a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4354.hcd
327PRODUCT_COPY_FILES += \
328 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
329 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
330PRODUCT_PACKAGES += libbt-vendor
331endif
332
333################################################################################## bcm4358
334ifeq ($(BLUETOOTH_MODULE),bcm4358)
335
336BOARD_HAVE_BLUETOOTH_BCM := true
337
338PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4358/BT/BCM4358A3.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4358A3.hcd
339PRODUCT_COPY_FILES += \
340 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
341 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
342PRODUCT_PACKAGES += libbt-vendor
343endif
344
345
346################################################################################## bcm43458
347ifeq ($(BLUETOOTH_MODULE),bcm43458)
348
349BOARD_HAVE_BLUETOOTH_BCM := true
350
351PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/43458/BCM4345C0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4345.hcd
352PRODUCT_COPY_FILES += \
353 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
354 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
355PRODUCT_PACKAGES += libbt-vendor
356endif
357################################################################################## bcm43341
358ifeq ($(BLUETOOTH_MODULE),bcm43341)
359
360BOARD_HAVE_BLUETOOTH_BCM := true
361
362PRODUCT_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
363
364PRODUCT_COPY_FILES += \
365 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
366 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
367
368PRODUCT_PACKAGES += libbt-vendor
369
370endif
371
372################################################################################## bcm43241
373ifeq ($(BLUETOOTH_MODULE),bcm43241)
374
375BOARD_HAVE_BLUETOOTH_BCM := true
376
377PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_usi/config/43241/BCM4324B3_USI_WM-BAN-BM-10.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm4324b3.hcd
378
379PRODUCT_COPY_FILES += \
380 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
381 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
382
383PRODUCT_PACKAGES += libbt-vendor
384
385endif
386
387################################################################################## mt6622
388ifeq ($(BLUETOOTH_MODULE),mt6622)
389BOARD_HAVE_BLUETOOTH_MTK := true
390PRODUCT_PACKAGES += libbluetooth_mtk \
391 MTK_MT6622_E2_Patch.nb0
392ifneq ($(wildcard $(TARGET_PRODUCT_DIR)/bluetooth),)
393BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(TARGET_PRODUCT_DIR)/bluetooth
394endif
395endif
396################################################################################## rtl8723bs,rtl8761
397#ifeq ($(BLUETOOTH_MODULE),rtl8723bs)
398ifneq ($(filter rtl8761 rtl8723bs rtl8723bu rtl8821 rtl8822bu, $(BLUETOOTH_MODULE)),)
399
400BLUETOOTH_USR_RTK_BLUEDROID := true
401#Realtek add start
402$(call inherit-product, hardware/realtek/bluetooth/rtkbt/rtkbt.mk )
403#realtek add end
404PRODUCT_PACKAGES += libbt-vendor
405
406#Realtek add start
407PRODUCT_COPY_FILES += \
408 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
409 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
410#realtek add end
411endif
412
413################################################################################## qca9377
414ifeq ($(BLUETOOTH_MODULE),qca9377)
415BOARD_HAVE_BLUETOOTH_QCOM := true
416BOARD_HAS_QCA_BT_ROME := true
417BOARD_HAVE_BLUETOOTH_BLUEZ := false
418QCOM_BT_USE_SIBS := false
419
420
421PRODUCT_COPY_FILES += \
422 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
423 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
424 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 \
425 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
426
427PRODUCT_PROPERTY_OVERRIDES += poweroff.doubleclick=1
428PRODUCT_PROPERTY_OVERRIDES += qcom.bluetooth.soc=rome_uart
429#PRODUCT_PROPERTY_OVERRIDES += bt.qcom9377.power=off
430
431endif
432
433################################################################################## qca6174
434ifeq ($(BLUETOOTH_MODULE),qca6174)
435BOARD_HAVE_BLUETOOTH_QCOM := true
436
437PRODUCT_COPY_FILES += \
438 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
439 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
440 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 \
441 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
442
443PRODUCT_PROPERTY_OVERRIDES += wc_transport.soc_initialized=0
444
445PRODUCT_PACKAGES += libbt-vendor
446endif
447
448##################################################################################multi_bt
449ifeq ($(MULTI_BLUETOOTH_SUPPORT), true)
450
451BOARD_HAVE_BLUETOOTH_BCM := true
452#BOARD_HAVE_BLUETOOTH_RTK := true
453PRODUCT_PACKAGES += \
454 libbt-vendor
455# libbt-vendor-rtl-uart \
456# libbt-vendor-rtl-usb
457
458PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6210/BT/bcm20710a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM20702.hcd
459PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6476/GPS/bcm2076b1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM2076.hcd
460PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6330/BT/bcm40183b2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4330.hcd
461PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/62x2/BT/bcm43241b4.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43241b4.hcd
462PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6335/BT/bcm4335c0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm4335c0.hcd
463PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6441/BT/bcm43341b0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43341b0.hcd
464PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6212/BT/bcm43438a0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/4343.hcd
465PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4354/bcm4354a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4350.hcd
466PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4356/bcm4356a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4354.hcd
467PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6255/BT/BCM4345C0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4345C0.hcd
468PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6269/BT/bcm43569a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43569a2.hcd
469#$(call inherit-product, hardware/realtek/bluetooth/firmware/uart/rtlbtfw_cfg.mk )
470#$(call inherit-product, hardware/realtek/bluetooth/firmware/usb/rtl8723b/device-rtl.mk)
471#$(call inherit-product, hardware/realtek/bluetooth/firmware/usb/rtl8761a/device-rtl.mk)
472
473PRODUCT_COPY_FILES += \
474 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
475 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
476endif
477