1 @REM Copyright
(c
) 2008 - 2010, Apple
, Inc. All rights reserved.
2 @REM All rights reserved. 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
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.
11 @REM Example usage of this script. default is a
DEBUG build
16 @REM b
-v
-y build.log
20 SET TARGET_TOOLS
=RVCT31
23 @
if /I
"%1"=="RELEASE" (
28 SET BUILD_ROOT
=%WORKSPACE%\Build\BeagleBoard\
%TARGET%_
%TARGET_TOOLS%
29 BUILD_ROOT
=$WORKSPACE
/Build
/BeagleBoard
/"$TARGET"_
"$TARGET_TOOLS"
31 CALL build
-p BeagleBoardPkg\BeagleBoardPkg.dsc
-a ARM
-t RVCT31
-b
%TARGET% %1 %2 %3 %4 %5 %6 %7 %8
33 @
if /I
"%1"=="CLEAN" goto Clean
36 @REM Ram starts at
0x80000000
37 @REM OMAP
3530 TRM defines
0x80008208 as the entry point
38 @REM The reset vector is caught by the mask ROM in the OMAP
3530 so that is why this entry
39 @REM point looks so strange.
40 @REM OMAP
3430 TRM section
26.4.8 has Image header information.
(missing in OMAP
3530 TRM
)
44 ECHO Building tools...
47 ECHO Patching image with ConfigurationHeader.dat
48 CALL GenerateImage
-D ConfigurationHeader.dat
-E
0x80008208 -I ..
/..
/Build
/FV
/BEAGLEBOARD_EFI.fd
-O ..
/..
/Build
/FV
/BeagleBoard_EFI_flashboot.fd
50 ECHO Patching ..\Debugger_scripts ...
51 SET DEBUGGER_SCRIPT
=..\Debugger_scripts
52 for /f
%%a IN
('dir /b %DEBUGGER_SCRIPT%\*.inc %DEBUGGER_SCRIPT%\*.cmm') do (
53 CALL replace %DEBUGGER_SCRIPT%\
%%a
%BUILD_ROOT%\
%%a ZZZZZZ
%BUILD_ROOT% WWWWWW
%WORKSPACE%