wade: Properly build WLAN kernel module
authorBruno Martins <bgcngm@gmail.com>
Sat, 16 Dec 2023 21:54:10 +0000 (21:54 +0000)
committerBruno Martins <bgcngm@gmail.com>
Sun, 21 Jul 2024 13:46:10 +0000 (14:46 +0100)
Change-Id: I1b02fd710c43ef66025d5d395728785c0ce3ddbe

BoardConfig.mk
device.mk
lineage.dependencies

index e4b956d91e49dd64893eb7ee5c763be7a1dd674d..a0e1793260b9904230c91007513955228d49712c 100644 (file)
@@ -19,6 +19,10 @@ TARGET_BOOTLOADER_BOARD_NAME := wade
 TARGET_DTB_NAME := g12a_s905x2_u212_sti6130d3x0
 TARGET_DTBO_NAME := sti6140d350_overlay
 
+## Kernel modules
+TARGET_KERNEL_EXT_MODULES := \
+    dhd-driver/bcmdhd.101.10.361.x
+
 ## Partitions
 BOARD_SUPER_PARTITION_SIZE := 1677721600
 
index a4134cba805a012020bd327bc94ed26ecde99a6f..f28ff79b0232e25fb1503d2aa826de5c0c0206c7 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -18,10 +18,6 @@ endif
 PRODUCT_COPY_FILES += \
     $(LOCAL_PATH)/init-files/init.amlogic.wifi_buildin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.wifi_buildin.rc
 
-## Kernel Modules
-PRODUCT_PACKAGES += \
-    dhd
-
 ## Wi-Fi Firmware
 include hardware/amlogic/kernel-modules/dhd-driver/firmware/firmware.mk
 
index a1a158be7d52325a59eeaa44f886c4a621a71983..ff93eb9a88bcca415146fbc27ebd8c56f3a76f9c 100644 (file)
@@ -5,6 +5,6 @@
   },
   {
     "repository": "android_hardware_amlogic_kernel-modules_dhd-driver",
-    "target_path": "hardware/amlogic/kernel-modules/dhd-driver"
+    "target_path": "kernel/amlogic/kernel-modules/dhd-driver"
   }
 ]