Commit c1bc1e9 1 parent 8ee637e commit c1bc1e9 Copy full SHA for c1bc1e9
File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,16 @@ function setup_fvp() {
96
96
shift ; # drop this arg
97
97
fi
98
98
if [[ " ${OS} " != " Linux" ]]; then
99
- echo " [${FUNCNAME[0]} ] Warning: FVP only supported with Linux OS, skipping FVP setup..."
100
- echo " [${FUNCNAME[0]} ] Warning: For MacOS, using https://github.com/Arm-Examples/FVPs-on-Mac is recommended."
101
- echo " [${FUNCNAME[0]} ] Warning: Follow the instructions and make sure the path is set correctly."
102
- return 1
99
+ # Check if FVP is callable
100
+ if command -v FVP_Corstone_SSE-300_Ethos-U55 & > /dev/null; then
101
+ echo " [${FUNCNAME[0]} ] Info: FVP for MacOS seem to be installed. Continuing..."
102
+ return 0 # If true exit gracefully and proceed with setup
103
+ else
104
+ echo " [${FUNCNAME[0]} ] Warning: FVP only supported with Linux OS, skipping FVP setup..."
105
+ echo " [${FUNCNAME[0]} ] Warning: For MacOS, using https://github.com/Arm-Examples/FVPs-on-Mac is recommended."
106
+ echo " [${FUNCNAME[0]} ] Warning: Follow the instructions and make sure the path is set correctly."
107
+ return 1 # Throw error. User need to install FVP according to ^^^
108
+ fi
103
109
fi
104
110
105
111
# Download and install the Corstone 300 FVP simulator platform
You can’t perform that action at this time.
0 commit comments