mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
add option to disable kernel patching
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user