File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
workspace_tools/toolchains Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ def get_symbols(self):
281
281
# Target and Toolchain symbols
282
282
labels = self .get_labels ()
283
283
self .symbols = ["TARGET_%s" % t for t in labels ['TARGET' ]]
284
+ self .symbols .extend (["FEATURE_%s" % t for t in labels ['FEATURE' ]])
284
285
self .symbols .extend (["TOOLCHAIN_%s" % t for t in labels ['TOOLCHAIN' ]])
285
286
286
287
# Config support
@@ -314,6 +315,7 @@ def get_labels(self):
314
315
toolchain_labels .remove ('mbedToolchain' )
315
316
self .labels = {
316
317
'TARGET' : self .target .get_labels (),
318
+ 'FEATURE' : self .target .features ,
317
319
'TOOLCHAIN' : toolchain_labels
318
320
}
319
321
return self .labels
@@ -364,6 +366,7 @@ def scan_resources(self, path):
364
366
365
367
if ((d .startswith ('.' ) or d in self .legacy_ignore_dirs ) or
366
368
(d .startswith ('TARGET_' ) and d [7 :] not in labels ['TARGET' ]) or
369
+ (d .startswith ('FEATURE_' ) and d [8 :] not in labels ['FEATURE' ]) or
367
370
(d .startswith ('TOOLCHAIN_' ) and d [10 :] not in labels ['TOOLCHAIN' ])):
368
371
dirs .remove (d )
369
372
You can’t perform that action at this time.
0 commit comments