Add hook to activate build module for rtl88x2cs driver in kernel config

This commit is contained in:
Viacheslav Bocharov
2024-01-30 13:31:32 +03:00
committed by Igor
parent 4e7363f227
commit d0cfcfa733

View File

@@ -424,6 +424,16 @@ driver_rtw88() {
fi
}
function armbian_kernel_config__enable_rtl88x2cs_driver() {
if [[ "${LINUXFAMILY}" == "meson64" ]]; then
kernel_config_modifying_hashes+=("CONFIG_RTL8822CS=m")
if [[ -f .config ]]; then
display_alert "Enabling rtl88x2cs driver in kernel config" "armbian-kernel" "wrn"
kernel_config_set_m CONFIG_RTL8822CS
fi
fi
}
driver_rtl88x2cs() {
# Wireless drivers for Realtek 88x2cs chipsets