Add `COMPONENT_` defines

pull/7644/head
Jimmy Brisson 2018-08-06 09:34:31 -05:00
parent a87d907268
commit 419761913a
1 changed files with 2 additions and 0 deletions

View File

@ -205,6 +205,8 @@ class mbedToolchain:
self.cxx_symbols += ["DEVICE_" + data + "=1" for data in self.target.device_has]
# Add target's features
self.cxx_symbols += ["FEATURE_" + data + "=1" for data in self.target.features]
# Add target's components
self.cxx_symbols += ["COMPONENT_" + data + "=1" for data in self.target.components]
# Add extra symbols passed via 'macros' parameter
self.cxx_symbols += self.macros