mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 08:10:02 +02:00
Merge branch 'developer' of github.com:slsdetectorgroup/slsDetectorPackage into developer
This commit is contained in:
commit
6a20a780fe
19
cmk.sh
19
cmk.sh
@ -10,6 +10,7 @@ DEBUG=0
|
|||||||
PYTHON=0
|
PYTHON=0
|
||||||
TESTS=0
|
TESTS=0
|
||||||
SIMULATOR=0
|
SIMULATOR=0
|
||||||
|
CTBGUI=0
|
||||||
|
|
||||||
|
|
||||||
CLEAN=0
|
CLEAN=0
|
||||||
@ -18,7 +19,7 @@ CMAKE_PRE=""
|
|||||||
CMAKE_POST=""
|
CMAKE_POST=""
|
||||||
|
|
||||||
usage() { echo -e "
|
usage() { echo -e "
|
||||||
Usage: $0 [-c] [-b] [-p] [e] [t] [r] [g] [s] [i] [-h] [-d <HDF5 directory>] [-j] <Number of threads>
|
Usage: $0 [-c] [-b] [-p] [e] [t] [r] [g] [s] [u] [i] [-h] [-d <HDF5 directory>] [-j] <Number of threads>
|
||||||
-[no option]: only make
|
-[no option]: only make
|
||||||
-c: Clean
|
-c: Clean
|
||||||
-b: Builds/Rebuilds CMake files normal mode
|
-b: Builds/Rebuilds CMake files normal mode
|
||||||
@ -29,6 +30,7 @@ Usage: $0 [-c] [-b] [-p] [e] [t] [r] [g] [s] [i] [-h] [-d <HDF5 directory>] [-j]
|
|||||||
-r: Build/Rebuilds only receiver
|
-r: Build/Rebuilds only receiver
|
||||||
-g: Build/Rebuilds only gui
|
-g: Build/Rebuilds only gui
|
||||||
-s: Simulator
|
-s: Simulator
|
||||||
|
-u: Chip Test Gui
|
||||||
-j: Number of threads to compile through
|
-j: Number of threads to compile through
|
||||||
-e: Debug mode
|
-e: Debug mode
|
||||||
-i: Builds tests
|
-i: Builds tests
|
||||||
@ -67,7 +69,7 @@ For rebuilding only certain sections
|
|||||||
|
|
||||||
" ; exit 1; }
|
" ; exit 1; }
|
||||||
|
|
||||||
while getopts ":bpchd:j:trgeis" opt ; do
|
while getopts ":bpchd:j:trgeisu" opt ; do
|
||||||
case $opt in
|
case $opt in
|
||||||
b)
|
b)
|
||||||
echo "Building of CMake files Required"
|
echo "Building of CMake files Required"
|
||||||
@ -122,6 +124,10 @@ while getopts ":bpchd:j:trgeis" opt ; do
|
|||||||
echo "Compiling Options: Simulator"
|
echo "Compiling Options: Simulator"
|
||||||
SIMULATOR=1
|
SIMULATOR=1
|
||||||
;;
|
;;
|
||||||
|
u)
|
||||||
|
echo "Compiling Options: Chip Test Gui"
|
||||||
|
CTBGUI=1
|
||||||
|
;;
|
||||||
\?)
|
\?)
|
||||||
echo "Invalid option: -$OPTARG"
|
echo "Invalid option: -$OPTARG"
|
||||||
usage
|
usage
|
||||||
@ -188,14 +194,19 @@ fi
|
|||||||
|
|
||||||
#Simulator
|
#Simulator
|
||||||
if [ $SIMULATOR -eq 1 ]; then
|
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"
|
echo "Simulator Option enabled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#Chip Test Gui
|
||||||
|
if [ $CTBGUI -eq 1 ]; then
|
||||||
|
CMAKE_POST+=" -DSLS_USE_CTBGUI=ON "
|
||||||
|
echo "CTB Gui Option enabled"
|
||||||
|
fi
|
||||||
|
|
||||||
#Tests
|
#Tests
|
||||||
if [ $TESTS -eq 1 ]; then
|
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"
|
echo "Tests Option enabled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -3199,7 +3199,9 @@ int slsDetector::enableTenGigabitEthernet(int value) {
|
|||||||
sendToDetector(F_ENABLE_TEN_GIGA, value, retval);
|
sendToDetector(F_ENABLE_TEN_GIGA, value, retval);
|
||||||
FILE_LOG(logDEBUG1) << "10Gbe: " << retval;
|
FILE_LOG(logDEBUG1) << "10Gbe: " << retval;
|
||||||
shm()->tenGigaEnable = retval;
|
shm()->tenGigaEnable = retval;
|
||||||
configureMAC();
|
if (value >= 0) {
|
||||||
|
configureMAC();
|
||||||
|
}
|
||||||
if (shm()->useReceiverFlag) {
|
if (shm()->useReceiverFlag) {
|
||||||
retval = -1;
|
retval = -1;
|
||||||
value = shm()->tenGigaEnable;
|
value = shm()->tenGigaEnable;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user