Add support for MNATIVE_INTEL and MNATIVE_AMD config options in graysky's cpu opts patchset and default to prompt
This commit is contained in:
@@ -648,33 +648,33 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n
|
||||
|
||||
# cpu opt
|
||||
|
||||
if [ -n "$_processor_opt" ] && [ "$_processor_opt" != "native" ]; then
|
||||
if [ -n "$_processor_opt" ] && [[ "$_processor_opt" != native* ]]; then
|
||||
echo "# CONFIG_MNATIVE is not set" >> ./.config
|
||||
echo "# CONFIG_MNATIVE_AMD is not set" >> ./.config
|
||||
echo "# CONFIG_MNATIVE_INTEL is not set" >> ./.config
|
||||
fi
|
||||
|
||||
if [ -n "$_processor_opt" ] && [ "$_processor_opt" != "generic" ]; then
|
||||
sed -i -e 's/CONFIG_GENERIC_CPU=y/# CONFIG_GENERIC_CPU is not set/' ./.config
|
||||
fi
|
||||
|
||||
if [ "$_processor_opt" = "native" ]; then
|
||||
echo "CONFIG_MNATIVE=y" >> ./.config
|
||||
fi
|
||||
|
||||
_cpu_marchs=("k8" "k8sse3" "k10" "barcelona" "bobcat" "jaguar" "bulldozer" "piledriver")
|
||||
_cpu_marchs+=("steamroller" "excavator" "zen" "zen2" "mpsc" "atom" "core2" "nehalem" "westmere")
|
||||
_cpu_marchs+=("silvermont" "sandybridge" "ivybridge" "haswell" "broadwell" "skylake")
|
||||
_cpu_marchs+=("skylakex" "cannonlake" "icelake" "goldmont" "goldmontplus" "cascadelake")
|
||||
_cpu_marchs+=("cooperlake" "tigerlake")
|
||||
_cpu_marchs+=("cooperlake" "tigerlake" "native" "native_amd" "native_intel")
|
||||
|
||||
for _march in "${_cpu_marchs[@]}"
|
||||
do
|
||||
_march_upper=`echo ${_march} | tr '[:lower:]' '[:upper:]'`
|
||||
if [ "$_processor_opt" = "$_march" ]; then
|
||||
echo "CONFIG_M${_march_upper}=y/" >> ./.config
|
||||
else
|
||||
echo "# CONFIG_M${_march_upper} is not set" >> ./.config
|
||||
fi
|
||||
done
|
||||
if [ ! -z "$_processor_opt" ]; then # Don't populate when the config variable is empty
|
||||
for _march in "${_cpu_marchs[@]}"
|
||||
do
|
||||
_march_upper=`echo ${_march} | tr '[:lower:]' '[:upper:]'`
|
||||
if [ "$_processor_opt" = "$_march" ]; then
|
||||
echo "CONFIG_M${_march_upper}=y/" >> ./.config
|
||||
else
|
||||
echo "# CONFIG_M${_march_upper} is not set" >> ./.config
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Disable some debugging
|
||||
if [ "${_debugdisable}" = "true" ]; then
|
||||
|
Reference in New Issue
Block a user