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 | |
20 | ifeq ($(BOARD_HAVE_BLUETOOTH),false) |
21 | BLUETOOTH_MODULE := |
22 | endif |
23 | |
24 | ifeq ($(MULTI_BLUETOOTH_SUPPORT), true) |
25 | BOARD_HAVE_BLUETOOTH := true |
26 | PRODUCT_PROPERTY_OVERRIDES += \ |
27 | config.disable_bluetooth=false |
28 | else |
29 | ifeq ($(BLUETOOTH_MODULE),) |
30 | BOARD_HAVE_BLUETOOTH := false |
31 | PRODUCT_PROPERTY_OVERRIDES += \ |
32 | config.disable_bluetooth=true |
33 | else |
34 | BOARD_HAVE_BLUETOOTH := true |
35 | PRODUCT_PROPERTY_OVERRIDES += \ |
36 | config.disable_bluetooth=false |
37 | endif |
38 | endif |
39 | |
40 | ifeq ($(BOARD_HAVE_BLUETOOTH),true) |
41 | PRODUCT_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 | |
54 | PRODUCT_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 | |
58 | ifneq ($(wildcard device/amlogic/$(TARGET_PRODUCT)/bluetooth),) |
59 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/amlogic/$(TARGET_PRODUCT)/bluetooth |
60 | endif |
61 | |
62 | endif |
63 | |
64 | ################################################################################## bcm40183 |
65 | ifeq ($(BLUETOOTH_MODULE),bcm40183) |
66 | |
67 | BOARD_HAVE_BLUETOOTH_BCM := true |
68 | |
69 | PRODUCT_COPY_FILES += device/amlogic/common/tools/BCM40183B2_26M.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4330.hcd |
70 | |
71 | PRODUCT_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 | |
75 | PRODUCT_PACKAGES += libbt-vendor |
76 | |
77 | ifeq ($(BLUETOOTH_USE_BPLUS), true) |
78 | ifeq ($(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 |
80 | else |
81 | PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf |
82 | endif |
83 | endif |
84 | endif |
85 | |
86 | ################################################################################## AP6269 |
87 | ifeq ($(BLUETOOTH_MODULE),AP6269) |
88 | |
89 | BOARD_HAVE_BLUETOOTH_BCM := true |
90 | BCM_USB_BT := true |
91 | |
92 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6269/BT/bcm43569a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43569a2.hcd |
93 | |
94 | PRODUCT_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 | |
98 | PRODUCT_PACKAGES += libbt-vendor |
99 | |
100 | endif |
101 | |
102 | ################################################################################## AP62x8 |
103 | ifeq ($(BLUETOOTH_MODULE),AP62x8) |
104 | |
105 | BOARD_HAVE_BLUETOOTH_BCM := true |
106 | BCM_USB_BT := true |
107 | BCM_USB_WAKEUP := true |
108 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP62x8/bcm43569a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43569a2.hcd |
109 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP62x8/rc.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/rc.conf |
110 | |
111 | PRODUCT_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 | |
115 | PRODUCT_PACKAGES += libbt-vendor |
116 | |
117 | endif |
118 | |
119 | ################################################################################## AP6242 |
120 | ifeq ($(BLUETOOTH_MODULE),AP6242) |
121 | |
122 | BOARD_HAVE_BLUETOOTH_BCM := true |
123 | BCM_USB_BT := true |
124 | |
125 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6242/BT/bcm43242a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43242a1.hcd |
126 | |
127 | PRODUCT_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 | |
131 | PRODUCT_PACKAGES += libbt-vendor |
132 | |
133 | endif |
134 | |
135 | ################################################################################## AP6210 |
136 | ifeq ($(BLUETOOTH_MODULE),AP6210) |
137 | |
138 | BOARD_HAVE_BLUETOOTH_BCM := true |
139 | |
140 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6210/BT/bcm20710a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM20702.hcd |
141 | |
142 | PRODUCT_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 | |
146 | PRODUCT_PACKAGES += libbt-vendor |
147 | |
148 | ifeq ($(BLUETOOTH_USE_BPLUS), true) |
149 | ifeq ($(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 |
151 | else |
152 | PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_AP6210.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf |
153 | endif |
154 | endif |
155 | endif |
156 | ################################################################################## AP6476 |
157 | ifeq ($(BLUETOOTH_MODULE),AP6476) |
158 | |
159 | BOARD_HAVE_BLUETOOTH_BCM := true |
160 | |
161 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6476/GPS/bcm2076b1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM2076.hcd |
162 | |
163 | PRODUCT_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 | |
167 | PRODUCT_PACKAGES += libbt-vendor |
168 | |
169 | ifeq ($(BLUETOOTH_USE_BPLUS), true) |
170 | ifeq ($(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 |
172 | else |
173 | PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor_AP6476.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf |
174 | endif |
175 | endif |
176 | PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_stack.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_stack.conf |
177 | endif |
178 | ################################################################################## AP6330 |
179 | ifeq ($(BLUETOOTH_MODULE),AP6330) |
180 | |
181 | BOARD_HAVE_BLUETOOTH_BCM := true |
182 | |
183 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6330/BT/bcm40183b2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4330.hcd |
184 | |
185 | PRODUCT_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 | |
189 | PRODUCT_PACKAGES += libbt-vendor |
190 | |
191 | ifeq ($(BLUETOOTH_USE_BPLUS), true) |
192 | ifeq ($(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 |
194 | else |
195 | PRODUCT_COPY_FILES += device/amlogic/common/bplus/bt_vendor.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor.conf |
196 | endif |
197 | endif |
198 | endif |
199 | |
200 | ifeq ($(BLUETOOTH_USE_BPLUS), true) |
201 | # BPlus |
202 | PRODUCT_COPY_FILES += \ |
203 | device/amlogic/common/bplus/bplus.default.so:$(TARGET_COPY_OUT_VENDOR)/lib/hw/bplus.default.so |
204 | |
205 | PRODUCT_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 | |
209 | PRODUCT_PACKAGES += libbt_cust \ |
210 | leexplorer |
211 | endif |
212 | |
213 | ################################################################################## AP62x2 |
214 | ifeq ($(BLUETOOTH_MODULE),AP62x2) |
215 | |
216 | BOARD_HAVE_BLUETOOTH_BCM := true |
217 | |
218 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/62x2/BT/bcm43241b4.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43241b4.hcd |
219 | |
220 | PRODUCT_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 | |
224 | PRODUCT_PACKAGES += libbt-vendor |
225 | |
226 | endif |
227 | ################################################################################## AP6335 |
228 | ifeq ($(BLUETOOTH_MODULE),AP6335) |
229 | |
230 | BOARD_HAVE_BLUETOOTH_BCM := true |
231 | |
232 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6335/BT/bcm4335c0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm4335c0.hcd |
233 | |
234 | PRODUCT_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 | |
238 | PRODUCT_PACKAGES += libbt-vendor |
239 | |
240 | endif |
241 | ################################################################################## AP6441 |
242 | ifeq ($(BLUETOOTH_MODULE),AP6441) |
243 | |
244 | BOARD_HAVE_BLUETOOTH_BCM := true |
245 | |
246 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6441/BT/bcm43341b0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43341b0.hcd |
247 | |
248 | PRODUCT_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 | |
252 | PRODUCT_PACKAGES += libbt-vendor |
253 | |
254 | endif |
255 | ################################################################################## AP6441 |
256 | ifeq ($(BLUETOOTH_MODULE),AP6234) |
257 | |
258 | BOARD_HAVE_BLUETOOTH_BCM := true |
259 | |
260 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6234/BT/bcm43341b0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43341b0.hcd |
261 | |
262 | PRODUCT_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 | |
266 | PRODUCT_COPY_FILES += \ |
267 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml |
268 | |
269 | PRODUCT_PACKAGES += libbt-vendor |
270 | |
271 | endif |
272 | ################################################################################## AP6212 |
273 | ifeq ($(BLUETOOTH_MODULE),AP6212) |
274 | |
275 | BOARD_HAVE_BLUETOOTH_BCM := true |
276 | |
277 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6212/BT/bcm43438a0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/4343.hcd |
278 | |
279 | PRODUCT_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 | |
283 | PRODUCT_PACKAGES += libbt-vendor |
284 | |
285 | PRODUCT_COPY_FILES += \ |
286 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml |
287 | endif |
288 | |
289 | ################################################################################## AP6354 |
290 | ifeq ($(BLUETOOTH_MODULE),AP6354) |
291 | |
292 | BOARD_HAVE_BLUETOOTH_BCM := true |
293 | |
294 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4354/bcm4354a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4350.hcd |
295 | |
296 | PRODUCT_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 | |
300 | PRODUCT_PACKAGES += libbt-vendor |
301 | |
302 | endif |
303 | |
304 | |
305 | ################################################################################## AP6255 |
306 | ifeq ($(BLUETOOTH_MODULE),AP6255) |
307 | |
308 | BOARD_HAVE_BLUETOOTH_BCM := true |
309 | |
310 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6255/BT/BCM4345C0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4345C0.hcd |
311 | |
312 | PRODUCT_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 | |
316 | PRODUCT_PACKAGES += libbt-vendor |
317 | |
318 | endif |
319 | |
320 | |
321 | ################################################################################## bcm4356 |
322 | ifeq ($(BLUETOOTH_MODULE),bcm4356) |
323 | |
324 | BOARD_HAVE_BLUETOOTH_BCM := true |
325 | |
326 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4356/bcm4356a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4354.hcd |
327 | PRODUCT_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 |
330 | PRODUCT_PACKAGES += libbt-vendor |
331 | endif |
332 | |
333 | ################################################################################## bcm4358 |
334 | ifeq ($(BLUETOOTH_MODULE),bcm4358) |
335 | |
336 | BOARD_HAVE_BLUETOOTH_BCM := true |
337 | |
338 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4358/BT/BCM4358A3.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4358A3.hcd |
339 | PRODUCT_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 |
342 | PRODUCT_PACKAGES += libbt-vendor |
343 | endif |
344 | |
345 | |
346 | ################################################################################## bcm43458 |
347 | ifeq ($(BLUETOOTH_MODULE),bcm43458) |
348 | |
349 | BOARD_HAVE_BLUETOOTH_BCM := true |
350 | |
351 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/43458/BCM4345C0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4345.hcd |
352 | PRODUCT_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 |
355 | PRODUCT_PACKAGES += libbt-vendor |
356 | endif |
357 | ################################################################################## bcm43341 |
358 | ifeq ($(BLUETOOTH_MODULE),bcm43341) |
359 | |
360 | BOARD_HAVE_BLUETOOTH_BCM := true |
361 | |
362 | PRODUCT_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 | |
364 | PRODUCT_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 | |
368 | PRODUCT_PACKAGES += libbt-vendor |
369 | |
370 | endif |
371 | |
372 | ################################################################################## bcm43241 |
373 | ifeq ($(BLUETOOTH_MODULE),bcm43241) |
374 | |
375 | BOARD_HAVE_BLUETOOTH_BCM := true |
376 | |
377 | PRODUCT_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 | |
379 | PRODUCT_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 | |
383 | PRODUCT_PACKAGES += libbt-vendor |
384 | |
385 | endif |
386 | |
387 | ################################################################################## mt6622 |
388 | ifeq ($(BLUETOOTH_MODULE),mt6622) |
389 | BOARD_HAVE_BLUETOOTH_MTK := true |
390 | PRODUCT_PACKAGES += libbluetooth_mtk \ |
391 | MTK_MT6622_E2_Patch.nb0 |
392 | ifneq ($(wildcard $(TARGET_PRODUCT_DIR)/bluetooth),) |
393 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(TARGET_PRODUCT_DIR)/bluetooth |
394 | endif |
395 | endif |
396 | ################################################################################## rtl8723bs,rtl8761 |
397 | #ifeq ($(BLUETOOTH_MODULE),rtl8723bs) |
398 | ifneq ($(filter rtl8761 rtl8723bs rtl8723bu rtl8821 rtl8822bu, $(BLUETOOTH_MODULE)),) |
399 | |
400 | BLUETOOTH_USR_RTK_BLUEDROID := true |
401 | #Realtek add start |
402 | $(call inherit-product, hardware/realtek/bluetooth/rtkbt/rtkbt.mk ) |
403 | #realtek add end |
404 | PRODUCT_PACKAGES += libbt-vendor |
405 | |
406 | #Realtek add start |
407 | PRODUCT_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 |
411 | endif |
412 | |
413 | ################################################################################## qca9377 |
414 | ifeq ($(BLUETOOTH_MODULE),qca9377) |
415 | BOARD_HAVE_BLUETOOTH_QCOM := true |
416 | BOARD_HAS_QCA_BT_ROME := true |
417 | BOARD_HAVE_BLUETOOTH_BLUEZ := false |
418 | QCOM_BT_USE_SIBS := false |
419 | |
420 | |
421 | PRODUCT_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 | |
427 | PRODUCT_PROPERTY_OVERRIDES += poweroff.doubleclick=1 |
428 | PRODUCT_PROPERTY_OVERRIDES += qcom.bluetooth.soc=rome_uart |
429 | #PRODUCT_PROPERTY_OVERRIDES += bt.qcom9377.power=off |
430 | |
431 | endif |
432 | |
433 | ################################################################################## qca6174 |
434 | ifeq ($(BLUETOOTH_MODULE),qca6174) |
435 | BOARD_HAVE_BLUETOOTH_QCOM := true |
436 | |
437 | PRODUCT_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 | |
443 | PRODUCT_PROPERTY_OVERRIDES += wc_transport.soc_initialized=0 |
444 | |
445 | PRODUCT_PACKAGES += libbt-vendor |
446 | endif |
447 | |
448 | ##################################################################################multi_bt |
449 | ifeq ($(MULTI_BLUETOOTH_SUPPORT), true) |
450 | |
451 | BOARD_HAVE_BLUETOOTH_BCM := true |
452 | #BOARD_HAVE_BLUETOOTH_RTK := true |
453 | PRODUCT_PACKAGES += \ |
454 | libbt-vendor |
455 | # libbt-vendor-rtl-uart \ |
456 | # libbt-vendor-rtl-usb |
457 | |
458 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6210/BT/bcm20710a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM20702.hcd |
459 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6476/GPS/bcm2076b1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM2076.hcd |
460 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/AP6330/BT/bcm40183b2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4330.hcd |
461 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/62x2/BT/bcm43241b4.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43241b4.hcd |
462 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6335/BT/bcm4335c0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm4335c0.hcd |
463 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6441/BT/bcm43341b0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bcm43341b0.hcd |
464 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6212/BT/bcm43438a0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/4343.hcd |
465 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4354/bcm4354a1.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4350.hcd |
466 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/4356/bcm4356a2.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4354.hcd |
467 | PRODUCT_COPY_FILES += hardware/amlogic/wifi/bcm_ampak/config/6255/BT/BCM4345C0.hcd:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/BCM4345C0.hcd |
468 | PRODUCT_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 | |
473 | PRODUCT_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 |
476 | endif |
477 |