Browse Source

No extra build folder for st/jlink upload (#21341)

vanilla_fb_2.0.x
Victor Oliveira 3 years ago
committed by GitHub
parent
commit
da84b59ee4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      buildroot/share/PlatformIO/scripts/common-cxxflags.py

5
buildroot/share/PlatformIO/scripts/common-cxxflags.py

@ -22,10 +22,9 @@ def add_cpu_freq():
#
# It will separe release and debug build folders.
# 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.
#
if env.GetBuildType() == "debug":
if env.GetBuildType() == "debug" and env.get('UPLOAD_PROTOCOL') not in ['jlink', 'stlink']:
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

Loading…
Cancel
Save