sabrina: 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>
Fri, 12 Jul 2024 20:48:52 +0000 (20:48 +0000)
Change-Id: I1b02fd710c43ef66025d5d395728785c0ce3ddbe

BoardConfig.mk
device.mk
lineage.dependencies

index dd996ed5d78dd62d66831958f861ff2412fe87ff..e1b9e49033c97408da268905811f44efb25cd8a1 100644 (file)
@@ -21,6 +21,10 @@ TARGET_DTB_NAME := sm1_s905d3_sabrina
 ## Kernel
 TARGET_KERNEL_VARIANT_CONFIG := sabrina_defconfig
 
+## Kernel modules
+TARGET_KERNEL_EXT_MODULES := \
+    dhd-driver/bcmdhd.101.10.361.x
+
 ## Partitions
 BOARD_SUPER_PARTITION_SIZE := 2084569088
 BOARD_SYSTEM_EXTIMAGE_EXTFS_INODE_COUNT ?= -1
index 17648d70a65f403bd5f3ad6a451ce7b8126651b2..a955498f30147af9943fd978d6a18e1518a26e83 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -16,10 +16,6 @@ PRODUCT_COPY_FILES += \
     $(LOCAL_PATH)/init-files/init.recovery.sabrina.rc:recovery/root/init.recovery.sabrina.rc \
     $(LOCAL_PATH)/init-files/systemcontrol_sabrina.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/systemcontrol_sabrina.rc
 
-## Kernel Modules
-PRODUCT_PACKAGES += \
-    dhd
-
 ## Keylayout (IR)
 PRODUCT_COPY_FILES += \
     $(LOCAL_PATH)/keylayout/Vendor_0001_Product_0001.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/Vendor_0001_Product_0001.kl
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"
   }
 ]