diff --git a/build_all.bat b/build_all.bat
index f6ade2830c27c15fe54844d6efaa7f5a2d67974f..621f6880708c7249e776cad9f768a53df1f51c6c 100644 (file)
--- a/build_all.bat
+++ b/build_all.bat
:: *** Check command line input
:: *************************************************************************
if "%1"=="" goto use_err1
-if "%2"=="" goto cont1
+if "%2"=="" goto use_err1
+goto cont1
+
:use_err1
:: USAGE ERROR
echo ERROR: Supplied options are invalid.
echo .
-echo . Usage: %0 ^<buildTag^>
+echo . Usage: %0 SuperRepo ^<buildProfile^>
echo . -OR-
-echo . Usage: %0 SuperRepo
+echo . Usage: %0 ^<buildTag^> ^<buildProfile^>
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 . buildProfile : Debug, Release, or SDF
echo .
goto end
:cont1
set PASDK_ROOT_DIR=%~dp0
+
+if "%2" NEQ "SDF" goto install_tools
+:: Set PASDK target and version
+set PASDK_TARGET_PLATFORM=da10x
+set PASDK_VERSION=01_00_00_01
+
+:: Set release directory
+set RELEASE_DIR=%PASDK_ROOT_DIR%release
+:: Set DH-IP package directory
+set DHIP_PKG_DIR=%RELEASE_DIR%\dhip_package
+:: Set FD package directory
+set FD_PKG_DIR=%RELEASE_DIR%\fd_package
+:: Set OS package directory
+set OS_PKG_DIR=%RELEASE_DIR%\os_package
+
+if exist %RELEASE_DIR%\nul ( rmdir /S / Q %RELEASE_DIR% )
+
+
+:install_tools
:: *************************************************************************
:: *** 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
+
+if "%2" NEQ "SDF" goto build_ccs_projects
+:: Build DH-IP packages
+@pushd scripts
+@call build_dhip_pkgs %DHIP_PKG_DIR%
+@popd
+
+:build_ccs_projects
:: Build DSP PDK platform library, ARM/DSP applications
@pushd scripts
-@call build_ccs_projects.bat
+@call build_ccs_projects.bat %2 %DHIP_PKG_DIR%
+@popd
+
+if "%2" NEQ "SDF" goto cleanupenv
+:: Build FD package
+@pushd scripts
+@call build_fd_pkg.bat %FD_PKG_DIR%
@popd
+:: Build OS package
+@pushd scripts
+@call build_os_pkg.bat %OS_PKG_DIR%
+@popd
+
+
+:cleanupenv
set PASDK_ROOT_DIR=
+set PASDK_TARGET_PLATFORM=
+set PASDK_VERSION=
+set RELEASE_DIR=
+set DHIP_PKG_DIR=
+set FD_PKG_DIR=
+set OS_PKG_DIR=
:end
-:: *************************************************************************
-:: *** Nothing past this point
-:: *************************************************************************