Browse Source

Allow to customize OUTDIR in config.sh

Useful for custom build trees.
Yuri D'Elia 3 years ago
parent
commit
a9f0ff441d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lang/config.sh

+ 3 - 1
lang/config.sh

@@ -17,7 +17,9 @@ export OBJCOPY=$ARDUINO/hardware/tools/avr/bin/avr-objcopy
 export OBJDUMP=$ARDUINO/hardware/tools/avr/bin/avr-objdump
 #
 # Output folder:
-export OUTDIR="../../Prusa-Firmware-build"
+if [ -z "$OUTDIR" ]; then
+    export OUTDIR="../../Prusa-Firmware-build"
+fi
 #
 # Objects folder:
 export OBJDIR="$OUTDIR/sketch"