gjdwebserver-overlay/sys-kernel/genkernel/files/genkernel-4.3.8-config-microcode.patch

37 lines
1.1 KiB
Diff
Raw Normal View History

2024-01-04 17:14:41 +01:00
--- /usr/share/genkernel/gen_configkernel.sh~ 2023-11-09 12:04:47.223202185 +0100
+++ /usr/share/genkernel/gen_configkernel.sh 2023-11-09 12:22:48.924474193 +0100
@@ -1021,18 +1021,21 @@
done
2024-01-04 17:09:39 +01:00
required_kernel_options+=( 'CONFIG_MICROCODE' )
2024-01-04 17:14:41 +01:00
- case "${MICROCODE}" in
- amd)
2024-01-04 17:09:39 +01:00
- required_kernel_options+=( 'CONFIG_MICROCODE_AMD' )
2024-01-04 17:14:41 +01:00
- ;;
- intel)
2024-01-04 17:09:39 +01:00
- required_kernel_options+=( 'CONFIG_MICROCODE_INTEL' )
2024-01-04 17:14:41 +01:00
- ;;
- all)
2024-01-04 17:09:39 +01:00
- required_kernel_options+=( 'CONFIG_MICROCODE_AMD' )
- required_kernel_options+=( 'CONFIG_MICROCODE_INTEL' )
2024-01-04 17:14:41 +01:00
- ;;
- esac
+ if [ ${KV_NUMERIC} -lt 6006 ]
+ then
+ case "${MICROCODE}" in
+ amd)
+ required_kernel_options+=( 'CONFIG_MICROCODE_AMD' )
+ ;;
+ intel)
+ required_kernel_options+=( 'CONFIG_MICROCODE_INTEL' )
+ ;;
+ all)
+ required_kernel_options+=( 'CONFIG_MICROCODE_AMD' )
+ required_kernel_options+=( 'CONFIG_MICROCODE_INTEL' )
+ ;;
+ esac
+ fi
2024-01-04 17:09:39 +01:00
else
2024-01-04 17:14:41 +01:00
print_info 1 "$(get_indent 1)>> Ignoring --microcode parameter; Architecture does not support microcode loading ..."
fi