Rewrite config before the menuconfig and co prompt using olddefconfig. This offers an up to date set of default options before optional further customization.

This commit is contained in:
Tk-Glitch 2021-04-30 21:50:32 +02:00
parent 89cd81e726
commit 63f0a1ea79

View File

@ -1334,6 +1334,10 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n
_menuconfig="Void"
fi
# rewrite configuration
msg2 "Setting config"
make olddefconfig ${llvm_opt} >> "$_where"/prepare.log
# menuconfig / nconfig
if [ -z "$_menunconfig" ] && [ "$_distro" != "Void" ]; then
plain ""
@ -1353,9 +1357,6 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n
elif [ 3 = "$_menunconfig" ]; then
cp .config .config.orig
make xconfig ${llvm_opt}
else
# rewrite configuration
yes "" | make config ${llvm_opt} >/dev/null
fi
if [ 1 = "$_menunconfig" ] || [ 2 = "$_menunconfig" ] || [ 3 = "$_menunconfig" ]; then
if [ -z "${_diffconfig}" ]; then