From d70024da20239bff26a5435e5831eac346037791 Mon Sep 17 00:00:00 2001 From: Yaraslau Furman Date: Thu, 9 Jan 2025 00:57:42 +0200 Subject: [PATCH] PKGBUILD: untuck the way generic subarch is set Previously a really convoluted two stage 'yes' invocation was used with that required weird formatting. Switch to using the good old configs enabling. --- PKGBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 6775bcf..1290842 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -345,8 +345,9 @@ update_defconfig() { # check if subarch is a number if [[ ${_subarch} =~ ^[0-9]+$ ]] && ((_subarch>=1)); then if [ "${_subarch}" == "41" ]; then - yes "${_subarch} -${_subarch_microarch}" | make ${BUILD_FLAGS[*]} oldconfig + scripts/config -e GENERIC_CPU + scripts/config --set-val X86_64_VERSION "${_subarch_microarch}" + make ${BUILD_FLAGS[*]} oldconfig else yes "${_subarch}" | make ${BUILD_FLAGS[*]} oldconfig fi