소스 검색

wscript: adjust max fw size when building PRF variants

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
Gerard Marull-Paretas 1 개월 전
부모
커밋
9ab2926f00
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      wscript

+ 5 - 2
wscript

@@ -1576,8 +1576,11 @@ def _check_firmware_image_size(ctx, path):
             # 2048k of flash and 32k bootloader
             max_firmware_size = (2048 - 32) * BYTES_PER_K
     elif ctx.env.MICRO_FAMILY == 'NRF52840':
-        # 1024k of flash and 32k bootloader
-        max_firmware_size = (1024 - 32) * BYTES_PER_K
+        if ctx.variant == 'prf' and not ctx.env.IS_MFG:
+            max_firmware_size = 512 * BYTES_PER_K
+        else:
+            # 1024k of flash and 32k bootloader
+            max_firmware_size = (1024 - 32) * BYTES_PER_K
     else:
         ctx.fatal('Cannot check firmware size against unknown micro family "{}"'
                   .format(ctx.env.MICRO_FAMILY))