]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - scripts/build_pdk_libs.bat
PASDK-218:Update OAR submodule for 96 kHz support
[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 :: Set custom PDK install directory
21 set PDK_VERSION=1_0_1_2_eng
22 set PDK_INSTALL_DIR=%PSDK_CUST_LROOT_DIR%\pdk_k2g_%PDK_VERSION%
24 pushd %PDK_INSTALL_DIR%\packages
25 call pdksetupenv.bat
27 :: Build I2C LLD library
28 ::pushd ti\drv\i2c
29 ::gmake clean
30 ::gmake all
31 ::popd
32 gmake i2c_pasdk_clean
33 gmake i2c_pasdk
35 :: Build SPI LLD library
36 ::pushd ti\drv\spi
37 ::gmake clean
38 ::gmake all
39 ::popd
40 gmake spi_pasdk_clean
41 gmake spi_pasdk
43 :: Build UART LLD library
44 ::pushd ti\drv\uart
45 ::gmake clean
46 ::gmake all
47 ::popd
48 gmake uart_pasdk_clean
49 gmake uart_pasdk
51 popd
53 :: Restore path
54 set PATH=%PATH_ORG%
56 set PSDK_CUST_LROOT_DIR=