mirror of https://github.com/ARMmbed/mbed-os.git
Add `COMPONENT_` defines
parent
a87d907268
commit
419761913a
|
@ -205,6 +205,8 @@ class mbedToolchain:
|
||||||
self.cxx_symbols += ["DEVICE_" + data + "=1" for data in self.target.device_has]
|
self.cxx_symbols += ["DEVICE_" + data + "=1" for data in self.target.device_has]
|
||||||
# Add target's features
|
# Add target's features
|
||||||
self.cxx_symbols += ["FEATURE_" + data + "=1" for data in self.target.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
|
# Add extra symbols passed via 'macros' parameter
|
||||||
self.cxx_symbols += self.macros
|
self.cxx_symbols += self.macros
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue