From a9f0ff441d3dd647134f9d8999efcd7d02197016 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Fri, 23 Apr 2021 12:15:48 +0200 Subject: [PATCH] Allow to customize OUTDIR in config.sh Useful for custom build trees. --- lang/config.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/config.sh b/lang/config.sh index f518693f..954424c2 100755 --- a/lang/config.sh +++ b/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"