File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- https://github.com/mbedmicro/mbed/#974ecf731c8a5de78acc9e40573f2a7c7641c2cd
1
+ https://github.com/mbedmicro/mbed/#d1ec4beabef320b48ec3cdad57e293ce7708f55f
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def wrapper(*args, **kwargs):
58
58
class Target :
59
59
# Cumulative attributes can have values appended to them, so they
60
60
# need to be computed differently than regular attributes
61
- __cumulative_attributes = ['extra_labels' , 'macros' ]
61
+ __cumulative_attributes = ['extra_labels' , 'macros' , 'features' ]
62
62
63
63
# {target_name: target_instance} map for all the targets in the system
64
64
__target_map = {}
Original file line number Diff line number Diff line change @@ -324,6 +324,11 @@ def get_symbols(self):
324
324
325
325
# Add target's symbols
326
326
self .symbols += self .target .macros
327
+ # Add target's hardware
328
+ try :
329
+ self .symbols += ["DEVICE_" + feature + "=1" for feature in self .target .features ]
330
+ except AttributeError :
331
+ pass
327
332
# Add extra symbols passed via 'macros' parameter
328
333
self .symbols += self .macros
329
334
You can’t perform that action at this time.
0 commit comments