]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - scripts/build_paf_libs.bat
Update processor audio sdk version number
[processor-sdk/performance-audio-sr.git] / scripts / build_paf_libs.bat
1 @echo off
2 :: *************************************************************************
3 ::  FILE           : build_paf_libs.bat
4 ::  DESCRIPTION    :
5 ::
6 ::     Builds ARM/DSP PAF libraries.
7 ::     Assumes setup_env.bat has been called.
8 ::
9 :: *************************************************************************
11 :: %1:
12 ::  <none>: Build PAF libraries for ARM & DSP
13 ::    DSP : Build PAF libraries for DSP
14 ::    ARM : Build PAF libraries for ARM
15 @echo Executing:  %~fn0 %1
17 if "%PASDK_ROOT_DIR%" == "" set PASDK_ROOT_DIR=%~dp0..\
19 :: Set PASDK local root directory
20 set PASDK_LROOT_DIR=%PASDK_ROOT_DIR%pasdk
21 :: Set PAF root directory
22 set PAF_ROOT_DIR=%PASDK_LROOT_DIR%\paf
24 if "%1"=="ARM" goto arm_libs
26 rem
27 rem DSP libraries
28 rem
30 :dsp_libs
31 pushd %PAF_ROOT_DIR%\pa\build
32 sed -i -e "s/export ARCH   = a15/export ARCH   = c66x/g" target.mk
33 popd
35 pushd %PAF_ROOT_DIR%\pa\asp\com
36 gmake clean
37 gmake install
38 popd
40 pushd %PAF_ROOT_DIR%\pa\dec\pcm1
41 gmake clean
42 gmake install
43 popd
45 pushd %PAF_ROOT_DIR%\pa\dec\com
46 gmake clean
47 gmake install
48 popd
50 pushd %PAF_ROOT_DIR%\pa\asp\std
51 gmake clean
52 gmake install
53 popd
55 pushd %PAF_ROOT_DIR%\pa\sio\acp1
56 gmake clean
57 gmake install
58 popd
60 pushd %PAF_ROOT_DIR%\pa\enc\pce2
61 gmake clean
62 gmake install
63 popd
65 pushd %PAF_ROOT_DIR%\pa\sio\paf
66 gmake clean
67 gmake install
68 popd
70 pushd %PAF_ROOT_DIR%\pa\sio\dcs7
71 gmake clean
72 gmake install
73 popd
75 pushd %PAF_ROOT_DIR%\pa\asp\ae0
76 gmake clean
77 gmake install
78 popd
80 if "%1"=="DSP" goto end
83 rem
84 rem ARM libraries
85 rem
87 :arm_libs
88 pushd %PAF_ROOT_DIR%\pa\build
89 sed -i -e "s/export ARCH   = c66x/export ARCH   = a15/g" target.mk
90 popd
92 pushd %PAF_ROOT_DIR%\pa\asp\com
93 gmake clean
94 gmake install
95 popd
97 pushd %PAF_ROOT_DIR%\pa\dec\pcm1
98 gmake clean
99 gmake install
100 popd
102 pushd %PAF_ROOT_DIR%\pa\dec\com
103 gmake clean
104 gmake install
105 popd
107 pushd %PAF_ROOT_DIR%\pa\asp\std
108 gmake clean
109 gmake install
110 popd
112 pushd %PAF_ROOT_DIR%\pa\sio\acp1
113 gmake clean
114 gmake install
115 popd
117 pushd %PAF_ROOT_DIR%\pa\util\c67x_cintrins
118 gmake clean
119 gmake install
120 popd
122 pushd %PAF_ROOT_DIR%\pa\util\simulate_dma
123 gmake clean
124 gmake install
125 popd
128 :end
130 pushd %PAF_ROOT_DIR%\pa\build
131 sed -i -e "s/export ARCH   = a15/export ARCH   = c66x/g" target.mk
132 popd
134 set PASDK_LROOT_DIR=
135 set PAF_ROOT_DIR=