summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2017-07-13 00:11:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-07-13 00:11:24 +0000
commitc9f62d3f91561d1d3e9cb463276ec4ee8ddb6947 (patch)
tree4c967da1a55e7a6515cf029fdfa3cfa34bb76407
parentf1c97cbb8f99d61f374969813c9a7a4470cf1a72 (diff)
parentd497f63071b1f650d6558f69f41a259dcd3b6039 (diff)
downloadhikey-c9f62d3f91561d1d3e9cb463276ec4ee8ddb6947.tar.gz
Merge "hikey: Add HIKEY_USE_LEGACY_TI_BLUETOOTH build option to transition to common bluetooth HAL"
-rw-r--r--BoardConfigCommon.mk1
-rw-r--r--device-common.mk10
-rw-r--r--hikey.mk11
-rw-r--r--hikey960.mk2
4 files changed, 20 insertions, 4 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index bbcb0d81..ff7e9cf1 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -36,6 +36,7 @@ BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_USE_PAN_DISPLAY := true
BOARD_SEPOLICY_DIRS += device/linaro/hikey/sepolicy
+BOARD_SEPOLICY_DIRS += system/bt/vendor_libs/linux/sepolicy
ifeq ($(HOST_OS), linux)
ifeq ($(TARGET_SYSTEMIMAGES_USE_SQUASHFS), true)
diff --git a/device-common.mk b/device-common.mk
index d4aa0da7..a8266369 100644
--- a/device-common.mk
+++ b/device-common.mk
@@ -21,7 +21,7 @@ $(call inherit-product-if-exists, frameworks/native/build/tablet-10in-xhdpi-2048
DEVICE_PACKAGE_OVERLAYS := device/linaro/hikey/overlay
# Add openssh support for remote debugging and job submission
-PRODUCT_PACKAGES += ssh sftp scp sshd ssh-keygen sshd_config start-ssh uim
+PRODUCT_PACKAGES += ssh sftp scp sshd ssh-keygen sshd_config start-ssh
# Add wifi-related packages
PRODUCT_PACKAGES += libwpa_client wpa_supplicant hostapd wificond wifilogd
@@ -41,7 +41,6 @@ PRODUCT_PACKAGES += audio.a2dp.default \
PRODUCT_PACKAGES += \
android.hardware.audio@2.0-impl \
android.hardware.audio.effect@2.0-impl \
- android.hardware.bluetooth@1.0-service.hikey \
android.hardware.broadcastradio@1.0-impl \
android.hardware.soundtrigger@2.0-impl
@@ -55,6 +54,13 @@ PRODUCT_PACKAGES += TIInit_11.8.32.bts \
wl18xx-fw-4.bin \
wl18xx-conf.bin
+
+ifeq ($(HIKEY_USE_LEGACY_TI_BLUETOOTH), true)
+PRODUCT_PACKAGES += android.hardware.bluetooth@1.0-service.hikey uim
+else
+PRODUCT_PACKAGES += android.hardware.bluetooth@1.0-service.btlinux
+endif
+
# PowerHAL
PRODUCT_PACKAGES += android.hardware.power@1.0-impl
diff --git a/hikey.mk b/hikey.mk
index 3174ba47..779ee872 100644
--- a/hikey.mk
+++ b/hikey.mk
@@ -3,10 +3,17 @@ TARGET_KERNEL_USE=4.9
endif
TARGET_PREBUILT_KERNEL := device/linaro/hikey-kernel/Image-dtb-$(TARGET_KERNEL_USE)
TARGET_PREBUILT_DTB := device/linaro/hikey-kernel/hi6220-hikey.dtb-$(TARGET_KERNEL_USE)
+
ifeq ($(TARGET_KERNEL_USE), 3.18)
-TARGET_FSTAB := fstab.hikey-$(TARGET_KERNEL_USE)
+ TARGET_FSTAB := fstab.hikey-$(TARGET_KERNEL_USE)
+ HIKEY_USE_LEGACY_TI_BLUETOOTH := true
else
-TARGET_FSTAB := fstab.hikey
+ ifeq ($(TARGET_KERNEL_USE), 4.4)
+ HIKEY_USE_LEGACY_TI_BLUETOOTH := true
+ else
+ HIKEY_USE_LEGACY_TI_BLUETOOTH := false
+ endif
+ TARGET_FSTAB := fstab.hikey
endif
#
diff --git a/hikey960.mk b/hikey960.mk
index 90d8784d..986048fc 100644
--- a/hikey960.mk
+++ b/hikey960.mk
@@ -1,3 +1,5 @@
+HIKEY_USE_LEGACY_TI_BLUETOOTH := true
+
#
# Inherit the full_base and device configurations
$(call inherit-product, device/linaro/hikey/hikey960/device-hikey960.mk)