Skip to content
6 changes: 1 addition & 5 deletions config/sources/families/include/meson64_common.inc
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ esac
# Use custom vendor driver for wireless rtl88x2cs
# See https://github.com/armbian/build/pull/6227
function custom_kernel_config__enable_rtl88x2cs_driver() {
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
opts_m+=("CONFIG_RTL8822CS")
}

# this helper function includes postprocess for s400 and its variants.
Expand Down
14 changes: 5 additions & 9 deletions config/sources/families/meson-s4t7.conf
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ function build_custom_uboot__meson_s4t7_build_custom_uboot() {
}

function custom_kernel_config__add_khadas_common_drivers() {
display_alert "Enabling kernel config" "DEBUG_KERNEL=y, EXPERT=y, EMBEDDED=y to fix khadas_common_drivers compilation" "info"
opts_y+=("DEBUG_KERNEL") # Unfortunately, debug kernel has to be enabled to make khadas_common_drivers compile
opts_y+=("EMBEDDED")
opts_y+=("EXPERT")

# viraniac: The kernel config hooks are always called twice, once without being in kernel directory and once with current directory being the kernel work directory.
if [[ ! -f .config ]]; then
display_alert "$BOARD" "Fetching khadas common drivers git info" "info"
Expand All @@ -136,15 +141,6 @@ function custom_kernel_config__add_khadas_common_drivers() {

# Hack to ensure that we will recreate kernel if common_drivers source changes
kernel_config_modifying_hashes+=("khadas_common_drivers=${GIT_INFO_COMMON_DRIVERS[SHA1]}")

# viraniac: kernel_config_modifying_hashes is only needed during first call of this function to calculate kernel artifact version string. It serves no purpose whatsoever during second call.
kernel_config_modifying_hashes+=("CONFIG_DEBUG_KERNEL=y" "CONFIG_EXPERT=y" "CONFIG_EMBEDDED=y")
else
# Unfortunately, debug kernel has to be enabled to make khadas_common_drivers compile
display_alert "Enabling kernel config" "DEBUG_KERNEL=y, EXPERT=y, EMBEDDED=y to fix khadas_common_drivers compilation" "info"
kernel_config_set_y DEBUG_KERNEL
kernel_config_set_y EXPERT
kernel_config_set_y EMBEDDED
fi
}

Expand Down
Loading