PASDK-319:Update PAF build script to include DEL3 (not used in DSP application)
[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\util\statusop_common
76 gmake clean
77 gmake install
78 popd
80 pushd %PAF_ROOT_DIR%\pa\asp\ae0
81 gmake clean
82 gmake install
83 popd
85 pushd %PAF_ROOT_DIR%\pa\asp\ml0
86 gmake clean
87 gmake install
88 popd
90 pushd %PAF_ROOT_DIR%\pa\asp\fil
91 gmake clean
92 gmake install
93 popd
95 pushd %PAF_ROOT_DIR%\pa\asp\src4
96 gmake clean
97 gmake install
98 popd
100 pushd %PAF_ROOT_DIR%\pa\asp\del3
101 gmake clean
102 gmake install
103 popd
105 if "%1"=="DSP" goto cleanupenv
108 rem
109 rem ARM libraries
110 rem
112 :arm_libs
113 pushd %PAF_ROOT_DIR%\pa\build
114 sed -i -e "s/export ARCH   = c66x/export ARCH   = a15/g" target.mk
115 popd
117 pushd %PAF_ROOT_DIR%\pa\asp\com
118 gmake clean
119 gmake install
120 popd
122 pushd %PAF_ROOT_DIR%\pa\dec\pcm1
123 gmake clean
124 gmake install
125 popd
127 pushd %PAF_ROOT_DIR%\pa\dec\com
128 gmake clean
129 gmake install
130 popd
132 pushd %PAF_ROOT_DIR%\pa\asp\std
133 gmake clean
134 gmake install
135 popd
137 pushd %PAF_ROOT_DIR%\pa\sio\acp1
138 gmake clean
139 gmake install
140 popd
142 pushd %PAF_ROOT_DIR%\pa\util\c67x_cintrins
143 gmake clean
144 gmake install
145 popd
147 pushd %PAF_ROOT_DIR%\pa\util\simulate_dma
148 gmake clean
149 gmake install
150 popd
152 pushd %PAF_ROOT_DIR%\pa\util\statusop_common
153 gmake clean
154 gmake install
155 popd
157 pushd %PAF_ROOT_DIR%\pa\build
158 sed -i -e "s/export ARCH   = a15/export ARCH   = c66x/g" target.mk
159 popd
161 :cleanupenv
162 set PASDK_LROOT_DIR=
163 set PAF_ROOT_DIR=
166 :end