37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
|
--- /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
|
||
|
|
||
|
required_kernel_options+=( 'CONFIG_MICROCODE' )
|
||
|
- 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
|
||
|
+ 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
|
||
|
else
|
||
|
print_info 1 "$(get_indent 1)>> Ignoring --microcode parameter; Architecture does not support microcode loading ..."
|
||
|
fi
|