diff --git a/scripts/project_detection.sh b/scripts/project_detection.sh old mode 100755 new mode 100644 index ab57f006d..bbe28139d --- a/scripts/project_detection.sh +++ b/scripts/project_detection.sh @@ -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