File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,16 @@ function setup_fvp() {
9696 shift ; # drop this arg
9797 fi
9898 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
103109 fi
104110
105111 # Download and install the Corstone 300 FVP simulator platform
You can’t perform that action at this time.
0 commit comments