summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffy Chen <jeffy.chen@rock-chips.com>2016-01-28 16:09:51 +0800
committerleozwang <leozwang@google.com>2016-02-06 16:39:02 -0800
commita917b522b035c224b5b205eca68496cd9cc02df4 (patch)
treef9294a008bd14b3dcac69d53c4804ebadb2022d2
parent83c3518e58a77a719d58102ee3d5123615ee1660 (diff)
downloadkylin-a917b522b035c224b5b205eca68496cd9cc02df4.tar.gz
Build bt peripheral
Depands on hardware/bsp bt peripheral & vendor bt firmware. Bug: 26807594 Change-Id: I191c93754f8bbdba4279fb3fd7899c907af7aa8c Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
-rw-r--r--base_product/kylin.mk5
-rw-r--r--sepolicy/file_contexts4
-rw-r--r--ueventd.rk3036.rc3
3 files changed, 11 insertions, 1 deletions
diff --git a/base_product/kylin.mk b/base_product/kylin.mk
index 75c936d..200fb18 100644
--- a/base_product/kylin.mk
+++ b/base_product/kylin.mk
@@ -30,6 +30,9 @@ soc_name := rk3036
# Add audio support
$(call add_peripheral, rockchip, audio/generic)
+# Add bt controller
+USE_BLUETOOTH_BCM4343 := true
+$(call add_peripheral, rockchip, bluetooth/ap6212)
# Add wifi controller
$(call add_peripheral, rockchip, wifi/ap6212)
@@ -39,11 +42,13 @@ PRODUCT_COPY_FILES += \
system/core/rootdir/init.usb.configfs.rc:root/init.usb.configfs.rc \
device/rockchip/kylin/init.usb.rk3036.rc:root/init.usb.rk3036.rc \
system/core/rootdir/ueventd.rc:root/ueventd.rc \
+ device/rockchip/kylin/ueventd.rk3036.rc:root/ueventd.rk3036.rc \
device/rockchip/kylin/fstab:root/fstab.${soc_name} \
device/rockchip/kylin/provision-device:provision-device
DEVICE_PACKAGES += \
lights.$(TARGET_BOARD_PLATFORM) \
+ bt_bcm_ap6212 \
bootctrl.$(TARGET_BOARD_PLATFORM)
# Default Keystore HAL
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 1e5469a..157ee2e 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -1,5 +1,7 @@
+# Bluetooth
+/dev/ttyS0 u:object_r:bluetoothtbd_device:s0
# Serial console
-/dev/ttyS2 u:object_r:console_device:s0
+/dev/ttyS2 u:object_r:console_device:s0
# Emmc device
/dev/block/mmcblk0 u:object_r:mmc_block_device:s0
/dev/block/mmcblk0p[0-9]+ u:object_r:mmc_block_device:s0
diff --git a/ueventd.rk3036.rc b/ueventd.rk3036.rc
new file mode 100644
index 0000000..4ea5db6
--- /dev/null
+++ b/ueventd.rk3036.rc
@@ -0,0 +1,3 @@
+# Device needed by shared transport layer
+/dev/rfkill 0660 bluetooth bluetooth
+/dev/ttyS0 0660 bluetooth net_bt_stack