Add a FORCE=1 checker for flash (#1386)

This commit is contained in:
Astra 2022-07-12 22:38:40 +03:00 committed by GitHub
parent f707aa92bb
commit dbf1d9f332
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,6 +145,8 @@ distenv.Alias("copro_dist", copro_dist)
firmware_flash = distenv.AddOpenOCDFlashTarget(firmware_env) firmware_flash = distenv.AddOpenOCDFlashTarget(firmware_env)
distenv.Alias("flash", firmware_flash) distenv.Alias("flash", firmware_flash)
if distenv["FORCE"]:
distenv.AlwaysBuild(firmware_flash)
firmware_bm_flash = distenv.PhonyTarget( firmware_bm_flash = distenv.PhonyTarget(
"flash_blackmagic", "flash_blackmagic",