@@ -1475,7 +1475,6 @@ def generate_mbedtls_bundle(sdk_config):
1475
1475
1476
1476
# Use exec_command to change working directory
1477
1477
exec_command (cmd + crt_args , cwd = BUILD_DIR )
1478
- bundle_path = str (Path ("$BUILD_DIR" ) / "x509_crt_bundle" )
1479
1478
env .Execute (
1480
1479
env .VerboseAction (
1481
1480
" " .join (
@@ -1809,10 +1808,10 @@ def get_python_exe():
1809
1808
)
1810
1809
env .Exit (1 )
1811
1810
1812
- project_ld_scipt = generate_project_ld_script (
1811
+ project_ld_script = generate_project_ld_script (
1813
1812
sdk_config , [project_target_name , "__pio_env" ]
1814
1813
)
1815
- env .Depends ("$BUILD_DIR/$PROGNAME$PROGSUFFIX" , project_ld_scipt )
1814
+ env .Depends ("$BUILD_DIR/$PROGNAME$PROGSUFFIX" , project_ld_script )
1816
1815
1817
1816
elf_config = get_project_elf (target_configs )
1818
1817
default_config_name = find_default_component (target_configs )
@@ -1829,7 +1828,7 @@ def get_python_exe():
1829
1828
env .Exit (1 )
1830
1829
1831
1830
for component_config in framework_components_map .values ():
1832
- env .Depends (project_ld_scipt , component_config ["lib" ])
1831
+ env .Depends (project_ld_script , component_config ["lib" ])
1833
1832
1834
1833
project_config = target_configs .get (project_target_name , {})
1835
1834
default_config = target_configs .get (default_config_name , {})
@@ -2214,12 +2213,12 @@ def idf_custom_component(source, target, env):
2214
2213
)
2215
2214
]
2216
2215
)
2217
- EXTRA_IMG_DIR = str ( Path ( env . subst ( "$PROJECT_DIR" )) / "variants" / "tasmota" )
2218
- env . Append (
2219
- FLASH_EXTRA_IMAGES = [
2220
- ( offset , str ( Path ( EXTRA_IMG_DIR ) / img )) for offset , img in board . get ( "upload.arduino.flash_extra_images" , [])
2221
- ]
2222
- )
2216
+ extra_imgs = board . get ( "upload.arduino.flash_extra_images" , [] )
2217
+ if extra_imgs :
2218
+ extra_img_dir = Path ( env . subst ( "$PROJECT_DIR" )) / "variants" / "tasmota"
2219
+ env . Append (
2220
+ FLASH_EXTRA_IMAGES = [( offset , str ( extra_img_dir / img )) for offset , img in extra_imgs ]
2221
+ )
2223
2222
2224
2223
def _parse_size (value ):
2225
2224
if isinstance (value , int ):
0 commit comments