2024-10-23 08:41:15 +00:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
|
|
|
# all.sh
|
|
|
|
#
|
|
|
|
# Copyright The Mbed TLS Contributors
|
|
|
|
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
|
|
|
|
|
|
# This file is executable; it is the entry point for users and the CI.
|
|
|
|
# See "Files structure" in all-core.sh for other files used.
|
|
|
|
|
|
|
|
# This script must be invoked from the project's root.
|
|
|
|
|
2024-10-24 08:05:36 +00:00
|
|
|
# Prevent silly mistakes when people would invoke this from mbedtls
|
2024-11-12 10:57:46 +00:00
|
|
|
if [ -d tf-psa-crypto -a -d include/mbedtls ]; then
|
2024-10-24 08:05:36 +00:00
|
|
|
echo "When invoking this script from an mbedtls checkout," >&2
|
|
|
|
echo "you must change the working directory to tf-psa-crypto." >&2
|
|
|
|
exit 255
|
|
|
|
fi
|
|
|
|
|
2024-11-12 10:57:46 +00:00
|
|
|
if [ -d ../include/mbedtls -a -d ../framework ]; then
|
|
|
|
# Running inside an mbedtls checkout: get the framework from mbedtls.
|
|
|
|
source ../framework/scripts/all-core.sh
|
|
|
|
else
|
|
|
|
# Running standalone: use our own framework.
|
|
|
|
source framework/scripts/all-core.sh
|
|
|
|
fi
|
2024-10-23 08:41:15 +00:00
|
|
|
|
|
|
|
main "$@"
|