refactor(platform/xilinx): improve print message output
This commit is contained in:
@@ -37,10 +37,10 @@ set /a lowest_vitis_version=20192
|
|||||||
|
|
||||||
REM Determine the correct settings.bat path based on the Xilinx version and user path
|
REM Determine the correct settings.bat path based on the Xilinx version and user path
|
||||||
if %version_number% lss %lowest_vitis_version% (
|
if %version_number% lss %lowest_vitis_version% (
|
||||||
echo Setting up environment for Xilinx SDK.
|
echo Setting up environment for Xilinx SDK %xilinx_version%.
|
||||||
set settings_bat=%xilinx_path%\SDK\%xilinx_version%\settings64.bat
|
set settings_bat=%xilinx_path%\SDK\%xilinx_version%\settings64.bat
|
||||||
) else (
|
) else (
|
||||||
echo Setting up environment for Xilinx Vitis.
|
echo Setting up environment for Xilinx Vitis %xilinx_version%.
|
||||||
set settings_bat=%xilinx_path%\Vitis\%xilinx_version%\settings64.bat
|
set settings_bat=%xilinx_path%\Vitis\%xilinx_version%\settings64.bat
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ if not exist "%settings_bat%" (
|
|||||||
REM Call the settings.bat file to set up the environment
|
REM Call the settings.bat file to set up the environment
|
||||||
call "%settings_bat%"
|
call "%settings_bat%"
|
||||||
if "%ERRORLEVEL%" neq "0" (
|
if "%ERRORLEVEL%" neq "0" (
|
||||||
echo Error: Failed to source "%settings_bat%".
|
echo Error: Failed to call "%settings_bat%"
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user