btlinux: Enable Bluetooth

BT mouse works. Can be paired with external BT
speakers too but Audio doesn't work.

Based on John's fix for enabling BT on db845c
https://android-review.googlesource.com/c/device/linaro/dragonboard/+/1223472

Verified on db845c GKI images downloaded from
https://ci.android.com/builds/submitted/6175498/kernel_db845c/latest/

And upstream BT QCA firmware files copied from
https://android.googlesource.com/device/linaro/dragonboard/+/6fb3857ed36b01d50158b09751eef7e08da34b49

Signed-off-by: Amit Pundir <pundiramit@gmail.com>
diff --git a/aosp_beryllium.mk b/aosp_beryllium.mk
index 4980f6e..b56bc69 100644
--- a/aosp_beryllium.mk
+++ b/aosp_beryllium.mk
@@ -1,15 +1,20 @@
 DB845C_KERNEL_DIR := device/linaro/dragonboard-kernel/android-5.4
-LOCAL_KERNEL_DIR := device/xiaomi/beryllium/prebuilt-kernel/android-5.4
-
 DB845C_MODS := $(wildcard $(DB845C_KERNEL_DIR)/*.ko)
+
 # Local modules are built from following tree:
 # https://github.com/pundiramit/linux/tree/android-5.4-modules
+LOCAL_KERNEL_DIR := device/xiaomi/beryllium/prebuilt-kernel/android-5.4
 LOCAL_MODS := $(wildcard $(LOCAL_KERNEL_DIR)/*.ko)
-BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(DB845C_MODS)
+
 # Skip copying modules broken on android-5.4
 # Use local module copy instead
-SKIP_MODS := %/msm.ko
-BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(SKIP_MODS),$(DB845C_MODS))
+DB845C_SKIP_MODS := %/msm.ko
+
+# BT modules go to vendor partition
+DB845C_ONLY_VENDOR := %/btqca.ko %/hci_uart.ko
+BOARD_VENDOR_KERNEL_MODULES := $(filter $(DB845C_ONLY_VENDOR),$(DB845C_MODS))
+
+BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(DB845C_SKIP_MODS) $(DB845C_ONLY_VENDOR),$(DB845C_MODS))
 BOARD_VENDOR_RAMDISK_KERNEL_MODULES += $(LOCAL_MODS)
 
 # Inherit the full_base and device configurations