]> git.proxmox.com Git - mirror_edk2.git/blame - BeagleBoardPkg/ba.bat
enhancement to tool to generate the comments along with offsets in the .h file.
[mirror_edk2.git] / BeagleBoardPkg / 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
7781f9fe 25\r
26@if /I "%1"=="RELEASE" (\r
27 @REM If 1st argument is release set TARGET to RELEASE and shift arguments to remove it \r
28 SET TARGET=RELEASE\r
29 shift /1\r
30)\r
e6f3ed43
LL
31\r
32SET BUILD_ROOT=%WORKSPACE%\Build\BeagleBoard\%TARGET%_%TARGET_TOOLS%\r
33\r
34@REM Build the Beagle Board firmware and creat an FD (FLASH Device) Image.\r
35CALL build -p BeagleBoardPkg\BeagleBoardPkg.dsc -a ARM -t %TARGET_TOOLS% -b %TARGET% %1 %2 %3 %4 %5 %6 %7 %8\r
36@if ERRORLEVEL 1 goto Exit\r
37\r
7781f9fe 38@if /I "%1"=="CLEAN" goto Clean\r
e6f3ed43
LL
39\r
40@REM\r
41@REM Ram starts at 0x80000000\r
42@REM OMAP 3530 TRM defines 0x80008208 as the entry point\r
43@REM The reset vector is caught by the mask ROM in the OMAP 3530 so that is why this entry \r
44@REM point looks so strange. \r
45@REM OMAP 3430 TRM section 26.4.8 has Image header information. (missing in OMAP 3530 TRM)\r
46@REM\r
47@cd Tools\r
48\r
49ECHO Building tools...\r
50CALL nmake \r
51\r
52ECHO Patching image with ConfigurationHeader.dat\r
53CALL GenerateImage -D ..\ConfigurationHeader.dat -E 0x80008208 -I %BUILD_ROOT%\FV\BEAGLEBOARD_EFI.fd -O %BUILD_ROOT%\FV\BeagleBoard_EFI_flashboot.fd\r
54\r
55ECHO Patching ..\Debugger_scripts ...\r
56SET DEBUGGER_SCRIPT=..\Debugger_scripts\r
57@for /f %%a IN ('dir /b %DEBUGGER_SCRIPT%\*.inc %DEBUGGER_SCRIPT%\*.cmm') do (\r
58 @CALL replace %DEBUGGER_SCRIPT%\%%a %BUILD_ROOT%\%%a ZZZZZZ %BUILD_ROOT% WWWWWW %WORKSPACE%\r
59)\r
60\r
61cd ..\r
62:Exit\r
63EXIT /B\r
64\r
65:Clean\r
66cd Tools\r
67CALL nmake clean\r
68cd ..\r