mirror of
https://github.com/EttusResearch/uhd.git
synced 2026-10-25 17:36:10 +00:00
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.
This commit is contained in:
parent
e4f6565e5e
commit
526929071a
@ -74,6 +74,7 @@ LIBUHD_REGISTER_COMPONENT("USRP2" ENABLE_USRP2 ON "ENABLE_LIBUHD" OFF OFF)
|
||||
LIBUHD_REGISTER_COMPONENT("X300" ENABLE_X300 ON "ENABLE_LIBUHD" OFF OFF)
|
||||
LIBUHD_REGISTER_COMPONENT("N230" ENABLE_N230 ON "ENABLE_LIBUHD" OFF OFF)
|
||||
LIBUHD_REGISTER_COMPONENT("MPMD" ENABLE_MPMD ON "ENABLE_LIBUHD" OFF OFF)
|
||||
LIBUHD_REGISTER_COMPONENT("N300" ENABLE_N300 ON "ENABLE_LIBUHD;ENABLE_MPMD" OFF OFF)
|
||||
LIBUHD_REGISTER_COMPONENT("OctoClock" ENABLE_OCTOCLOCK ON "ENABLE_LIBUHD" OFF OFF)
|
||||
|
||||
########################################################################
|
||||
|
||||
@ -46,5 +46,9 @@ IF(ENABLE_X300)
|
||||
)
|
||||
ENDIF(ENABLE_X300)
|
||||
|
||||
INCLUDE_SUBDIRECTORY(magnesium)
|
||||
INCLUDE_SUBDIRECTORY(eiscat)
|
||||
IF(ENABLE_N300)
|
||||
INCLUDE_SUBDIRECTORY(magnesium)
|
||||
ENDIF(ENABLE_N300)
|
||||
IF(ENABLE_MPMD AND ENABLE_EISCAT)
|
||||
INCLUDE_SUBDIRECTORY(eiscat)
|
||||
ENDIF(ENABLE_MPMD AND ENABLE_EISCAT)
|
||||
|
||||
@ -4,10 +4,11 @@
|
||||
# SPDX-License-Identifier: GPL-3.0
|
||||
#
|
||||
|
||||
IF(ENABLE_MPMD AND ENABLE_EISCAT)
|
||||
LIST(APPEND EISCAT_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/eiscat_radio_ctrl_impl.cpp
|
||||
)
|
||||
LIBUHD_APPEND_SOURCES(${EISCAT_SOURCES})
|
||||
ENDIF(ENABLE_MPMD AND ENABLE_EISCAT)
|
||||
# This file is conditionally included if ENABLE_MPMD and ENABLE_EISCAT are
|
||||
# set to true.
|
||||
|
||||
LIST(APPEND EISCAT_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/eiscat_radio_ctrl_impl.cpp
|
||||
)
|
||||
LIBUHD_APPEND_SOURCES(${EISCAT_SOURCES})
|
||||
|
||||
|
||||
@ -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})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user