summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a1be4b1)
raw | patch | inline | side by side (parent: a1be4b1)
author | Frank Livingston <frank-livingston@ti.com> | |
Mon, 5 Dec 2016 17:19:02 +0000 (11:19 -0600) | ||
committer | Frank Livingston <frank-livingston@ti.com> | |
Mon, 5 Dec 2016 17:19:02 +0000 (11:19 -0600) |
build_all.bat | patch | blob | history | |
scripts/build_ccs_projects.bat | patch | blob | history | |
scripts/build_dhip_pkg.bat | patch | blob | history | |
scripts/build_dhip_pkgs.bat | [new file with mode: 0644] | patch | blob |
diff --git a/build_all.bat b/build_all.bat
index f6ade2830c27c15fe54844d6efaa7f5a2d67974f..068a646408a2bb559868989978e0631bd46f7614 100644 (file)
--- a/build_all.bat
+++ b/build_all.bat
:: USAGE ERROR
echo ERROR: Supplied options are invalid.
echo .
-echo . Usage: %0 ^<buildTag^>
-echo . -OR-
echo . Usage: %0 SuperRepo
+echo . -OR-
+echo . Usage: %0 ^<buildTag^>
echo .
-echo . buildTag : Use Git tag to track submodules for build targets
echo . SuperRepo : Use Git super-repository to track submodules for build targets
+echo . buildTag : Use Git tag to track submodules for build targets
echo .
goto end
:cont1
set PASDK_ROOT_DIR=%~dp0
+set ARTIFACTS_DIR=%PASDK_ROOT_DIR%artifacts
+set DHIP_PKG_DIR=%ARTIFACTS_DIR%\dhip_package
+set FD_PKG_DIR=%ARTIFACTS_DIR%\fd_package
:: *************************************************************************
:: *** Install tools
@pushd scripts
@call build_pdk_libs.bat
@popd
-
:: FL: brute force reset PDK environment setup. Clean this up later.
@call scripts\setup_env.bat
+
+:: Build DH-IP packages
+@pushd scripts
+@call build_dhip_pkgs %DHIP_PKG_DIR%
+@popd
+
:: Build DSP PDK platform library, ARM/DSP applications
@pushd scripts
-@call build_ccs_projects.bat
+@call build_ccs_projects.bat %DHIP_PKG_DIR%
@popd
+:: Build FD package
+@pushd scripts
+@call build_fd_pkg.bat %FD_PKG_DIR%
+@popd
+
+
set PASDK_ROOT_DIR=
+set ARTIFACTS_DIR=
+set DHIP_PKG_DIR=
+set FD_PKG_DIR=
:end
index 11633dc209c7456e8d3dc86cfb13f27a4f719770..7c384f34ff7d36695bf51d0b3d5b7ab40eaf7a4a 100644 (file)
::
:: *************************************************************************
-@echo Executing: %~fn0
+:: %1: DH-IP package source directory
+@echo Executing: %~fn0 %1
if "%PASDK_ROOT_DIR%" == "" set PASDK_ROOT_DIR=%~dp0..\
+if "%1" NEQ "" goto cont1
+@echo "Invalid DH-IP source directory"
+goto end
+
+
+:cont1
:: Set unzip path
for %%i in (git.exe) do set GIT_PATH=%DRIVE%%%~sp$PATH:i
set UNZIP_PATH=%GIT_PATH%..\usr\bin
set CCS_WRKSP_DIR=workspace_v6_1
:: Set package directory (location of generated packages)
-set DHIP_PKG_DIR=%DOLBY_IP_LROOT%\package
+::set DHIP_PKG_DIR=%DOLBY_IP_LROOT%\package
+set DHIP_PKG_DIR=%1
:: Set package install directories (location generated packages unziped for ARM/DSP application build)
set BMDA_PKG_INSTALL_DIR=%DOLBY_IP_LROOT%\dh-ip
set CAR_PKG_INSTALL_DIR=%DOLBY_IP_LROOT%\dh-ip
set CYGWIN=nontsec
-rem :: Initialize RTSC tools discovery path
+:: Initialize RTSC tools discovery path
eclipsec -noSplash -data %PASDK_LROOT_DIR%\%CCS_WRKSP_DIR% -application com.ti.ccstudio.apps.initialize -rtsc.productDiscoveryPath %PSDK_CUST_LROOT_DIR%
eclipsec -noSplash -data %PASDK_LROOT_DIR%\%CCS_WRKSP_DIR% -application com.ti.ccstudio.apps.initialize -rtsc.productDiscoveryPath %PSDK_CUST_LROOT_DIR%
eclipsec -noSplash -data %PASDK_LROOT_DIR%\%CCS_WRKSP_DIR% -application com.ti.ccstudio.apps.initialize -rtsc.productDiscoveryPath %PSDK_CUST_LROOT_DIR%
@@ -63,20 +71,23 @@ eclipsec -noSplash -data %PASDK_LROOT_DIR%\%CCS_WRKSP_DIR% -application com.ti.c
eclipsec -noSplash -data %PASDK_LROOT_DIR%\%CCS_WRKSP_DIR% -application com.ti.ccstudio.apps.projectImport -ccs.location "%PASDK_LROOT_DIR%\test_arm"
eclipsec -noSplash -data %PASDK_LROOT_DIR%\%CCS_WRKSP_DIR% -application com.ti.ccstudio.apps.projectImport -ccs.location "%PASDK_LROOT_DIR%\test_dsp"
-::
-:: Build ARM/DSP component packages
-::
-:build_dhip_pkgs
-:: Build Atmos component packages
-if exist %DHIP_PKG_DIR% ( rmdir /S /Q %DHIP_PKG_DIR% )
-mkdir %DHIP_PKG_DIR%
-@call build_dhip_pkg bmda %DHIP_PKG_DIR%
-@call build_dhip_pkg car %DHIP_PKG_DIR%
-@call build_dhip_pkg ddp %DHIP_PKG_DIR%
-@call build_dhip_pkg matthd %DHIP_PKG_DIR%
-@call build_dhip_pkg oar %DHIP_PKG_DIR%
-@call build_dhip_pkg intrinsics %DHIP_PKG_DIR%
-
+:: FL: DH-IP package build now handled outside this script
+:: ::
+:: :: Build ARM/DSP component packages
+:: ::
+:: :build_dhip_pkgs
+:: :: Build Atmos component packages
+:: ::if exist %DHIP_PKG_DIR% ( rmdir /S /Q %DHIP_PKG_DIR% )
+:: ::mkdir %DHIP_PKG_DIR%
+:: ::@call build_dhip_pkg bmda %DHIP_PKG_DIR%
+:: ::@call build_dhip_pkg car %DHIP_PKG_DIR%
+:: ::@call build_dhip_pkg ddp %DHIP_PKG_DIR%
+:: ::@call build_dhip_pkg matthd %DHIP_PKG_DIR%
+:: ::@call build_dhip_pkg oar %DHIP_PKG_DIR%
+:: ::@call build_dhip_pkg intrinsics %DHIP_PKG_DIR%
+:: @call build_dhip_pkgs %DHIP_PKG_DIR%
+
+:extract_dhip_pkgs
:: Install packages at application build locations
if exist %BMDA_PKG_INSTALL_DIR% ( rmdir /S / Q %BMDA_PKG_INSTALL_DIR% )
if exist %CAR_PKG_INSTALL_DIR% ( rmdir /S / Q %CAR_PKG_INSTALL_DIR% )
index 9b73f14332abb38715c2f352f2017f562de05180..92e5a8fed27b3f07434dfb1002c490cf75c84042 100644 (file)
:: %1: package to build (bmda, car, ddp, matthd, oar, intrinsics)
:: %2: package destination directory
-@echo Executing: %~fn0
+@echo Executing: %~fn0 %1 %2
if "%PASDK_ROOT_DIR%" == "" set PASDK_ROOT_DIR=%~dp0..\
diff --git a/scripts/build_dhip_pkgs.bat b/scripts/build_dhip_pkgs.bat
--- /dev/null
@@ -0,0 +1,43 @@
+@echo off
+:: *************************************************************************
+:: FILE : build_dhip_pkgs.bat
+:: DESCRIPTION :
+::
+:: Builds DH-IP packages.
+:: Assumes setup_env.bat has been called.
+::
+:: *************************************************************************
+
+:: %1: packages destination directory
+@echo Executing: %~fn0 %1
+
+if "%PASDK_ROOT_DIR%" == "" set PASDK_ROOT_DIR=%~dp0..\
+
+if "%1"=="" goto def_prm_dhip_pkgs_dest_dir
+
+:prm_dhip_pkgs_dest_dir
+set DHIP_PKGS_DEST_DIR=%1
+goto build_dhip_pkgs
+
+:def_prm_dhip_pkgs_dest_dir
+set DHIP_PKGS_DEST_DIR=%~dp0
+
+
+::
+:: Build ARM/DSP component packages
+::
+:build_dhip_pkgs
+:: Build Atmos component packages
+if NOT exist %DHIP_PKGS_DEST_DIR% ( mkdir %DHIP_PKGS_DEST_DIR% )
+mkdir %DHIP_PKGS_DEST_DIR%
+@call build_dhip_pkg bmda %DHIP_PKGS_DEST_DIR%
+@call build_dhip_pkg car %DHIP_PKGS_DEST_DIR%
+@call build_dhip_pkg ddp %DHIP_PKGS_DEST_DIR%
+@call build_dhip_pkg matthd %DHIP_PKGS_DEST_DIR%
+@call build_dhip_pkg oar %DHIP_PKGS_DEST_DIR%
+@call build_dhip_pkg intrinsics %DHIP_PKGS_DEST_DIR%
+
+
+set DHIP_PKGS_DEST_DIR=
+
+:end