File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,11 @@ def add_tinyuf2_extra_image():
176176libs = []
177177
178178variants_dir = join (FRAMEWORK_DIR , "variants" )
179+ build_name = join (board_config .get ("name" ))
179180
180181if "build.variants_dir" in board_config :
181- variants_dir = join ("$PROJECT_DIR" , board_config .get ("build.variants_dir" ))
182+ if "Tasmota" not in build_name :
183+ variants_dir = join ("$PROJECT_DIR" , board_config .get ("build.variants_dir" ))
182184
183185if "build.variant" in board_config :
184186 env .Append (CPPPATH = [join (variants_dir , board_config .get ("build.variant" ))])
@@ -202,9 +204,8 @@ def add_tinyuf2_extra_image():
202204#
203205
204206# Tasmota places extra images "safeboot" in custom variants folder in project directory
205- flash_extra_img = board_config .get ("build.variants_dir" , "" )
206- if flash_extra_img :
207- EXTRA_IMG_DIR = variants_dir
207+ if "Tasmota" in build_name :
208+ EXTRA_IMG_DIR = join (variants_dir , "tasmota" )
208209else :
209210 EXTRA_IMG_DIR = FRAMEWORK_DIR
210211
You can’t perform that action at this time.
0 commit comments