Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #30 from parameshbabu/master
Browse files Browse the repository at this point in the history
Update to BuildKitSamples tool
  • Loading branch information
parameshbabu authored Jul 27, 2016
2 parents bf4860d + f7b70e7 commit 8ad2038
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 15 deletions.
10 changes: 6 additions & 4 deletions Tools/BuildKitAgent.cmd
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
REM This script builds FFUs for all OEMInputSamples in Core Kit package

@echo off

REM This script builds FFUs for all OEMInputSamples in Core Kit package

call %~dp0\LaunchTool.cmd arm

REM call setenv arm
echo Building arm sample FFUs
call BuildKitSamples.cmd
call BuildKitSamples.cmd Test
call BuildKitSamples.cmd Retail

call setenv x86
echo Building x86 sample FFUs
call BuildKitSamples.cmd
call BuildKitSamples.cmd Test
call BuildKitSamples.cmd Retail

exit /b 0
36 changes: 25 additions & 11 deletions Tools/BuildKitSamples.cmd
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
REM This script builds architecture specific FFUs for OEMInputSamples in Core Kit package
REM Usage: BuildKitSamples [BuildType]
REM BuildType......... Optional, Retail/Test; if not specified, it builds both Retail and Test
REM Example:
REM BuildKitSamples Test
REM BuildKitSamples Retail
REM BuildKitSamples

@echo off
REM This script builds architecture specific FFUs for OEMInputSamples in Core Kit package
setlocal

goto START

:Usage
echo Usage: BuildKitSamples [BuildType]
echo BuildType......... Retail/Test
echo Example:
echo BuildKitSamples Test
echo BuildKitSamples Retail

exit /b 1

:START
REM Input validation
if [%1] == [/?] goto Usage
if [%1] == [-?] goto Usage
if [%1] == [] goto Usage

if /I NOT [%1] == [Retail] ( if /I NOT [%1] == [Test] goto Usage )
set FLAVOUR=%1
if /I NOT [%1] == [Retail] ( if /I NOT [%1] == [Test] set FLAVOUR= )

echo.
echo.Build Start Time : %TIME%
echo.

if [%ARCH%] == [arm] (
echo Building RPi2 product
call :COPY_AND_BUILD RPi2 %FLAVOUR%
) else if [%ARCH%] == [x86] (
echo Building MBM product
call :COPY_AND_BUILD MBM %FLAVOUR%
)

Expand All @@ -33,8 +47,8 @@ if not exist "%PRODUCT_DIR%" (
mkdir "%PRODUCT_DIR%"
)
echo.Copying %1 OEMInputSamples to %PRODUCT_DIR%
copy "%KITSROOT%OEMInputSamples\%1\RetailOemInput.xml" "%PRODUCT_DIR%\RetailOemInput.xml" >nul
copy "%KITSROOT%OEMInputSamples\%1\ProductionOemInput.xml" "%PRODUCT_DIR%\TestOemInput.xml" >nul
copy "%KITSROOT%OEMInputSamples\%BSP_ARCH%\%1\RetailOemInput.xml" "%PRODUCT_DIR%\RetailOemInput.xml" >nul
copy "%KITSROOT%OEMInputSamples\%BSP_ARCH%\%1\ProductionOemInput.xml" "%PRODUCT_DIR%\TestOemInput.xml" >nul
echo.Building %1FFU %2
call buildimage %1FFU %2
exit /b 0
Expand Down

0 comments on commit 8ad2038

Please sign in to comment.