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 @@ -179,9 +179,11 @@ def add_tinyuf2_extra_image():
179179libs = []
180180
181181variants_dir = join (FRAMEWORK_DIR , "variants" )
182+ build_name = join (board_config .get ("name" ))
182183
183184if "build.variants_dir" in board_config :
184- variants_dir = join ("$PROJECT_DIR" , board_config .get ("build.variants_dir" ))
185+ if "Tasmota" not in build_name :
186+ variants_dir = join ("$PROJECT_DIR" , board_config .get ("build.variants_dir" ))
185187
186188if "build.variant" in board_config :
187189 env .Append (CPPPATH = [join (variants_dir , board_config .get ("build.variant" ))])
@@ -205,9 +207,8 @@ def add_tinyuf2_extra_image():
205207#
206208
207209# Tasmota places extra images "safeboot" in custom variants folder in project directory
208- flash_extra_img = board_config .get ("build.variants_dir" , "" )
209- if flash_extra_img :
210- EXTRA_IMG_DIR = variants_dir
210+ if "Tasmota" in build_name :
211+ EXTRA_IMG_DIR = join (variants_dir , "tasmota" )
211212else :
212213 EXTRA_IMG_DIR = FRAMEWORK_DIR
213214
You can’t perform that action at this time.
0 commit comments