aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard/magnesium
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-06-09 22:42:47 -0700
committerMartin Braun <martin.braun@ettus.com>2018-06-11 12:13:46 -0700
commit526929071a43b820e6ee45961e0a10e605862e91 (patch)
tree182d6c879230e379474c5de5c8ff0142cf21a514 /host/lib/usrp/dboard/magnesium
parente4f6565e5e0a979331f9d7847d93e78d1177c4f9 (diff)
downloaduhd-526929071a43b820e6ee45961e0a10e605862e91.tar.gz
uhd-526929071a43b820e6ee45961e0a10e605862e91.tar.bz2
uhd-526929071a43b820e6ee45961e0a10e605862e91.zip
cmake: Add ENABLE_N300 target
Driver support for N310/N300 was previously implied by ENABLE_MPMD, which had two issues: 1) It was not clear that ENABLE_MPMD was actually enabling the N3x0 2) It did not allow to enable mpmd support without N3x0 support This resolves these issues.
Diffstat (limited to 'host/lib/usrp/dboard/magnesium')
-rw-r--r--host/lib/usrp/dboard/magnesium/CMakeLists.txt27
1 files changed, 14 insertions, 13 deletions
diff --git a/host/lib/usrp/dboard/magnesium/CMakeLists.txt b/host/lib/usrp/dboard/magnesium/CMakeLists.txt
index eca9e5234..417cd4f54 100644
--- a/host/lib/usrp/dboard/magnesium/CMakeLists.txt
+++ b/host/lib/usrp/dboard/magnesium/CMakeLists.txt
@@ -4,17 +4,18 @@
# SPDX-License-Identifier: GPL-3.0
#
-IF(ENABLE_MPMD)
- LIST(APPEND MAGNESIUM_SOURCES
- ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_radio_ctrl_impl.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_radio_ctrl_init.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_radio_ctrl_cpld.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_radio_ctrl_gain.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_ad9371_iface.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_bands.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_cpld_ctrl.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_gain_table.cpp
- )
- LIBUHD_APPEND_SOURCES(${MAGNESIUM_SOURCES})
-ENDIF(ENABLE_MPMD)
+# This file is conditionally included if ENABLE_MPMD and ENABLE_N300 are
+# set to true.
+
+LIST(APPEND MAGNESIUM_SOURCES
+ ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_radio_ctrl_impl.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_radio_ctrl_init.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_radio_ctrl_cpld.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_radio_ctrl_gain.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_ad9371_iface.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_bands.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_cpld_ctrl.cpp
+ ${CMAKE_CURRENT_SOURCE_DIR}/magnesium_gain_table.cpp
+)
+LIBUHD_APPEND_SOURCES(${MAGNESIUM_SOURCES})