d1c5a4add2ca044f90f40ff21707ee8f2d49e896
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 cont1
24 :use_err1
25 :: USAGE ERROR
26 echo ERROR: Supplied options are invalid.
27 echo .
28 echo . Usage: %0 SuperRepo
29 echo . -OR-
30 echo . Usage: %0 ^<buildTag^>
31 echo .
32 echo . SuperRepo : Use Git super-repository to track submodules for build targets
33 echo . buildTag : Use Git tag to track submodules for build targets
34 echo .
35 goto end
38 :cont1
39 set PASDK_ROOT_DIR=%~dp0
40 :: Set release directory
41 set RELEASE_DIR=%PASDK_ROOT_DIR%release
42 :: Set DH-IP package directory
43 set DHIP_PKG_DIR=%RELEASE_DIR%\dhip_package
44 :: Set FD package directory
45 set FD_PKG_DIR=%RELEASE_DIR%\fd_package
46 :: Set OS package directory
47 set OS_PKG_DIR=%RELEASE_DIR%\os_package
50 if exist %RELEASE_DIR%\nul ( rmdir /S / Q %RELEASE_DIR% )
52 :: *************************************************************************
53 :: *** Install tools
54 :: *************************************************************************
55 :: FL: tool installation not yet supported
56 ::@call scripts\install_tools.bat
57 @call scripts\setup_env.bat
59 :: *************************************************************************
60 :: *** Install code
61 :: *************************************************************************
62 @call scripts\install_code.bat %1
64 :: *************************************************************************
65 :: *** Build
66 :: *************************************************************************
67 :: Build ARM/DSP PAF libraries
68 @pushd scripts
69 @call build_paf_libs.bat
70 @popd
72 :: Build ARM/DSP Atmos component libraries
73 @pushd scripts
74 @call build_alg_libs.bat
75 @popd
77 :: Build DSP PDK LLD libraries
78 @pushd scripts
79 @call build_pdk_libs.bat
80 @popd
81 :: FL: brute force reset PDK environment setup. Clean this up later.
82 @call scripts\setup_env.bat
84 :: Build DH-IP packages
85 @pushd scripts
86 @call build_dhip_pkgs %DHIP_PKG_DIR%
87 @popd
89 :: Build DSP PDK platform library, ARM/DSP applications
90 @pushd scripts
91 @call build_ccs_projects.bat %DHIP_PKG_DIR%
92 @popd
94 :: Build FD package
95 @pushd scripts
96 @call build_fd_pkg.bat %FD_PKG_DIR%
97 @popd
99 :: Build OS package
100 @pushd scripts
101 @call build_os_pkg.bat %OS_PKG_DIR%
102 @popd
104 set PASDK_ROOT_DIR=
105 set ARTIFACTS_DIR=
106 set DHIP_PKG_DIR=
107 set FD_PKG_DIR=
108 set OS_PKG_DIR=
111 :end
112 :: *************************************************************************
113 :: *** Nothing past this point
114 :: *************************************************************************