add option to disable kernel patching

This commit is contained in:
Tim Surber
2025-05-02 17:00:02 +02:00
committed by Igor
parent ec34878cf8
commit b3e5f01042

View File

@@ -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