index f6ec77930597edbeb24a0fea377f97917630b52c..6f63fd60c35d5ebab6380bcfa15cba803b0fb51c 100644 (file)
-pushd psdk_cust\pdk_k2g_1_0_1_0_eng\packages
+@echo off
+:: *************************************************************************
+:: FILE : build_pdk_libs.bat
+:: DESCRIPTION :
+::
+:: Builds DSP PDK LLD libraries: UART, SPI, and I2C.
+::
+:: *************************************************************************
+
+@echo Executing: %~fn0
+
+if "%PASDK_ROOT_DIR%" == "" set PASDK_ROOT_DIR=%~dp0..\
+
+:: Save path
+set PATH_ORG=%PATH%
+
+:: Set custom Processor SDK local root directory
+set PSDK_CUST_LROOT_DIR=%PASDK_ROOT_DIR%psdk_cust
+
+:: Set custom PDK install directory
+set PDK_VERSION=1_0_1_2_eng
+set PDK_INSTALL_DIR=%PSDK_CUST_LROOT_DIR%\pdk_k2g_%PDK_VERSION%
+
+pushd %PDK_INSTALL_DIR%\packages
call pdksetupenv.bat
-pushd ti\drv\i2c
-gmake clean
-gmake all
-popd
-pushd ti\drv\spi
-gmake clean
-gmake all
-popd
-pushd ti\drv\uart
-gmake clean
-gmake all
-popd
+:: Build I2C LLD library
+::pushd ti\drv\i2c
+::gmake clean
+::gmake all
+::popd
+gmake i2c_pasdk_clean
+gmake i2c_pasdk
+
+:: Build SPI LLD library
+::pushd ti\drv\spi
+::gmake clean
+::gmake all
+::popd
+gmake spi_pasdk_clean
+gmake spi_pasdk
+
+:: Build UART LLD library
+::pushd ti\drv\uart
+::gmake clean
+::gmake all
+::popd
+gmake uart_pasdk_clean
+gmake uart_pasdk
popd
+
+:: Restore path
+set PATH=%PATH_ORG%
+
+set PSDK_CUST_LROOT_DIR=