From 1b49089d85006964b450bc3c3d70e6197c518efc Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Thu, 22 Feb 2018 11:06:23 -0800 Subject: mpm: break up device compilation Breaking up dboard compilation based on the target MPM_DEVICE. --- mpm/lib/CMakeLists.txt | 5 ++++- mpm/lib/dboards/CMakeLists.txt | 9 +++++---- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'mpm/lib') diff --git a/mpm/lib/CMakeLists.txt b/mpm/lib/CMakeLists.txt index 684a4d1e3..091c2c25f 100644 --- a/mpm/lib/CMakeLists.txt +++ b/mpm/lib/CMakeLists.txt @@ -8,10 +8,13 @@ SET(UHD_HOST_ROOT ${CMAKE_SOURCE_DIR}/../host) ADD_SUBDIRECTORY(dboards) ADD_SUBDIRECTORY(chips) -ADD_SUBDIRECTORY(mykonos) ADD_SUBDIRECTORY(spi) ADD_SUBDIRECTORY(types) +if(MPM_DEVICE STREQUAL "n3xx") + ADD_SUBDIRECTORY(mykonos) +endif(MPM_DEVICE STREQUAL "n3xx") + USRP_PERIPHS_ADD_OBJECT(periphs exception.cpp xbar_iface.cpp diff --git a/mpm/lib/dboards/CMakeLists.txt b/mpm/lib/dboards/CMakeLists.txt index 7f728a836..a1017d8d3 100644 --- a/mpm/lib/dboards/CMakeLists.txt +++ b/mpm/lib/dboards/CMakeLists.txt @@ -8,7 +8,8 @@ # This file included, use CMake directory variables ######################################################################## -USRP_PERIPHS_ADD_OBJECT(dboards - magnesium_manager.cpp -) - +if(MPM_DEVICE STREQUAL "n3xx") + USRP_PERIPHS_ADD_OBJECT(dboards + magnesium_manager.cpp + ) +endif(MPM_DEVICE STREQUAL "n3xx") -- cgit v1.2.3