@@ -45,7 +45,7 @@ build.ldscript={runtime.platform.path}/variants/llext/linker_script.ld
4545build.llext_link_flags=-r -e main
4646build.extra_extra_ldflags=
4747build.suffix=
48- upload.extension=llext.dfu
48+ upload.extension=elf-zsk.bin
4949postbuild_debug=
5050postbuild_mode=
5151
@@ -89,7 +89,8 @@ recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DARDUIN
8989recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
9090
9191## Combine gc-sections, archives, and objects
92- recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} {build.extra_flags} {build.extra_ldflags} {compiler.zephyr.ldflags} "-T{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" --specs=picolibc.specs --specs=nosys.specs {compiler.ldflags} -o "{build.path}/{build.project_name}.elf" {object_files} "{build.path}/{archive_file}" {compiler.zephyr} {compiler.zephyr.extra_ldflags} {compiler.libraries.ldflags}
92+ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" "-L{build.path}" {compiler.c.elf.flags} {compiler.c.elf.extra_flags} {build.extra_flags} {build.extra_ldflags} {compiler.zephyr.ldflags} "-T{build.ldscript}" "-Wl,-Map,{build.path}/{build.project_name}.map" --specs=picolibc.specs --specs=nosys.specs {compiler.ldflags} -o "{build.path}/{build.project_name}_debug.elf" {object_files} "{build.path}/{archive_file}" {compiler.zephyr} {compiler.zephyr.extra_ldflags} {compiler.libraries.ldflags}
93+ recipe.hooks.linking.postlink.1.pattern="{compiler.path}{build.crossprefix}strip" --strip-debug {build.path}/{build.project_name}_debug.elf -o{build.path}/{build.project_name}.elf
9394
9495## Create eeprom
9596recipe.objcopy.eep.pattern=
@@ -101,18 +102,17 @@ recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf
101102recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex"
102103
103104## Mangle the file
104- recipe.hooks.objcopy.postobjcopy.1.pattern="{compiler.path}{build.crossprefix}strip" --strip-debug {build.path}/{build.project_name}.elf -o{build.path}/{build.project_name}.llext
105- recipe.hooks.objcopy.postobjcopy.2.pattern={runtime.tools.zephyr-post-build-tool.path}/post_build {postbuild_debug} {postbuild_mode} {build.path}/{build.project_name}.llext
106- recipe.hooks.objcopy.postobjcopy.3.pattern={runtime.tools.zephyr-post-build-tool.path}/post_build {postbuild_debug} {postbuild_mode} {build.path}/{build.project_name}.bin
105+ recipe.hooks.objcopy.postobjcopy.1.pattern={runtime.tools.zephyr-post-build-tool.path}/post_build {postbuild_debug} {postbuild_mode} {build.path}/{build.project_name}.elf
106+ recipe.hooks.objcopy.postobjcopy.2.pattern={runtime.tools.zephyr-post-build-tool.path}/post_build {postbuild_debug} {postbuild_mode} {build.path}/{build.project_name}.bin
107107
108108## Compute size
109109recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
110110recipe.size.regex.data=^(?:\.data|\.bss)\s+([0-9]+).*
111111recipe.size.regex=^(?:\.data|\.text|\.rodata)\S*?\s+([0-9]+).*
112112
113- ## Save hex
114- recipe.output.tmp_file={build.project_name}.llext
115- recipe.output.save_file={build.project_name}.{build.variant}.llext
113+ ## Save output file
114+ recipe.output.tmp_file={build.project_name}.{upload.extension}
115+ recipe.output.save_file={build.project_name}.{build.variant}.{upload.extension}
116116
117117
118118# Required discoveries and monitors
@@ -242,7 +242,7 @@ tools.pyocd.path=
242242tools.pyocd.cmd=pyocd
243243tools.pyocd.upload.params.verbose=
244244tools.pyocd.upload.params.quiet=
245- tools.pyocd.upload.pattern="{cmd}" load --target {upload.target} {build.path}/{build.project_name}.dfu.bin @{upload.address}
245+ tools.pyocd.upload.pattern="{cmd}" load --target {upload.target} {build.path}/{build.project_name}.${upload.extension} @{upload.address}
246246
247247tools.pyocd.bootloader.params.verbose=
248248tools.pyocd.bootloader.params.quiet=
0 commit comments