Update build scripts for auto build
[processor-sdk/performance-audio-sr.git] / scripts / build_pdk_libs.bat
1 @echo off
2 :: *************************************************************************
3 ::  FILE           : build_pdk_libs.bat
4 ::  DESCRIPTION    :
5 ::
6 ::     Builds DSP PDK LLD libraries: UART, SPI, and I2C.
7 ::
8 :: *************************************************************************
10 @echo Executing:  %~fn0
12 if "%PASDK_ROOT_DIR%" == "" set PASDK_ROOT_DIR=%~dp0..\
14 :: Set custom Processor SDK local root directory
15 set PSDK_CUST_LROOT_DIR=%PASDK_ROOT_DIR%psdk_cust
17 pushd %PSDK_CUST_LROOT_DIR%\pdk_k2g_1_0_1_0_eng\packages
18 call pdksetupenv.bat
20 :: Build I2C LLD library
21 pushd ti\drv\i2c
22 gmake clean
23 gmake all
24 popd
26 :: Build SPI LLD library
27 pushd ti\drv\spi
28 gmake clean
29 gmake all
30 popd
32 :: Build UART LLD library
33 pushd ti\drv\uart
34 gmake clean
35 gmake all
36 popd
38 popd
40 set PSDK_CUST_LROOT_DIR=