1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-11-12 05:13:04 +00:00

Improve portability

Improve support for RISC-V arch in volk_gnsssdr via cpu_features (updated to c919e9a).
Set BLA_PREFER_PKGCONFIG if not defined by the user, helps to find lapack in some archs (e.g., riscv64)
Fix for Fedora/OpenSUSE, which do not install cpu_features along volk.
Remove volk_gnsssdr_8ic_s8ic_multiply_8ic kernel since it was problematic in some archs
Improve Python detection
Fixes for GCC 13
Remove ENABLE_GENERIC_ARCH configuration option and old ARM detection mechanism
Update gtest to 1.13.0
Add CI jobs for volk_gnsssdr and gnss-sdr in non-x86 archs
This commit is contained in:
Carles Fernandez
2023-01-26 18:39:25 +01:00
parent d5c5187c68
commit 4999d38194
30 changed files with 659 additions and 551 deletions

View File

@@ -12,13 +12,22 @@
# - cmd an additional command to run
# - have the result variable to set
########################################################################
macro(GNSSSDR_PYTHON_CHECK_MODULE_RAW desc python_code have)
macro(GNSSSDR_PYTHON_CHECK_MODULE desc mod cmd have)
message(STATUS "Python checking for ${desc}")
execute_process(
COMMAND ${PYTHON_EXECUTABLE} -c "${python_code}"
COMMAND ${PYTHON_EXECUTABLE} -c "
#########################################
try: import ${mod}
except:
try: ${mod}
except: exit(-1)
try: assert ${cmd}
except: exit(-1)
#########################################"
OUTPUT_QUIET ERROR_QUIET
RESULT_VARIABLE return_code
RESULT_VARIABLE ${have}
)
if(return_code EQUAL 0)
if(${have} EQUAL 0)
message(STATUS "Python checking for ${desc} - found")
set(${have} TRUE)
else()
@@ -27,19 +36,6 @@ macro(GNSSSDR_PYTHON_CHECK_MODULE_RAW desc python_code have)
endif()
endmacro()
macro(GNSSSDR_PYTHON_CHECK_MODULE desc mod cmd have)
gnsssdr_python_check_module_raw(
"${desc}" "
#########################################
try:
import ${mod}
assert ${cmd}
except (ImportError, AssertionError): exit(-1)
except: pass
#########################################"
"${have}")
endmacro()
########################################################################
# Setup the python interpreter: