From 986109c2f7f83b9101a2061bd08b2273dc724839 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Sat, 2 Nov 2024 01:17:06 +0800 Subject: [PATCH] feat: add windows autobuild.bat --- .../vitis_classic_autobuild/autobuild.bat | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 zc706_cx9261a_demo/vitis_classic_autobuild/autobuild.bat diff --git a/zc706_cx9261a_demo/vitis_classic_autobuild/autobuild.bat b/zc706_cx9261a_demo/vitis_classic_autobuild/autobuild.bat new file mode 100644 index 0000000..cf85261 --- /dev/null +++ b/zc706_cx9261a_demo/vitis_classic_autobuild/autobuild.bat @@ -0,0 +1,32 @@ +@echo off +set "platform=xilinx" +set "pltform_ver=2024.1" +set "work_dir=%~dp0build" +set "config=%~dp0config.json" +set "tools_dir=%~dp0..\..\scripts\platform\%platform%" + +REM Set up enviroment +call "%tools_dir%\setenv.bat" "%pltform_ver%" +if "%ERRORLEVEL%" neq "0" ( + echo Error: Failed to installize enviroment. + pause >nul + exit /b 1 +) + +REM Build project +call "%tools_dir%\build.bat" "%config%" "%work_dir%" +if "%ERRORLEVEL%" neq "0" ( + echo Error: Failed to build project. + pause >nul + exit /b 1 +) + +REM Lauch SDK +call "%tools_dir%\launch.bat" "%pltform_ver%" "%work_dir%" +if "%ERRORLEVEL%" neq "0" ( + echo Error: Failed to launch SDK. + pause >nul + exit /b 1 +) + +exit /b 0 \ No newline at end of file