aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/lib/chips
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/lib/chips
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/lib/chips')
-rw-r--r--mpm/lib/chips/CMakeLists.txt28
1 files changed, 14 insertions, 14 deletions
diff --git a/mpm/lib/chips/CMakeLists.txt b/mpm/lib/chips/CMakeLists.txt
index 89f750fc0..ff4dbd723 100644
--- a/mpm/lib/chips/CMakeLists.txt
+++ b/mpm/lib/chips/CMakeLists.txt
@@ -4,39 +4,39 @@
# SPDX-License-Identifier: GPL-3.0
#
-#MACRO(ETTUS_PYTHON_GEN_SOURCE pyfile outfile)
+#macro(ETTUS_PYTHON_GEN_SOURCE pyfile outfile)
##ensure that the directory exists for outfile
- #GET_FILENAME_COMPONENT(outfile_dir ${outfile} PATH)
- #FILE(MAKE_DIRECTORY ${outfile_dir})
- #IF(NOT PYTHON_EXECUTABLE)
- #MESSAGE( FATAL_ERROR "No python executable found to generate ic_regmaps!" )
- #ENDIF(NOT PYTHON_EXECUTABLE)
+ #get_filename_component(outfile_dir ${outfile} PATH)
+ #file(MAKE_DIRECTORY ${outfile_dir})
+ #if(NOT PYTHON_EXECUTABLE)
+ #message( FATAL_ERROR "No python executable found to generate ic_regmaps!" )
+ #endif(NOT PYTHON_EXECUTABLE)
##make the outfile depend on the python script
- #ADD_CUSTOM_COMMAND(
+ #add_custom_command(
#OUTPUT ${outfile} DEPENDS ${pyfile} ${ETTUS_PYTHON_GEN_SOURCE_DEPS}
#COMMAND ${PYTHON_EXECUTABLE} -B ${pyfile} ${outfile}
#COMMENT "Generating ${outfile}"
#)
##make lmk04828 depend on the outfile
- #LIST(APPEND lmk04828_srcs ${ARGV})
-#ENDMACRO(ETTUS_PYTHON_GEN_SOURCE)
+ #list(APPEND lmk04828_srcs ${ARGV})
+#endmacro(ETTUS_PYTHON_GEN_SOURCE)
####################################################
# LMK04828
####################################################
# Register definitions need to be generated
-#SET(UHD_HOST_ROOT ${CMAKE_SOURCE_DIR}/../host)
-#MESSAGE("uhd host root: ${UHD_HOST_ROOT}")
-#SET(UHD_IC_REG_MAP_PATH ${UHD_HOST_ROOT}/lib/ic_reg_maps)
+#set(UHD_HOST_ROOT ${CMAKE_SOURCE_DIR}/../host)
+#message("uhd host root: ${UHD_HOST_ROOT}")
+#set(UHD_IC_REG_MAP_PATH ${UHD_HOST_ROOT}/lib/ic_reg_maps)
-#SET(ETTUS_PYTHON_GEN_SOURCE_DEPS ${UHD_IC_REG_MAP_PATH}/common.py)
+#set(ETTUS_PYTHON_GEN_SOURCE_DEPS ${UHD_IC_REG_MAP_PATH}/common.py)
#ETTUS_PYTHON_GEN_SOURCE(
#${UHD_IC_REG_MAP_PATH}/gen_lmk04828_regs.py
#${CMAKE_CURRENT_BINARY_DIR}/lmk04828_regs.hpp
#)
-#SET(LIBUHD_PYTHON_GEN_SOURCE_DEPS)
+#set(LIBUHD_PYTHON_GEN_SOURCE_DEPS)
# Define the object
#USRP_PERIPHS_ADD_OBJECT(chips