Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 913659 | Differences between
and this patch

Collapse All | Expand All

(-)a/gen_configkernel.sh (-7 / +12 lines)
Lines 991-1001 config_kernel() { Link Here
991
			[ ${KV_NUMERIC} -le 4003 ] && kconfigs_microcode+=( 'CONFIG_MICROCODE_EARLY' )
991
			[ ${KV_NUMERIC} -le 4003 ] && kconfigs_microcode+=( 'CONFIG_MICROCODE_EARLY' )
992
992
993
			# Intel
993
			# Intel
994
			kconfigs_microcode_intel+=( 'CONFIG_MICROCODE_INTEL' )
994
			kconfigs_microcode_intel+=( 'CONFIG_CPU_SUP_INTEL' )
995
			[ ${KV_NUMERIC} -lt 6006 ] && kconfigs_microcode_intel+=( 'CONFIG_MICROCODE_INTEL' )
995
			[ ${KV_NUMERIC} -le 4003 ] && kconfigs_microcode_intel+=( 'CONFIG_MICROCODE_INTEL_EARLY' )
996
			[ ${KV_NUMERIC} -le 4003 ] && kconfigs_microcode_intel+=( 'CONFIG_MICROCODE_INTEL_EARLY' )
996
997
997
			# AMD
998
			# AMD
998
			kconfigs_microcode_amd=( 'CONFIG_MICROCODE_AMD' )
999
			kconfigs_microcode_intel+=( 'CONFIG_CPU_SUP_AMD' )
1000
			[ ${KV_NUMERIC} -lt 6006 ] && kconfigs_microcode_amd=( 'CONFIG_MICROCODE_AMD' )
999
			[ ${KV_NUMERIC} -le 4003 ] && kconfigs_microcode_amd+=( 'CONFIG_MICROCODE_AMD_EARLY' )
1001
			[ ${KV_NUMERIC} -le 4003 ] && kconfigs_microcode_amd+=( 'CONFIG_MICROCODE_AMD_EARLY' )
1000
1002
1001
			[[ "${MICROCODE}" == all ]]   && kconfigs_microcode+=( ${kconfigs_microcode_amd[@]} ${kconfigs_microcode_intel[@]} )
1003
			[[ "${MICROCODE}" == all ]]   && kconfigs_microcode+=( ${kconfigs_microcode_amd[@]} ${kconfigs_microcode_intel[@]} )
Lines 1012-1029 config_kernel() { Link Here
1012
				esac
1014
				esac
1013
				kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "${k}" "${cfg}"
1015
				kconfig_set_opt "${KERNEL_OUTPUTDIR}/.config" "${k}" "${cfg}"
1014
			done
1016
			done
1015
1016
			required_kernel_options+=( 'CONFIG_MICROCODE' )
1017
			required_kernel_options+=( 'CONFIG_MICROCODE' )
1017
			case "${MICROCODE}" in
1018
			case "${MICROCODE}" in
1018
				amd)
1019
				amd)
1019
					required_kernel_options+=( 'CONFIG_MICROCODE_AMD' )
1020
					required_kernel_options+=( 'CONFIG_CPU_SUP_AMD' )
1021
					[ ${KV_NUMERIC} -lt 6006 ] && required_kernel_options+=( 'CONFIG_MICROCODE_AMD' )
1020
					;;
1022
					;;
1021
				intel)
1023
				intel)
1022
					required_kernel_options+=( 'CONFIG_MICROCODE_INTEL' )
1024
					required_kernel_options+=( 'CONFIG_CPU_SUP_INTEL' )
1025
					[ ${KV_NUMERIC} -lt 6006 ] && required_kernel_options+=( 'CONFIG_MICROCODE_INTEL' )
1023
					;;
1026
					;;
1024
				all)
1027
				all)
1025
					required_kernel_options+=( 'CONFIG_MICROCODE_AMD' )
1028
					required_kernel_options+=( 'CONFIG_CPU_SUP_AMD' )
1026
					required_kernel_options+=( 'CONFIG_MICROCODE_INTEL' )
1029
					required_kernel_options+=( 'CONFIG_CPU_SUP_INTEL' )
1030
					[ ${KV_NUMERIC} -lt 6006 ] && required_kernel_options+=( 'CONFIG_MICROCODE_AMD' )
1031
					[ ${KV_NUMERIC} -lt 6006 ] && required_kernel_options+=( 'CONFIG_MICROCODE_INTEL' )
1027
					;;
1032
					;;
1028
			esac
1033
			esac
1029
		else
1034
		else

Return to bug 913659