From 0608b426379ec8af5c4237fd45aab48621d85655 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Sat, 17 Jul 2021 13:18:30 +0200 Subject: [PATCH] m5: Build rtk_btusb module Change-Id: Ide403ef266be6f55fbb8b956bb77b598d84430ce --- device.mk | 3 ++- init-files/init.amlogic.wifi_buildin.rc | 1 + lineage.dependencies | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/device.mk b/device.mk index 5cd67a9..637462f 100644 --- a/device.mk +++ b/device.mk @@ -22,7 +22,8 @@ PRODUCT_COPY_FILES += \ ## Kernel Modules PRODUCT_PACKAGES += \ - 8822cs + 8822cs \ + rtk_btusb ## Overlays DEVICE_PACKAGE_OVERLAYS += \ diff --git a/init-files/init.amlogic.wifi_buildin.rc b/init-files/init.amlogic.wifi_buildin.rc index 0c9190e..810ad07 100644 --- a/init-files/init.amlogic.wifi_buildin.rc +++ b/init-files/init.amlogic.wifi_buildin.rc @@ -1,2 +1,3 @@ on boot + insmod /vendor/lib/modules/rtk_btusb.ko insmod /vendor/lib/modules/8822cs.ko rtw_country_code=US ifname=wlan0 if2name=p2p0 diff --git a/lineage.dependencies b/lineage.dependencies index 3abebda..a2a6823 100644 --- a/lineage.dependencies +++ b/lineage.dependencies @@ -3,6 +3,10 @@ "repository": "android_device_amlogic_g12-common", "target_path": "device/amlogic/g12-common" }, + { + "repository": "android_hardware_amlogic_kernel-modules_rtk_btusb" + "target_path": "hardware/amlogic/kernel-modules/rtk_btusb" + }, { "repository": "android_hardware_amlogic_kernel-modules_rtl8822cs" "target_path": "hardware/amlogic/kernel-modules/rtl8822cs" -- 2.20.1