From: Andreas Beckmann Date: Tue, 8 Apr 2025 05:32:27 +0000 (+0200) Subject: tune distro mode X-Git-Tag: archive/raspbian/6.0-6+rpi1^2~7 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4f573a8ce624737b0b7ac4d23f0254011a5d4fdb;p=pocl.git tune distro mode Forwarded: not-needed Gbp-Pq: Name distro.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d5280d..3a35da9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1420,6 +1420,9 @@ endif() set(KERNELLIB_HOST_DISTRO_VARIANTS 0) if(KERNELLIB_HOST_CPU_VARIANTS STREQUAL "distro") + if("${LLC_HOST_CPU}" STREQUAL "GENERIC") + set(HOST_CPU_FORCED 0 CACHE INTERNAL "CPU is forced by user") + endif() if(HOST_CPU_FORCED) message(FATAL_ERROR "Cannot build with CPU autodetection distro variants build, and enforce LLC_HOST_CPU at the same time. Please pick one") endif() @@ -1433,6 +1436,9 @@ if(KERNELLIB_HOST_CPU_VARIANTS STREQUAL "distro") else() message(FATAL_ERROR "Don't know what CPU variants to use for kernel library on this platform.") endif() + if("${LLC_HOST_CPU}" STREQUAL "GENERIC") + list(INSERT KERNELLIB_HOST_CPU_VARIANTS 0 ${LLC_HOST_CPU}) + endif() set(KERNELLIB_HOST_DISTRO_VARIANTS 1) endif()