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

compiler: Add compiler flags $(...) patterns #510

Closed m-gorecki closed 1 year ago

m-gorecki commented 1 year ago

This adds the possibility to define and use $(...) patterns with compiler flags. To do so you have to define new value in compiler's syscfg.yml file, for example:

EXAMPLE_FLAGS: value:"-my -compiler -flags"

Expression "$(EXAMPLE_FLAGS)" used in any compiler flags definition in compiler.yml will be now replaced with the defined value (in this case whith "-my -compiler -flags"). It is also possible to override or add new patterns from other syscfg.yml files, for example from some application's syscfg.yml