From b3e5f0104283f7255d41b53eef685a00c7cb804e Mon Sep 17 00:00:00 2001 From: Tim Surber Date: Fri, 2 May 2025 17:00:02 +0200 Subject: [PATCH] add option to disable kernel patching --- config/sources/common.conf | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/config/sources/common.conf b/config/sources/common.conf index 4b4194dda4..0954261edd 100644 --- a/config/sources/common.conf +++ b/config/sources/common.conf @@ -117,10 +117,16 @@ function late_family_config__common_defaults_for_mainline_kernel() { KERNEL_PATCH_ARCHIVE_BASE="$LINUXFAMILY" fi - # If KERNELPATCHDIR is unset, set it to "archive/${KERNELPATCHDIR}-${KERNEL_MAJOR_MINOR}" # @TODO: no, use LINUXFAMILY directly - if [[ -z ${KERNELPATCHDIR} ]]; then - display_alert "KERNELPATCHDIR is unset; using 'archive/${KERNEL_PATCH_ARCHIVE_BASE}-${KERNEL_MAJOR_MINOR}'" "common_defaults_for_mainline" "info" - KERNELPATCHDIR="archive/${KERNEL_PATCH_ARCHIVE_BASE}-${KERNEL_MAJOR_MINOR}" # previously was KERNELPATCHDIR="$LINUXFAMILY-$BRANCH" + if [[ ${DISABLE_KERNEL_PATCHES:-} == "yes" ]]; then + display_alert "Kernel patches disabled; Using empty KERNELPATCHDIR and disabling WiFi" "common_defaults_for_mainline" "info" + KERNELPATCHDIR= + EXTRAWIFI="no" + else + # If KERNELPATCHDIR is unset, set it to "archive/${KERNELPATCHDIR}-${KERNEL_MAJOR_MINOR}" # @TODO: no, use LINUXFAMILY directly + if [[ -z ${KERNELPATCHDIR} ]]; then + display_alert "KERNELPATCHDIR is unset; using 'archive/${KERNEL_PATCH_ARCHIVE_BASE}-${KERNEL_MAJOR_MINOR}'" "common_defaults_for_mainline" "info" + KERNELPATCHDIR="archive/${KERNEL_PATCH_ARCHIVE_BASE}-${KERNEL_MAJOR_MINOR}" # previously was KERNELPATCHDIR="$LINUXFAMILY-$BRANCH" + fi fi # if LINUXCONFIG is unset... default to linux-${LINUXFAMILY}-${BRANCH} # Attention: no KERNEL_MAJOR_MINOR here, so manual file rollover is necessary