mirror of https://github.com/ARMmbed/mbed-os.git
made features a first class citizen
parent
ff11e7f022
commit
66574aaa9d
|
@ -6,6 +6,7 @@
|
||||||
"extra_labels": [],
|
"extra_labels": [],
|
||||||
"is_disk_virtual": false,
|
"is_disk_virtual": false,
|
||||||
"macros": [],
|
"macros": [],
|
||||||
|
"features": [],
|
||||||
"detect_code": [],
|
"detect_code": [],
|
||||||
"public": false
|
"public": false
|
||||||
},
|
},
|
||||||
|
|
|
@ -298,11 +298,7 @@ class mbedToolchain:
|
||||||
|
|
||||||
# Add target's symbols
|
# Add target's symbols
|
||||||
self.symbols += self.target.macros
|
self.symbols += self.target.macros
|
||||||
# Add target's hardware
|
|
||||||
try :
|
|
||||||
self.symbols += ["DEVICE_" + feature + "=1" for feature in self.target.features]
|
self.symbols += ["DEVICE_" + feature + "=1" for feature in self.target.features]
|
||||||
except AttributeError :
|
|
||||||
pass
|
|
||||||
# Add extra symbols passed via 'macros' parameter
|
# Add extra symbols passed via 'macros' parameter
|
||||||
self.symbols += self.macros
|
self.symbols += self.macros
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue