@@ -32,7 +32,8 @@ def print_stuff(name, lst):
32
32
33
33
34
34
def target_cross_toolchain (allowed_toolchains ,
35
- features = [], targets = TARGET_MAP .keys ()):
35
+ features = [], targets = TARGET_MAP .keys (),
36
+ toolchains = SUPPORTED_TOOLCHAINS ):
36
37
"""Generate pairs of target and toolchains
37
38
38
39
Args:
@@ -42,14 +43,16 @@ def target_cross_toolchain(allowed_toolchains,
42
43
features - the features that must be in the features array of a
43
44
target
44
45
targets - a list of available targets
46
+ toolchains - a list of available toolchains
45
47
"""
46
- for target , toolchains in get_mbed_official_release ("5" ):
47
- for toolchain in toolchains :
48
+ for release_target , release_toolchains in get_mbed_official_release ("5" ):
49
+ for toolchain in release_toolchains :
48
50
if (toolchain in allowed_toolchains and
49
- target in targets and
50
- all (feature in TARGET_MAP [target ].features
51
+ toolchain in toolchains and
52
+ release_target in targets and
53
+ all (feature in TARGET_MAP [release_target ].features
51
54
for feature in features )):
52
- yield target , toolchain
55
+ yield release_target , toolchain
53
56
54
57
55
58
def main ():
0 commit comments