Skip to content

Commit

Permalink
lunaa: Inline all kernel modules
Browse files Browse the repository at this point in the history
Change-Id: I9c9dcc2de8efe52815a4734ba2d72073c5b39081
Signed-off-by: dodyirawan85 <[email protected]>
  • Loading branch information
KujouYuko authored and dodyirawan85 committed Aug 15, 2023
1 parent 08fdd0b commit 85fa24d
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 109 deletions.
7 changes: 0 additions & 7 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,6 @@ TARGET_KERNEL_CONFIG += vendor/oplus_yupik_QGKI.config
TARGET_KERNEL_NO_GCC := true
TARGET_KERNEL_ADDITIONAL_FLAGS := BRAND_SHOW_FLAG=realme

# Kernel modules
BOARD_VENDOR_KERNEL_MODULES_BLOCKLIST_FILE := $(DEVICE_PATH)/modules.blocklist
BOARD_VENDOR_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load))
BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(strip $(shell cat $(DEVICE_PATH)/modules.load.recovery))
BOOT_KERNEL_MODULES := $(strip $(shell cat $(DEVICE_PATH)/modules.include.recovery))
TARGET_MODULE_ALIASES += wlan.ko:qca_cld3_wlan.ko

# Platform
BOARD_USES_QCOM_HARDWARE := true
TARGET_BOARD_PLATFORM := lahaina
Expand Down
3 changes: 3 additions & 0 deletions extract-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ function blob_fixup() {
system_ext/lib64/libwfdnative.so)
sed -i "s/[email protected]/libhidlbase.so\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/" "${2}"
;;
vendor/etc/init/netmgrd.rc)
sed -i "/modprobe/d" "${2}"
;;
vendor/etc/media_*/video_system_specs.json)
sed -i "/max_retry_alloc_output_timeout/ s/1000/0/" "${2}"
;;
Expand Down
2 changes: 0 additions & 2 deletions init/init.qcom.rc
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ on early-init

chown root system /dev/kmsg
chmod 0620 /dev/kmsg
# Load WIGIG platform driver
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules msm_11ad_proxy

on init

Expand Down
5 changes: 0 additions & 5 deletions init/init.target.rc
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
import /vendor/etc/init/hw/init.qti.kernel.rc

on early-init
exec u:r:vendor_modprobe:s0 -- /vendor/bin/vendor_modprobe.sh
exec u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules q6_pdr_dlkm q6_notifier_dlkm snd_event_dlkm apr_dlkm adsp_loader_dlkm q6_dlkm native_dlkm pinctrl_wcd_dlkm pinctrl_lpi_dlkm swr_dlkm platform_dlkm hdmi_dlkm stub_dlkm wcd_core_dlkm wsa883x_dlkm bolero_cdc_dlkm wsa_macro_dlkm va_macro_dlkm rx_macro_dlkm tx_macro_dlkm bt_fm_slim wcd938x_dlkm wcd938x_slave_dlkm wcd937x_dlkm wcd937x_slave_dlkm swr_dmic_dlkm swr_haptics_dlkm machine_dlkm radio-i2c-rtc6226-qca cdsprm
write /proc/sys/kernel/sched_boost 1
wait /sys/devices/soc0/soc_id

Expand Down Expand Up @@ -137,9 +135,6 @@ on boot
setprop vendor.usb.dpl.inst.name "dpl"
setprop vendor.usb.qdss.inst.name "qdss_mdm"
setprop vendor.usb.controller a600000.dwc3
#Load WLAN driver
exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/ qca_cld3_wlan qca_cld3_qca6390
exec_background u:r:vendor_modprobe:s0 -- /vendor/bin/modprobe -a -d /vendor/lib/modules/5.4-gki qca_cld3_wlan qca_cld3_qca6390
#Allow access to memory hotplug device attributes
chown system system /sys/kernel/mem-offline/anon_migrate

Expand Down
3 changes: 0 additions & 3 deletions modules.blocklist

This file was deleted.

6 changes: 0 additions & 6 deletions modules.include.recovery

This file was deleted.

83 changes: 0 additions & 83 deletions modules.load

This file was deleted.

2 changes: 0 additions & 2 deletions modules.load.recovery

This file was deleted.

1 change: 0 additions & 1 deletion proprietary-files-qc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@ vendor/bin/init.kernel.post_boot-lahaina.sh
vendor/bin/init.kernel.post_boot-yupik.sh
vendor/bin/init.kernel.post_boot.sh
vendor/bin/init.qti.kernel.sh
vendor/bin/vendor_modprobe.sh
vendor/etc/init/hw/init.qti.kernel.rc

# Keymaster
Expand Down

0 comments on commit 85fa24d

Please sign in to comment.