@@ -45,7 +45,7 @@ build.ldscript={runtime.platform.path}/variants/llext/linker_script.ld
45
45
build.llext_link_flags=-r -e main
46
46
build.extra_extra_ldflags=
47
47
build.suffix=
48
- upload.extension=llext.dfu
48
+ upload.extension=elf-zsk.bin
49
49
postbuild_debug=
50
50
postbuild_mode=
51
51
@@ -89,7 +89,8 @@ recipe.S.o.pattern="{compiler.path}{compiler.S.cmd}" {compiler.S.flags} -DARDUIN
89
89
recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}"
90
90
91
91
## 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
93
94
94
95
## Create eeprom
95
96
recipe.objcopy.eep.pattern=
@@ -101,18 +102,17 @@ recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf
101
102
recipe.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"
102
103
103
104
## 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
107
107
108
108
## Compute size
109
109
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
110
110
recipe.size.regex.data=^(?:\.data|\.bss)\s+([0-9]+).*
111
111
recipe.size.regex=^(?:\.data|\.text|\.rodata)\S*?\s+([0-9]+).*
112
112
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}
116
116
117
117
118
118
# Required discoveries and monitors
@@ -242,7 +242,7 @@ tools.pyocd.path=
242
242
tools.pyocd.cmd=pyocd
243
243
tools.pyocd.upload.params.verbose=
244
244
tools.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}
246
246
247
247
tools.pyocd.bootloader.params.verbose=
248
248
tools.pyocd.bootloader.params.quiet=
0 commit comments