PASDK-258:Add FD package version number build scripts.
[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 :: Save path
15 set PATH_ORG=%PATH%
17 :: Set custom Processor SDK local root directory
18 set PSDK_CUST_LROOT_DIR=%PASDK_ROOT_DIR%psdk_cust
20 pushd %PSDK_CUST_LROOT_DIR%\pdk_k2g_1_0_1_0_eng\packages
21 call pdksetupenv.bat
23 :: Build I2C LLD library
24 ::pushd ti\drv\i2c
25 ::gmake clean
26 ::gmake all
27 ::popd
28 gmake i2c_pasdk_clean
29 gmake i2c_pasdk
31 :: Build SPI LLD library
32 ::pushd ti\drv\spi
33 ::gmake clean
34 ::gmake all
35 ::popd
36 gmake spi_pasdk_clean
37 gmake spi_pasdk
39 :: Build UART LLD library
40 ::pushd ti\drv\uart
41 ::gmake clean
42 ::gmake all
43 ::popd
44 gmake uart_pasdk_clean
45 gmake uart_pasdk
47 popd
49 :: Restore path
50 set PATH=%PATH_ORG%
52 set PSDK_CUST_LROOT_DIR=