diff --git a/PKGBUILD b/PKGBUILD index 0d44351..21b5a59 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -291,7 +291,11 @@ DEST_MODULE_LOCATION[3]="/kernel/drivers/video"' dkms.conf # Loop kernels (4.15.0-1-ARCH, 4.14.5-1-ck, ...) local -a _kernels - mapfile -t _kernels < <(find /usr/lib/modules/*/build/version -exec cat {} +) + if [ -n "$_kerneloverride" ]; then + _kernels="$_kerneloverride" + else + mapfile -t _kernels < <(find /usr/lib/modules/*/build/version -exec cat {} +) + fi for _kernel in "${_kernels[@]}"; do # Use separate source directories cp -r kernel kernel-$_kernel diff --git a/customization.cfg b/customization.cfg index 8001370..91eb476 100644 --- a/customization.cfg +++ b/customization.cfg @@ -11,6 +11,9 @@ _EXT_CONFIG_PATH=~/.config/frogminer/nvidia-all.cfg # Example: CUSTOM_GCC_PATH="/home/frog/PKGBUILDS/mostlyportable-gcc/gcc-mostlyportable-9.2.0" CUSTOM_GCC_PATH="" +# Allows enforcing kernel patches application for a target kernel, independently of currently installed ones (example: "5.5")" +_kerneloverride="" + # Put the built packages in a versioned dir in the same folder as the nvidia-all PKGBUILD on exit - Will fail to install if running makepkg with -i option _local_package_storing="false"