Skip to content
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