apache / mynewt-newt

An OS to build, deploy and securely manage billions of devices
https://mynewt.apache.org/
Apache License 2.0
117 stars 96 forks source link

syscfg: Write defs for each APIs provided by included packages #521

Closed andrzej-kaczmarek closed 1 year ago

andrzej-kaczmarek commented 1 year ago

This adds symbols in syscfg.h for each API provided by packages included in build. The symbol name has "MYNEWTAPI" prefix followed with sanitized API name, all illegal characters in resulting name are replaced with "_".

This allows to check if any package included in build provides specific API. Could be useful if some API is not strictly required, but we can use it if provided by some package.