Vishal Bhoj | 82c8071 | 2015-12-15 21:13:33 +0530 | [diff] [blame^] | 1 | @REM Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
|
| 2 | @REM This program and the accompanying materials
|
| 3 | @REM are licensed and made available under the terms and conditions of the BSD License
|
| 4 | @REM which accompanies this distribution. The full text of the license may be found at
|
| 5 | @REM http://opensource.org/licenses/bsd-license.php
|
| 6 | @REM
|
| 7 | @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
| 8 | @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
| 9 | @REM
|
| 10 |
|
| 11 | @REM Example usage of this script. default is a DEBUG build
|
| 12 | @REM b
|
| 13 | @REM b clean
|
| 14 | @REM b release
|
| 15 | @REM b release clean
|
| 16 | @REM b -v -y build.log
|
| 17 |
|
| 18 | ECHO OFF
|
| 19 | @REM Setup Build environment. Sets WORKSPACE and puts build in path
|
| 20 | CALL ..\edksetup.bat
|
| 21 |
|
| 22 | @REM Set for tools chain. Currently ARMGCC
|
| 23 | SET TARGET_TOOLS=ARMGCC
|
| 24 | SET TARGET=DEBUG
|
| 25 |
|
| 26 |
|
| 27 | @if /I "%1"=="RELEASE" (
|
| 28 |
|
| 29 | @REM If 1st argument is release set TARGET to RELEASE and shift arguments to remove it
|
| 30 |
|
| 31 | SET TARGET=RELEASE
|
| 32 |
|
| 33 | shift /1
|
| 34 |
|
| 35 | )
|
| 36 |
|
| 37 |
|
| 38 | SET BUILD_ROOT=%WORKSPACE%\Build\ArmRealViewEb\%TARGET%_%TARGET_TOOLS%
|
| 39 |
|
| 40 | @REM Build the ARM RealView EB firmware and creat an FD (FLASH Device) Image.
|
| 41 | CALL build -p ArmRealViewEbPkg\ArmRealViewEbPkg.dsc -a ARM -t %TARGET_TOOLS% -b %TARGET% %1 %2 %3 %4 %5 %6 %7 %8
|
| 42 | @if ERRORLEVEL 1 goto Exit
|
| 43 |
|
| 44 | @if /I "%1"=="CLEAN" goto Clean
|
| 45 |
|
| 46 |
|
| 47 | ECHO Patching ..\Debugger_scripts ...
|
| 48 | SET DEBUGGER_SCRIPT=Debugger_scripts
|
| 49 | @for /f %%a IN ('dir /b %DEBUGGER_SCRIPT%\*.inc %DEBUGGER_SCRIPT%\*.cmm') do (
|
| 50 | @CALL replace %DEBUGGER_SCRIPT%\%%a %BUILD_ROOT%\%%a ZZZZZZ %BUILD_ROOT% WWWWWW %WORKSPACE%
|
| 51 | )
|
| 52 |
|
| 53 | :Exit
|
| 54 | EXIT /B
|
| 55 |
|
| 56 | :Clean
|