7 years, 10 months ago.

Building the mbed SDK using Yotta

Until now I have been using mbed's workspace tools to build the mbed SDK for a custom target based on the EFM32HG. However, to make it easier to have a specific mbed version as a dependency of a project and to be a bit more future-proof, it would be nicer to have the mbed SDK built with the Yotta build system instead.

Judging from the module.json file in the repository, the mbed SDK can be built using Yotta. However, when I try to build mbed-dev (hg revision a2b798ec44f6) for the `efm32hg-stk-gcc` target, I get the following error:

../../api/platform.h:21:20: fatal error: device.h: No such file or directory

Upon closer inspection, the mbed sdk seems to contain a .yotta_ignore file, containing a line stating `TARGET_Silicon_Labs` which, I presume, means the Mbed SDK can't be built for any Silicon Labs target.

Is it a good idea to build the mbed SDK using Yotta? What is the best way to build a specific version of the mbed SDK for EFM32hg based targets?

Be the first to answer this question.