No extra build folder for st/jlink upload (#21341)
This commit is contained in:
parent
11343bb0ea
commit
da84b59ee4
@ -22,10 +22,9 @@ def add_cpu_freq():
|
|||||||
#
|
#
|
||||||
# It will separe release and debug build folders.
|
# It will separe release and debug build folders.
|
||||||
# It useful when we need keep two live versions: one debug, for debugging,
|
# It useful when we need keep two live versions: one debug, for debugging,
|
||||||
# other release, for flashing.
|
# other release, for flashing (when upload is not done automatically by jlink/stlink).
|
||||||
# Without this, PIO will recompile everything twice for any small change.
|
# Without this, PIO will recompile everything twice for any small change.
|
||||||
#
|
if env.GetBuildType() == "debug" and env.get('UPLOAD_PROTOCOL') not in ['jlink', 'stlink']:
|
||||||
if env.GetBuildType() == "debug":
|
|
||||||
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'
|
env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'
|
||||||
|
|
||||||
# On some platform, F_CPU is a runtime variable. Since it's used to convert from ns
|
# On some platform, F_CPU is a runtime variable. Since it's used to convert from ns
|
||||||
|
Loading…
Reference in New Issue
Block a user