From af9e13f4dcf8ebf71a5944edcd0c0a328f558057 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 1 Apr 2022 13:07:00 +0200 Subject: cmake: mpm: Skip installing binaries for SIM When running MPM as a simulator, none of the board-specific tools like the BISTs, or usrp_update_fs need be installed. --- mpm/python/CMakeLists.txt | 56 ++++++++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/mpm/python/CMakeLists.txt b/mpm/python/CMakeLists.txt index 51aced18d..e7ab542df 100644 --- a/mpm/python/CMakeLists.txt +++ b/mpm/python/CMakeLists.txt @@ -109,38 +109,44 @@ execute_process(COMMAND ${PYTHON_EXECUTABLE} -c ) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/build/lib/usrp_mpm DESTINATION ${USRP_MPM_PYTHON_DIR}) install(PROGRAMS - aurora_bist_test.py - usrp_update_fs usrp_hwd.py DESTINATION ${RUNTIME_DIR} ) -if (ENABLE_MYKONOS) - install(PROGRAMS - n3xx_bist - DESTINATION ${RUNTIME_DIR} - ) -elseif (ENABLE_E320) - install(PROGRAMS - e320_bist - DESTINATION ${RUNTIME_DIR} - ) -elseif (ENABLE_X400) - install(PROGRAMS - x4xx_bist - DESTINATION ${RUNTIME_DIR} - ) - install(PROGRAMS - usrp_mpm/dboard_manager/zbx_update_cpld.py - DESTINATION ${RUNTIME_DIR} - RENAME zbx_update_cpld - ) +if(NOT ENABLE_SIM) install(PROGRAMS - usrp_mpm/periph_manager/x4xx_update_cpld.py + aurora_bist_test.py + usrp_update_fs DESTINATION ${RUNTIME_DIR} - RENAME x4xx_update_cpld ) -endif (ENABLE_MYKONOS) + + if (ENABLE_MYKONOS) + install(PROGRAMS + n3xx_bist + DESTINATION ${RUNTIME_DIR} + ) + elseif (ENABLE_E320) + install(PROGRAMS + e320_bist + DESTINATION ${RUNTIME_DIR} + ) + elseif (ENABLE_X400) + install(PROGRAMS + x4xx_bist + DESTINATION ${RUNTIME_DIR} + ) + install(PROGRAMS + usrp_mpm/dboard_manager/zbx_update_cpld.py + DESTINATION ${RUNTIME_DIR} + RENAME zbx_update_cpld + ) + install(PROGRAMS + usrp_mpm/periph_manager/x4xx_update_cpld.py + DESTINATION ${RUNTIME_DIR} + RENAME x4xx_update_cpld + ) + endif (ENABLE_MYKONOS) +endif() if (HAVE_MPM_TEST_PREREQS) add_subdirectory(tests) -- cgit v1.2.3