beast: Configure Realtek Bluetooth/Wi-Fi HALs
authorAaron Kling <webgeek1234@gmail.com>
Thu, 1 Jul 2021 00:19:40 +0000 (19:19 -0500)
committerNolen Johnson <johnsonnolen@gmail.com>
Sat, 21 May 2022 03:55:57 +0000 (23:55 -0400)
* We're not unifying things, and the stock MultiHAL requires
  framework side magic, so we're going with the hardware/realtek
  solution.

* Set Bluetooth overlays based on stock.

Change-Id: Ie8e0f2d2a5f1cb8337ebe88b903fb18a71602f18

Android.mk [new file with mode: 0644]
BoardConfig.mk
device.mk
lineage.dependencies
overlay/packages/apps/Bluetooth/res/values/config.xml [new file with mode: 0644]

diff --git a/Android.mk b/Android.mk
new file mode 100644 (file)
index 0000000..fc1851e
--- /dev/null
@@ -0,0 +1,13 @@
+#
+# Copyright (C) 2021 The LineageOS Project
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+
+ifeq ($(TARGET_DEVICE), beast)
+
+LOCAL_PATH := $(call my-dir)
+include $(call all-makefiles-under,$(LOCAL_PATH))
+
+include external/wpa_supplicant_8/wpa_supplicant/wpa_supplicant_conf.mk
+endif
index 31a7b1a018d75bb1bcc1a64771ba220b9482bd52..cb902c2cde4b2e465ad6fa94b0b8b2ecd197edb4 100644 (file)
@@ -13,3 +13,12 @@ TARGET_BOOTLOADER_BOARD_NAME := Beast
 
 ## DTB
 TARGET_DTB_NAME := gxl_sei210_2g
+
+## Wi-Fi
+BOARD_WLAN_DEVICE := realtek
+BOARD_WPA_SUPPLICANT_DRIVER := NL80211
+WPA_SUPPLICANT_VERSION := VER_0_8_X
+BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_rtl
+BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_rtl
+WIFI_DRIVER_SOCKET_IFACE := wlan0
+PRODUCT_CFI_INCLUDE_PATHS += hardware/realtek/wlan/wpa_supplicant_8_lib
index 95a6d1570dcbd5a849b822fbcbc90efd35c96554..8d6dc1be4518d90d9db68ca261cc6c46fe60d2dd 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -10,9 +10,17 @@ $(call inherit-product, vendor/google/beast/beast-vendor.mk)
 
 $(call inherit-product, device/amlogic/gx-common/gx.mk)
 
+## Bluetooth
+BOARD_HAVE_BLUETOOTH_RTK_TV := true
+include hardware/realtek/rtkbt/rtkbt.mk
+
 ## Kernel Modules
 PRODUCT_PACKAGES += \
     8822bs
 
+## Overlays
+DEVICE_PACKAGE_OVERLAYS += \
+    $(DEVICE_PATH)/overlay
+
 ## Platform
 TARGET_AMLOGIC_SOC := gxl
index 5ab7fe1f549c996aa349f495b418f31a6dddc2c3..fb9be9ff6517e5b89346d6154f1fbec02f3e50d0 100644 (file)
@@ -6,5 +6,9 @@
   {
     "repository": "android_hardware_amlogic_kernel-modules_rtl8822bs",
     "target_path": "hardware/amlogic/kernel-modules/rtl8822bs"
+  },
+  {
+    "repository": "android_hardware_realtek",
+    "target_path": "hardware/realtek"
   }
 ]
diff --git a/overlay/packages/apps/Bluetooth/res/values/config.xml b/overlay/packages/apps/Bluetooth/res/values/config.xml
new file mode 100644 (file)
index 0000000..0d9c979
--- /dev/null
@@ -0,0 +1,8 @@
+<resources>
+    <bool name="profile_supported_opp">false</bool>
+    <bool name="profile_supported_hdp">false</bool>
+    <bool name="profile_supported_hs_hfp">false</bool>
+    <bool name="profile_supported_pbap">false</bool>
+    <bool name="pbap_include_photos_in_vcard">false</bool>
+    <bool name="enable_phone_policy">false</bool>
+</resources>