CMake: Image format based on MBED_OUTPUT_EXT
Requires: https://github.com/ARMmbed/mbed-tools/pull/242

The optional `OUTPUT_EXT` field in Mbed OS `targets.json` specifies
the format of the output image. This is important because
* some targets only support one image format
* each post-binary hook outputs one image only

This avoids confusion of having both .hex and .bin images generated
while only one of them is usable.
ls
1 parent 54a5fc5 commit 45a3c7193f0f251b9170fe27c3c6be6af7e5f6a7
@Lingkai Dong Lingkai Dong authored on 25 Mar 2021
Showing 1 changed file
View
CMakeLists.txt