From 322970ebede0ee4685c75312091d262e50c0b80b Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 23 Aug 2019 10:18:45 +0200 Subject: [PATCH 1/2] ctb gui option in cmk.sh enabled --- cmk.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/cmk.sh b/cmk.sh index 14e67aadb..70328c2a9 100755 --- a/cmk.sh +++ b/cmk.sh @@ -10,6 +10,7 @@ DEBUG=0 PYTHON=0 TESTS=0 SIMULATOR=0 +CTBGUI=0 CLEAN=0 @@ -18,7 +19,7 @@ CMAKE_PRE="" CMAKE_POST="" usage() { echo -e " -Usage: $0 [-c] [-b] [-p] [e] [t] [r] [g] [s] [i] [-h] [-d ] [-j] +Usage: $0 [-c] [-b] [-p] [e] [t] [r] [g] [s] [u] [i] [-h] [-d ] [-j] -[no option]: only make -c: Clean -b: Builds/Rebuilds CMake files normal mode @@ -29,6 +30,7 @@ Usage: $0 [-c] [-b] [-p] [e] [t] [r] [g] [s] [i] [-h] [-d ] [-j] -r: Build/Rebuilds only receiver -g: Build/Rebuilds only gui -s: Simulator + -u: Chip Test Gui -j: Number of threads to compile through -e: Debug mode -i: Builds tests @@ -67,7 +69,7 @@ For rebuilding only certain sections " ; exit 1; } -while getopts ":bpchd:j:trgeis" opt ; do +while getopts ":bpchd:j:trgeisu" opt ; do case $opt in b) echo "Building of CMake files Required" @@ -122,6 +124,10 @@ while getopts ":bpchd:j:trgeis" opt ; do echo "Compiling Options: Simulator" SIMULATOR=1 ;; + u) + echo "Compiling Options: Chip Test Gui" + CTBGUI=1 + ;; \?) echo "Invalid option: -$OPTARG" usage @@ -188,14 +194,19 @@ fi #Simulator if [ $SIMULATOR -eq 1 ]; then - CMAKE_POST+=" -DCMAKE_BUILD_TYPE=Debug -DSLS_USE_SIMULATOR=ON " + CMAKE_POST+=" -DSLS_USE_SIMULATOR=ON " echo "Simulator Option enabled" fi +#Chip Test Gui +if [ $CTBGUI -eq 1 ]; then + CMAKE_POST+=" -DSLS_USE_CTBGUI=ON " + echo "CTB Gui Option enabled" +fi #Tests if [ $TESTS -eq 1 ]; then - CMAKE_POST+=" -DCMAKE_BUILD_TYPE=Debug -DSLS_USE_TESTS=ON -DSLS_USE_INTEGRATION_TESTS=ON" + CMAKE_POST+=" -DSLS_USE_TESTS=ON -DSLS_USE_INTEGRATION_TESTS=ON" echo "Tests Option enabled" fi From 8ec0ac4eb3bfc6462eeab6016519d83e598bdb63 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 23 Aug 2019 10:21:20 +0200 Subject: [PATCH 2/2] client bug fix: was configuring mac even for a get of tengiga enable --- slsDetectorSoftware/src/slsDetector.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slsDetectorSoftware/src/slsDetector.cpp b/slsDetectorSoftware/src/slsDetector.cpp index b62503a92..534823093 100755 --- a/slsDetectorSoftware/src/slsDetector.cpp +++ b/slsDetectorSoftware/src/slsDetector.cpp @@ -3199,7 +3199,9 @@ int slsDetector::enableTenGigabitEthernet(int value) { sendToDetector(F_ENABLE_TEN_GIGA, value, retval); FILE_LOG(logDEBUG1) << "10Gbe: " << retval; shm()->tenGigaEnable = retval; - configureMAC(); + if (value >= 0) { + configureMAC(); + } if (shm()->useReceiverFlag) { retval = -1; value = shm()->tenGigaEnable;