소스 검색

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

Astra 3 년 전
부모
커밋
dbf1d9f332
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      SConstruct

+ 2 - 0
SConstruct

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