]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - build_all.bat
a9d96d422ebfcb45a7b591c9b57d18aeb99cc109
[processor-sdk/performance-audio-sr.git] / build_all.bat
1 @echo off
2 :: *************************************************************************
3 ::  FILE           : build_all.bat
4 ::  DESCRIPTION    :
5 ::
6 ::      Builds all for Dolby Harmony or DTS:X project for DA10x. This includes:
7 ::          (1) DSP PDK LLD libraries: UART, SPI, I2C
8 ::          (2) ARM/DSP PAF libraries
9 ::          (3) ARM/DSP algorithm components libraries, either of:
10 ::              - Atmos component libraries: BMDA, CAR, DDP, MAT-THD, OAR
11 ::              - DTS:X component libraries: DTS:X Decoder, PARMA
12 ::          (4) DSP PDK platform library
13 ::          (5) ARM/DSP applications
14 ::      Creates .zip packages for Atmos component libraries.
15 ::
16 :: *************************************************************************
18 @echo Executing:  %~fn0 %1 %2
20 :: *************************************************************************
21 :: *** Check command line input
22 :: *************************************************************************
23 if "%1"=="" goto use_err1
24 if "%2"=="" goto use_err1
25 if "%3"=="" goto use_err1
26 goto cont1
29 :use_err1
30 :: USAGE ERROR
31 echo ERROR: Supplied options are invalid.
32 echo .
33 echo . Usage: %0 ^<buildType^> SuperRepo ^<buildProfile^>
34 echo . -OR-
35 echo . Usage: %0 ^<buildType^> ^<buildTag^> ^<buildProfile^>
36 echo .
37 echo .     buildType        : DH or DTSX
38 echo .     SuperRepo        : Use Git super-repository to track submodules for build targets
39 echo .     buildTag         : Use Git tag to track submodules for build targets 
40 echo .     buildProfile     : Debug, Release, or SDF
41 echo .
42 goto end
45 :cont1
46 set PASDK_ROOT_DIR=%~dp0
49 if "%3" NEQ "SDF" goto install_tools
50 :: Set PASDK target and version
51 set PASDK_TARGET_PLATFORM=k2g
52 set PASDK_VERSION=01_00_00_04
53 :: Set FD package version
54 set FD_PKG_VERSION=01_00_00_04
56 :: Set release directory
57 set RELEASE_DIR=%PASDK_ROOT_DIR%release
58 :: Set FD package directory
59 set FD_PKG_DIR=%RELEASE_DIR%\fd_package
60 :: Set OS package directory
61 set OS_PKG_DIR=%RELEASE_DIR%\os_package
63 :: Set DH-IP package directory
64 set DHIP_PKG_DIR=%RELEASE_DIR%\dhip_package
65 :: Set DTSX-IP package directory
66 set DTSXIP_PKG_DIR=%RELEASE_DIR%\dtsxip_package
69 if exist %RELEASE_DIR%\nul ( rmdir /S / Q %RELEASE_DIR% )
72 :install_tools
73 :: *************************************************************************
74 :: *** Install tools
75 :: *************************************************************************
76 :: FL: tool installation not yet supported
77 ::@call scripts\install_tools.bat
78 @call scripts\setup_env.bat
80 :: *************************************************************************
81 :: *** Install code
82 :: *************************************************************************
83 ::@call scripts\install_code.bat %1
85 :: *************************************************************************
86 :: *** Build
87 :: *************************************************************************
88 :: Build DSP PDK LLD libraries
89 @pushd scripts
90 @cmd /c build_pdk_libs.bat
91 @popd
93 :: Build ARM/DSP PAF libraries
94 @pushd scripts
95 @call build_paf_libs.bat
96 @popd
98 :: Build ARM/DSP component libraries
99 if "%2" NEQ "DH" goto build_dtsx_libs
100 :: Build Atmos component libraries
101 @pushd scripts
102 @call build_dh_libs.bat
103 @popd
105 if "%3" NEQ "SDF" goto build_ccs_projects
106 :: Build DH-IP packages
107 @pushd scripts
108 @call build_dhip_pkgs %DHIP_PKG_DIR%
109 @popd
111 goto build_ccs_projects
113 :build_dtsx_libs
114 :: Build DTS:X component libraries
115 @pushd scripts
116 @call build_dtsx_libs.bat
117 @call build_parma_libs.bat
118 @popd
120 if "%3" NEQ "SDF" goto build_ccs_projects
121 :: Build DTSX-IP packages
122 @pushd scripts
123 @call build_dtsxip_pkgs %DTSXIP_PKG_DIR%
124 @popd
126 :build_ccs_projects
127 :: Build DSP PDK platform library, ARM/DSP applications
128 @pushd scripts
129 @call build_ccs_projects.bat %3 %DHIP_PKG_DIR%
130 @popd
132 if "%3" NEQ "SDF" goto cleanupenv
133 :: Build FD package
134 @pushd scripts
135 @call build_fd_pkg.bat %FD_PKG_DIR%
136 @popd
138 :: Build OS package
139 @pushd scripts
140 @call build_os_pkg.bat %OS_PKG_DIR%
141 @popd
144 :cleanupenv
145 set PASDK_ROOT_DIR=
146 set PASDK_TARGET_PLATFORM=
147 set PASDK_VERSION=
148 set FD_PKG_VERSION=
149 set RELEASE_DIR=
150 set FD_PKG_DIR=
151 set OS_PKG_DIR=
152 set DHIP_PKG_DIR=
153 set DTSXIP_PKG_DIR=
155 :end