File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -478,20 +478,10 @@ def esp32_s3_args(extra_args):
478
478
action = 'store_true'
479
479
)
480
480
481
- esp_argParser .add_argument (
482
- '--enable_fb_test' ,
483
- dest = 'optimum_fb_size' ,
484
- default = False ,
485
- action = 'store_true'
486
- )
487
-
488
481
esp_args , extra_args = esp_argParser .parse_known_args (extra_args )
489
482
490
483
oct_flash = esp_args .oct_flash
491
484
board_variant = esp_args .board_variant
492
- optimum_fb_size = str (int (esp_args .optimum_fb_size ))
493
-
494
- os .environ ['EXTRA_CFLAGS' ] = f'-DLCD_RGB_OPTIMUM_FB_SIZE={ optimum_fb_size } '
495
485
496
486
return extra_args
497
487
@@ -755,8 +745,6 @@ def environ_helper(idf_path):
755
745
756
746
spawn (env_cmds , out_to_screen = False )
757
747
758
- env ['EXTRA_CFLAGS' ] = f'-DLCD_RGB_OPTIMUM_FB_SIZE={ optimum_fb_size } '
759
-
760
748
return env
761
749
762
750
@@ -850,7 +838,6 @@ def setup_idf_environ():
850
838
else :
851
839
cmds = []
852
840
853
- env ['EXTRA_CFLAGS' ] = f'-DLCD_RGB_OPTIMUM_FB_SIZE={ optimum_fb_size } '
854
841
return env , cmds
855
842
856
843
Original file line number Diff line number Diff line change @@ -246,6 +246,11 @@ def create_lvgl_header():
246
246
247
247
248
248
if __name__ == '__main__' :
249
+
250
+ if 'EXTRA_CFLAGS' not in os .environ :
251
+ os .environ ['EXTRA_CFLAGS' ] = f'-Wno-unterminated-string-initialization'
252
+ elif '-Wno-unterminated-string-initialization' not in os .environ ['EXTRA_CFLAGS' ]:
253
+ os .environ ['EXTRA_CFLAGS' ] += f' -Wno-unterminated-string-initialization'
249
254
250
255
from builder import set_mp_version
251
256
You can’t perform that action at this time.
0 commit comments