Remove unnecessary code

Because the scripts are always invoked from the project's root

Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
This commit is contained in:
Elena Uziunaite
2024-11-12 14:46:16 +00:00
parent d74f989831
commit 030283508b
Executable → Regular
-12
View File
@@ -15,12 +15,6 @@ read_project_name_file () {
PROJECT_NAME_FILE="scripts/project_name.txt"
if echo "$SCRIPT_DIR" | grep -q "/framework/scripts" || echo "$SCRIPT_DIR" | grep -q "/tests/scripts"; then
PROJECT_NAME_FILE="../../scripts/project_name.txt"
elif echo "$SCRIPT_DIR" | grep -q "/mbedtls/scripts" || echo "$SCRIPT_DIR" | grep -q "/TF-PSA-Crypto/scripts"; then
PROJECT_NAME_FILE="project_name.txt"
fi
if read -r PROJECT_NAME < "$PROJECT_NAME_FILE"; then :; else
echo "$PROJECT_NAME_FILE does not exist... Exiting..." >&2
exit 1
@@ -43,12 +37,6 @@ read_build_info () {
BUILD_INFO_FILE="include/mbedtls/build_info.h"
if echo "$SCRIPT_DIR" | grep -q "/framework/scripts" || echo "$SCRIPT_DIR" | grep -q "/tests/scripts"; then
BUILD_INFO_FILE="../../include/mbedtls/build_info.h"
elif echo "$SCRIPT_DIR" | grep -q "/mbedtls/scripts"; then
BUILD_INFO_FILE="../include/mbedtls/build_info.h"
fi
if [ ! -f "$BUILD_INFO_FILE" ]; then
echo "File $BUILD_INFO_FILE not found."
exit 1