mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2853 from bridadan/examples-toolchain-filtering
[Tests] Example build toolchain filteringpull/2828/merge
commit
fbce4e18b2
|
@ -8,5 +8,5 @@
|
||||||
{"features": ["IPV6"]},
|
{"features": ["IPV6"]},
|
||||||
"https://github.com/ARMmbed/mbed-os-example-client" : {"features": ["IPV6"]},
|
"https://github.com/ARMmbed/mbed-os-example-client" : {"features": ["IPV6"]},
|
||||||
"https://github.com/ARMmbed/mbed-os-example-sockets" : {"features": ["IPV6"]},
|
"https://github.com/ARMmbed/mbed-os-example-sockets" : {"features": ["IPV6"]},
|
||||||
"https://github.com/ARMmbed/mbed-os-example-uvisor" : {"targets": ["K64F"]}
|
"https://github.com/ARMmbed/mbed-os-example-uvisor" : {"targets": ["K64F"], "toolchains":["GCC_ARM"]}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,8 @@ SUPPORTED_TOOLCHAINS = ["ARM", "IAR", "GCC_ARM"]
|
||||||
|
|
||||||
|
|
||||||
def target_cross_toolchain(allowed_toolchains,
|
def target_cross_toolchain(allowed_toolchains,
|
||||||
features=[], targets=TARGET_MAP.keys()):
|
features=[], targets=TARGET_MAP.keys(),
|
||||||
|
toolchains=SUPPORTED_TOOLCHAINS):
|
||||||
"""Generate pairs of target and toolchains
|
"""Generate pairs of target and toolchains
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
@ -42,14 +43,16 @@ def target_cross_toolchain(allowed_toolchains,
|
||||||
features - the features that must be in the features array of a
|
features - the features that must be in the features array of a
|
||||||
target
|
target
|
||||||
targets - a list of available targets
|
targets - a list of available targets
|
||||||
|
toolchains - a list of available toolchains
|
||||||
"""
|
"""
|
||||||
for target, toolchains in get_mbed_official_release("5"):
|
for release_target, release_toolchains in get_mbed_official_release("5"):
|
||||||
for toolchain in toolchains:
|
for toolchain in release_toolchains:
|
||||||
if (toolchain in allowed_toolchains and
|
if (toolchain in allowed_toolchains and
|
||||||
target in targets and
|
toolchain in toolchains and
|
||||||
all(feature in TARGET_MAP[target].features
|
release_target in targets and
|
||||||
|
all(feature in TARGET_MAP[release_target].features
|
||||||
for feature in features)):
|
for feature in features)):
|
||||||
yield target, toolchain
|
yield release_target, toolchain
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in New Issue