Commit f918ec85 authored by norvell's avatar norvell
Browse files

Move definition of enable-debugging

parent eb57e18b
Loading
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -112,6 +112,12 @@ stages:
    echo "Commit time was $CI_COMMIT_TIMESTAMP"
    date | xargs echo "System time is"

.enable-debugging: &enable-debugging
  - sed -i.bak -e "s/\/\*\ *\(#define\ *DEBUGGING\ *\)\*\//\1/g" lib_com/options.h
  - sed -i.bak -e "s/\/\/\ *\(#define\ *DEBUGGING\ *\)/\1/g" lib_com/options.h
  - sed -i.bak -e "s/\/\*\ *\(#define\ *DEBUG_MODE_INFO\ *\)\*\//\1/g" lib_com/options.h
  - sed -i.bak -e "s/\/\/\ *\(#define\ *DEBUG_MODE_INFO\ *\)/\1/g" lib_com/options.h

.build-reference-and-dut-binaries: &build-reference-and-dut-binaries
  - current_commit_sha=$(git rev-parse HEAD)
  ### build reference binaries
@@ -135,12 +141,6 @@ stages:
  - make clean
  - make -j

.enable-debugging: &enable-debugging
  - sed -i.bak -e "s/\/\*\ *\(#define\ *DEBUGGING\ *\)\*\//\1/g" lib_com/options.h
  - sed -i.bak -e "s/\/\/\ *\(#define\ *DEBUGGING\ *\)/\1/g" lib_com/options.h
  - sed -i.bak -e "s/\/\*\ *\(#define\ *DEBUG_MODE_INFO\ *\)\*\//\1/g" lib_com/options.h
  - sed -i.bak -e "s/\/\/\ *\(#define\ *DEBUG_MODE_INFO\ *\)/\1/g" lib_com/options.h

.build-and-create-reference-outputs: &build-and-create-reference-outputs
  - *build-reference-and-dut-binaries