]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blob - build_all.bat
Add Debug, Release, and SDF build profiles. This allows normal build all and SDF...
[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 project for DA10x. This includes:
7 ::          (1) ARM/DSP PAF libraries
8 ::          (2) ARM/DSP Atmos component libraries: BMDA, CAR, DDP, MAT-THD, OAR
9 ::          (3) DSP PDK LLD libraries: UART, SPI, I2C
10 ::          (4) DSP PDK platform library
11 ::          (5) ARM/DSP applications
12 ::      Creates .zip packages for Atmos component libraries.
13 ::
14 :: *************************************************************************
16 @echo Executing:  %~fn0 %1 %2
18 :: *************************************************************************
19 :: *** Check command line input
20 :: *************************************************************************
21 if "%1"=="" goto use_err1
22 if "%2"=="" goto use_err1
23 goto cont1
26 :use_err1
27 :: USAGE ERROR
28 echo ERROR: Supplied options are invalid.
29 echo .
30 echo . Usage: %0 SuperRepo ^<buildProfile^>
31 echo . -OR-
32 echo . Usage: %0 ^<buildTag^> ^<buildProfile^>
33 echo .
34 echo .     SuperRepo        : Use Git super-repository to track submodules for build targets
35 echo .     buildTag         : Use Git tag to track submodules for build targets 
36 echo .     buildProfile     : Debug, Release, or SDF
37 echo .
38 goto end
41 :cont1
42 set PASDK_ROOT_DIR=%~dp0
45 if "%2" NEQ "SDF" goto install_tools
46 :: Set release directory
47 set RELEASE_DIR=%PASDK_ROOT_DIR%release
48 :: Set DH-IP package directory
49 set DHIP_PKG_DIR=%RELEASE_DIR%\dhip_package
50 :: Set FD package directory
51 set FD_PKG_DIR=%RELEASE_DIR%\fd_package
52 :: Set OS package directory
53 set OS_PKG_DIR=%RELEASE_DIR%\os_package
55 if exist %RELEASE_DIR%\nul ( rmdir /S / Q %RELEASE_DIR% )
58 :install_tools
59 :: *************************************************************************
60 :: *** Install tools
61 :: *************************************************************************
62 :: FL: tool installation not yet supported
63 ::@call scripts\install_tools.bat
64 @call scripts\setup_env.bat
66 :: *************************************************************************
67 :: *** Install code
68 :: *************************************************************************
69 @call scripts\install_code.bat %1
71 :: *************************************************************************
72 :: *** Build
73 :: *************************************************************************
74 :: Build ARM/DSP PAF libraries
75 @pushd scripts
76 @call build_paf_libs.bat
77 @popd
79 :: Build ARM/DSP Atmos component libraries
80 @pushd scripts
81 @call build_alg_libs.bat
82 @popd
84 :: Build DSP PDK LLD libraries
85 @pushd scripts
86 @call build_pdk_libs.bat
87 @popd
88 :: FL: brute force reset PDK environment setup. Clean this up later.
89 @call scripts\setup_env.bat
91 if "%2" NEQ "SDF" goto build_ccs_projects
92 :: Build DH-IP packages
93 @pushd scripts
94 @call build_dhip_pkgs %DHIP_PKG_DIR%
95 @popd
97 :build_ccs_projects
98 :: Build DSP PDK platform library, ARM/DSP applications
99 @pushd scripts
100 @call build_ccs_projects.bat %DHIP_PKG_DIR% %2
101 @popd
103 if "%2" NEQ "SDF" goto cleanupenv
104 :: Build FD package
105 @pushd scripts
106 @call build_fd_pkg.bat %FD_PKG_DIR%
107 @popd
109 :: Build OS package
110 @pushd scripts
111 @call build_os_pkg.bat %OS_PKG_DIR%
112 @popd
115 :cleanupenv
116 set PASDK_ROOT_DIR=
117 set ARTIFACTS_DIR=
118 set DHIP_PKG_DIR=
119 set FD_PKG_DIR=
120 set OS_PKG_DIR=
123 :end