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