aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/usrp3/CMakeLists.txt
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2015-02-12 10:30:34 -0800
committerAshish Chaudhari <ashish@ettus.com>2015-02-12 10:30:34 -0800
commit3157734691882662fae4f86475a78db8fee1b441 (patch)
tree1187761cd75ddab101e532c5e8c50901e7e93acb /firmware/usrp3/CMakeLists.txt
parentbfe4982ac3aa5f75eba89f25e896a0455c6b2930 (diff)
downloaduhd-3157734691882662fae4f86475a78db8fee1b441.tar.gz
uhd-3157734691882662fae4f86475a78db8fee1b441.tar.bz2
uhd-3157734691882662fae4f86475a78db8fee1b441.zip
usrp3,x300: Replaced printfs with traces
Diffstat (limited to 'firmware/usrp3/CMakeLists.txt')
-rw-r--r--firmware/usrp3/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/firmware/usrp3/CMakeLists.txt b/firmware/usrp3/CMakeLists.txt
index c25adb68a..f71b79b0c 100644
--- a/firmware/usrp3/CMakeLists.txt
+++ b/firmware/usrp3/CMakeLists.txt
@@ -68,6 +68,20 @@ FIND_PROGRAM(OBJDUMP zpu-elf-objdump)
FIND_PROGRAM(HEXDUMP hexdump)
########################################################################
+# Firmware tracing support
+########################################################################
+# Look at include/trace.h to see what the different trace levels map to.
+SET(TRACE_LEVEL "0" CACHE STRING "Firmware Trace Level") #0 by default
+OPTION(TRACE_LEVEL "Firmware Trace Level" "")
+IF(TRACE_LEVEL)
+ #If TRACE_LEVEL == 0, don't define UHD_FW_TRACE_LEVEL so that the C
+ #code can easily detect if tracing is requested
+ IF(${TRACE_LEVEL} GREATER 0)
+ ADD_DEFINITIONS(-DUHD_FW_TRACE_LEVEL=${TRACE_LEVEL})
+ ENDIF(${TRACE_LEVEL} GREATER 0)
+ENDIF(TRACE_LEVEL)
+
+########################################################################
# helper functions to build output formats
########################################################################
SET(GEN_OUTPUTS_BIN_SIZE "bin_size_not_set") #set before calling