浏览代码

Allow to customize OUTDIR in config.sh

Useful for custom build trees.
Yuri D'Elia 4 年之前
父节点
当前提交
a9f0ff441d
共有 1 个文件被更改,包括 3 次插入1 次删除
  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"