@ -654,12 +654,34 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n
echo "# CONFIG_MNATIVE_INTEL is not set" >> ./.config
fi
if [ -n "$_processor_opt" ] && [ "$_processor_opt" != "generic" ]; then
if [ -n "$_processor_opt" ] && [[ "$_processor_opt" != generic* ] ]; then
sed -i -e 's/CONFIG_GENERIC_CPU=y/# CONFIG_GENERIC_CPU is not set/' ./.config
echo "# CONFIG_GENERIC_CPU2 is not set" >> ./.config
echo "# CONFIG_GENERIC_CPU3 is not set" >> ./.config
echo "# CONFIG_GENERIC_CPU4 is not set" >> ./.config
elif [ -n "$_processor_opt" ] && [ "$_processor_opt" = "genericv2" ]; then
sed -i -e 's/CONFIG_GENERIC_CPU=y/# CONFIG_GENERIC_CPU is not set/' ./.config
echo "CONFIG_GENERIC_CPU2=y" >> ./.config
echo "# CONFIG_GENERIC_CPU3 is not set" >> ./.config
echo "# CONFIG_GENERIC_CPU4 is not set" >> ./.config
elif [ -n "$_processor_opt" ] && [ "$_processor_opt" = "genericv3" ]; then
sed -i -e 's/CONFIG_GENERIC_CPU=y/# CONFIG_GENERIC_CPU is not set/' ./.config
echo "# CONFIG_GENERIC_CPU2 is not set" >> ./.config
echo "CONFIG_GENERIC_CPU3=y" >> ./.config
echo "# CONFIG_GENERIC_CPU4 is not set" >> ./.config
elif [ -n "$_processor_opt" ] && [ "$_processor_opt" = "genericv4" ]; then
sed -i -e 's/CONFIG_GENERIC_CPU=y/# CONFIG_GENERIC_CPU is not set/' ./.config
echo "# CONFIG_GENERIC_CPU2 is not set" >> ./.config
echo "# CONFIG_GENERIC_CPU3 is not set" >> ./.config
echo "CONFIG_GENERIC_CPU4=y" >> ./.config
else
echo "# CONFIG_GENERIC_CPU2 is not set" >> ./.config
echo "# CONFIG_GENERIC_CPU3 is not set" >> ./.config
echo "# CONFIG_GENERIC_CPU4 is not set" >> ./.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+=("steamroller" "excavator" "zen" "zen2" "zen3" " 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" "native" "native_amd" "native_intel")