diff options
author | Martin Braun <martin.braun@ettus.com> | 2022-04-01 13:07:00 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-04-04 12:24:10 -0700 |
commit | af9e13f4dcf8ebf71a5944edcd0c0a328f558057 (patch) | |
tree | 52f532ab2db249d0cdd3004c2c3c9c1e0df3c8d9 /mpm | |
parent | ac5ddf9d0e2d110a9ead6eeadb38255b489af787 (diff) | |
download | uhd-af9e13f4dcf8ebf71a5944edcd0c0a328f558057.tar.gz uhd-af9e13f4dcf8ebf71a5944edcd0c0a328f558057.tar.bz2 uhd-af9e13f4dcf8ebf71a5944edcd0c0a328f558057.zip |
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.
Diffstat (limited to 'mpm')
-rw-r--r-- | mpm/python/CMakeLists.txt | 56 |
1 files 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) |