aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_mpm
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-11-13 21:53:22 -0800
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-11-14 14:10:09 -0800
commita69ab0c23a0c38e3fed3e412df36538d8959d23c (patch)
treee6669a138dad84f79c46588f43a38c69dda90246 /mpm/python/usrp_mpm
parent4247f025020d7dd1f696dfbd3cce248957d6ace7 (diff)
downloaduhd-a69ab0c23a0c38e3fed3e412df36538d8959d23c.tar.gz
uhd-a69ab0c23a0c38e3fed3e412df36538d8959d23c.tar.bz2
uhd-a69ab0c23a0c38e3fed3e412df36538d8959d23c.zip
cmake: Update coding style to use lowercase commands
Also updates our coding style file. Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code (with GNU compliant sed): cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done > convert.sed \ && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \ '*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed (Make sure the backslashes don't get mangled!)
Diffstat (limited to 'mpm/python/usrp_mpm')
-rw-r--r--mpm/python/usrp_mpm/CMakeLists.txt20
-rw-r--r--mpm/python/usrp_mpm/chips/CMakeLists.txt8
-rw-r--r--mpm/python/usrp_mpm/cores/CMakeLists.txt8
-rw-r--r--mpm/python/usrp_mpm/dboard_manager/CMakeLists.txt8
-rw-r--r--mpm/python/usrp_mpm/periph_manager/CMakeLists.txt8
-rw-r--r--mpm/python/usrp_mpm/sys_utils/CMakeLists.txt8
-rw-r--r--mpm/python/usrp_mpm/xports/CMakeLists.txt8
7 files changed, 34 insertions, 34 deletions
diff --git a/mpm/python/usrp_mpm/CMakeLists.txt b/mpm/python/usrp_mpm/CMakeLists.txt
index 8d2af75ce..c978107ba 100644
--- a/mpm/python/usrp_mpm/CMakeLists.txt
+++ b/mpm/python/usrp_mpm/CMakeLists.txt
@@ -7,8 +7,8 @@
########################################################################
# This file included, use CMake directory variables
########################################################################
-SET(USRP_MPM_FILES ${USRP_MPM_FILES})
-SET(USRP_MPM_TOP_FILES
+set(USRP_MPM_FILES ${USRP_MPM_FILES})
+set(USRP_MPM_TOP_FILES
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
${CMAKE_CURRENT_SOURCE_DIR}/aurora_control.py
${CMAKE_CURRENT_SOURCE_DIR}/bfrfs.py
@@ -24,11 +24,11 @@ SET(USRP_MPM_TOP_FILES
${CMAKE_CURRENT_SOURCE_DIR}/prefs.py
${CMAKE_CURRENT_SOURCE_DIR}/rpc_server.py
)
-LIST(APPEND USRP_MPM_FILES ${USRP_MPM_TOP_FILES})
-ADD_SUBDIRECTORY(chips)
-ADD_SUBDIRECTORY(cores)
-ADD_SUBDIRECTORY(dboard_manager)
-ADD_SUBDIRECTORY(periph_manager)
-ADD_SUBDIRECTORY(sys_utils)
-ADD_SUBDIRECTORY(xports)
-SET(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
+list(APPEND USRP_MPM_FILES ${USRP_MPM_TOP_FILES})
+add_subdirectory(chips)
+add_subdirectory(cores)
+add_subdirectory(dboard_manager)
+add_subdirectory(periph_manager)
+add_subdirectory(sys_utils)
+add_subdirectory(xports)
+set(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
diff --git a/mpm/python/usrp_mpm/chips/CMakeLists.txt b/mpm/python/usrp_mpm/chips/CMakeLists.txt
index ff4f61bdd..56c06fbeb 100644
--- a/mpm/python/usrp_mpm/chips/CMakeLists.txt
+++ b/mpm/python/usrp_mpm/chips/CMakeLists.txt
@@ -4,12 +4,12 @@
# SPDX-License-Identifier: GPL-3.0
#
-SET(USRP_MPM_FILES ${USRP_MPM_FILES})
-SET(USRP_MPM_CHIP_FILES
+set(USRP_MPM_FILES ${USRP_MPM_FILES})
+set(USRP_MPM_CHIP_FILES
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
${CMAKE_CURRENT_SOURCE_DIR}/lmk04828.py
${CMAKE_CURRENT_SOURCE_DIR}/adf400x.py
${CMAKE_CURRENT_SOURCE_DIR}/ds125df410.py
)
-LIST(APPEND USRP_MPM_FILES ${USRP_MPM_CHIP_FILES})
-SET(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
+list(APPEND USRP_MPM_FILES ${USRP_MPM_CHIP_FILES})
+set(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
diff --git a/mpm/python/usrp_mpm/cores/CMakeLists.txt b/mpm/python/usrp_mpm/cores/CMakeLists.txt
index 39a15c0ed..e924408ba 100644
--- a/mpm/python/usrp_mpm/cores/CMakeLists.txt
+++ b/mpm/python/usrp_mpm/cores/CMakeLists.txt
@@ -4,14 +4,14 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
-SET(USRP_MPM_FILES ${USRP_MPM_FILES})
-SET(USRP_MPM_CORE_FILES
+set(USRP_MPM_FILES ${USRP_MPM_FILES})
+set(USRP_MPM_CORE_FILES
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
${CMAKE_CURRENT_SOURCE_DIR}/tdc_sync.py
${CMAKE_CURRENT_SOURCE_DIR}/nijesdcore.py
${CMAKE_CURRENT_SOURCE_DIR}/eyescan.py
${CMAKE_CURRENT_SOURCE_DIR}/white_rabbit.py
)
-LIST(APPEND USRP_MPM_FILES ${USRP_MPM_CORE_FILES})
-SET(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
+list(APPEND USRP_MPM_FILES ${USRP_MPM_CORE_FILES})
+set(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
diff --git a/mpm/python/usrp_mpm/dboard_manager/CMakeLists.txt b/mpm/python/usrp_mpm/dboard_manager/CMakeLists.txt
index 0b34e4d70..650a21aab 100644
--- a/mpm/python/usrp_mpm/dboard_manager/CMakeLists.txt
+++ b/mpm/python/usrp_mpm/dboard_manager/CMakeLists.txt
@@ -7,8 +7,8 @@
########################################################################
# This file included, use CMake directory variables
########################################################################
-SET(USRP_MPM_FILES ${USRP_MPM_FILES})
-SET(USRP_MPM_DBMGR_FILES
+set(USRP_MPM_FILES ${USRP_MPM_FILES})
+set(USRP_MPM_DBMGR_FILES
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
${CMAKE_CURRENT_SOURCE_DIR}/base.py
${CMAKE_CURRENT_SOURCE_DIR}/rhodium.py
@@ -30,5 +30,5 @@ SET(USRP_MPM_DBMGR_FILES
${CMAKE_CURRENT_SOURCE_DIR}/test.py
${CMAKE_CURRENT_SOURCE_DIR}/unknown.py
)
-LIST(APPEND USRP_MPM_FILES ${USRP_MPM_DBMGR_FILES})
-SET(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
+list(APPEND USRP_MPM_FILES ${USRP_MPM_DBMGR_FILES})
+set(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
diff --git a/mpm/python/usrp_mpm/periph_manager/CMakeLists.txt b/mpm/python/usrp_mpm/periph_manager/CMakeLists.txt
index 0689cdda9..994b1d64a 100644
--- a/mpm/python/usrp_mpm/periph_manager/CMakeLists.txt
+++ b/mpm/python/usrp_mpm/periph_manager/CMakeLists.txt
@@ -7,8 +7,8 @@
########################################################################
# This file included, use CMake directory variables
########################################################################
-SET(USRP_MPM_FILES ${USRP_MPM_FILES})
-SET(USRP_MPM_PERIPHMGR_FILES
+set(USRP_MPM_FILES ${USRP_MPM_FILES})
+set(USRP_MPM_PERIPHMGR_FILES
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py.in
${CMAKE_CURRENT_SOURCE_DIR}/base.py
${CMAKE_CURRENT_SOURCE_DIR}/n3xx.py
@@ -16,5 +16,5 @@ SET(USRP_MPM_PERIPHMGR_FILES
${CMAKE_CURRENT_SOURCE_DIR}/e320.py
${CMAKE_CURRENT_SOURCE_DIR}/e320_periphs.py
)
-LIST(APPEND USRP_MPM_FILES ${USRP_MPM_PERIPHMGR_FILES})
-SET(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
+list(APPEND USRP_MPM_FILES ${USRP_MPM_PERIPHMGR_FILES})
+set(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
diff --git a/mpm/python/usrp_mpm/sys_utils/CMakeLists.txt b/mpm/python/usrp_mpm/sys_utils/CMakeLists.txt
index e1d830c94..84e3fcc79 100644
--- a/mpm/python/usrp_mpm/sys_utils/CMakeLists.txt
+++ b/mpm/python/usrp_mpm/sys_utils/CMakeLists.txt
@@ -4,8 +4,8 @@
# SPDX-License-Identifier: GPL-3.0
#
-SET(USRP_MPM_FILES ${USRP_MPM_FILES})
-SET(USRP_MPM_SYSUTILS_FILES
+set(USRP_MPM_FILES ${USRP_MPM_FILES})
+set(USRP_MPM_SYSUTILS_FILES
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
${CMAKE_CURRENT_SOURCE_DIR}/dtoverlay.py
${CMAKE_CURRENT_SOURCE_DIR}/i2c_dev.py
@@ -16,6 +16,6 @@ SET(USRP_MPM_SYSUTILS_FILES
${CMAKE_CURRENT_SOURCE_DIR}/uio.py
${CMAKE_CURRENT_SOURCE_DIR}/watchdog.py
)
-LIST(APPEND USRP_MPM_FILES ${USRP_MPM_SYSUTILS_FILES})
-SET(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
+list(APPEND USRP_MPM_FILES ${USRP_MPM_SYSUTILS_FILES})
+set(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
diff --git a/mpm/python/usrp_mpm/xports/CMakeLists.txt b/mpm/python/usrp_mpm/xports/CMakeLists.txt
index 1f8ffc2b1..87e2ac66d 100644
--- a/mpm/python/usrp_mpm/xports/CMakeLists.txt
+++ b/mpm/python/usrp_mpm/xports/CMakeLists.txt
@@ -4,12 +4,12 @@
# SPDX-License-Identifier: GPL-3.0
#
-SET(USRP_MPM_FILES ${USRP_MPM_FILES})
-SET(USRP_MPM_XPORT_FILES
+set(USRP_MPM_FILES ${USRP_MPM_FILES})
+set(USRP_MPM_XPORT_FILES
${CMAKE_CURRENT_SOURCE_DIR}/__init__.py
${CMAKE_CURRENT_SOURCE_DIR}/xportmgr_udp.py
${CMAKE_CURRENT_SOURCE_DIR}/xportmgr_liberio.py
)
-LIST(APPEND USRP_MPM_FILES ${USRP_MPM_XPORT_FILES})
-SET(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)
+list(APPEND USRP_MPM_FILES ${USRP_MPM_XPORT_FILES})
+set(USRP_MPM_FILES ${USRP_MPM_FILES} PARENT_SCOPE)