mbed-os/tools/export/makefile
Volodymyr Medvid a48ee113ea PSOC6: refactor M0 image merging, enable export to makefile
Rename the existing PSoC-specific m0_core_img key in targets.json
as a more generic hex_filename key. Update makefile exporter to select
the subset of resources.hex_files matching the hex_filename value.
Without this fix, multiple prebuilt CM0+ hex files are found in the
target resources and erroneously passed to the srec_cat tool.

The fix is generic so other targets that need post-build hex merging
can use this key to pass the correct image to srecord tool.

The fix also removes sub_target key: instead, rely hex_filename json
key to detect if the hex image merging needs to be done.
The sub_target is not used in mbed-os codebase for anything else.

It is possible to override the hex file name in mbed_app.json:
{
  "target_overrides": {
    "*": {
      "target.hex_filename": "my_custom_m0_image.hex"
    }
}
2019-01-22 15:40:22 -08:00
..
Makefile.tmpl Use shell escaping instead of quoting 2018-08-02 09:09:07 -05:00
__init__.py PSOC6: refactor M0 image merging, enable export to makefile 2019-01-22 15:40:22 -08:00
make-arm.tmpl Genericify arm compiler exporter to versions 5 + 6 2017-09-11 13:20:32 -05:00
make-gcc-arm.tmpl fix unresolved linker msg: __wrap_ 2017-07-31 23:34:48 +02:00
make-iar.tmpl Generalize make exporters for all toolchains 2016-09-15 11:42:52 -05:00