Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSA release.py - Check that required toolchains are in PATH #10335

Merged
merged 1 commit into from
Apr 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tools/psa/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__),
os.pardir, os.pardir))
sys.path.insert(0, ROOT)
from tools.toolchains import TOOLCHAIN_CLASSES
from tools.targets import Target, TARGET_MAP, TARGET_NAMES


Expand Down Expand Up @@ -367,6 +368,11 @@ def main():
logger.info("Building the following platforms: {}".format(
', '.join([t[0] for t in psa_platforms_list])))

toolchains_set = set([t[1] for t in psa_platforms_list])
for tc in toolchains_set:
if not TOOLCHAIN_CLASSES[tc].check_executable():
raise Exception("Toolchain {} was not found in PATH".format(tc))

for target, tc, directory in psa_platforms_list:
build_psa_platform(target, tc, directory, options.debug,
options.commit, options.skip_tests,
Expand Down