diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-05 06:50:09 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-05 06:50:09 +0000 |
commit | f3198cba84f56f85281b87c4e9bf96e77a934f16 (patch) | |
tree | 4c36f2be7f83d05959813b5c051df01da3f1ed9f /BeagleBoardPkg/b.bat | |
parent | 3b9be4164b8714a4d866e822cfacb1ea6da6ef7b (diff) | |
download | edk2-platforms-f3198cba84f56f85281b87c4e9bf96e77a934f16.tar.xz |
Update input of disasmembler to support IfThen construct. Add prototype dos script to build BeagleBoard.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9936 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BeagleBoardPkg/b.bat')
-rwxr-xr-x | BeagleBoardPkg/b.bat | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/BeagleBoardPkg/b.bat b/BeagleBoardPkg/b.bat new file mode 100755 index 0000000000..32501eea6d --- /dev/null +++ b/BeagleBoardPkg/b.bat @@ -0,0 +1,62 @@ +@REM Copyright (c) 2008 - 2010, Apple, Inc. All rights reserved. +@REM All rights reserved. This program and the accompanying materials +@REM are licensed and made available under the terms and conditions of the BSD License +@REM which accompanies this distribution. The full text of the license may be found at +@REM http://opensource.org/licenses/bsd-license.php +@REM +@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +@REM + +@REM Example usage of this script. default is a DEBUG build +@REM b +@REM b clean +@REM b release +@REM b release clean +@REM b -v -y build.log + + +CALL ..\edksetup.bat +SET TARGET_TOOLS=RVCT31 +SET TARGET=DEBUG +
+@if /I "%1"=="RELEASE" (
+ SET TARGET=RELEASE
+ shift /1
+)
+ +SET BUILD_ROOT=%WORKSPACE%\Build\BeagleBoard\%TARGET%_%TARGET_TOOLS% +BUILD_ROOT=$WORKSPACE/Build/BeagleBoard/"$TARGET"_"$TARGET_TOOLS" + +CALL build -p BeagleBoardPkg\BeagleBoardPkg.dsc -a ARM -t RVCT31 -b %TARGET% %1 %2 %3 %4 %5 %6 %7 %8 + +@if /I "%1"=="CLEAN" goto Clean
+ +@REM +@REM Ram starts at 0x80000000 +@REM OMAP 3530 TRM defines 0x80008208 as the entry point +@REM The reset vector is caught by the mask ROM in the OMAP 3530 so that is why this entry +@REM point looks so strange. +@REM OMAP 3430 TRM section 26.4.8 has Image header information. (missing in OMAP 3530 TRM) +@REM +cd Tools + +ECHO Building tools... +CALL nmake + +ECHO Patching image with ConfigurationHeader.dat +CALL GenerateImage -D ConfigurationHeader.dat -E 0x80008208 -I ../../Build/FV/BEAGLEBOARD_EFI.fd -O ../../Build/FV/BeagleBoard_EFI_flashboot.fd + +ECHO Patching ..\Debugger_scripts ... +SET DEBUGGER_SCRIPT=..\Debugger_scripts +for /f %%a IN ('dir /b %DEBUGGER_SCRIPT%\*.inc %DEBUGGER_SCRIPT%\*.cmm') do ( + CALL replace %DEBUGGER_SCRIPT%\%%a %BUILD_ROOT%\%%a ZZZZZZ %BUILD_ROOT% WWWWWW %WORKSPACE% +) + +cd .. +EXIT /B + +:Clean +cd Tools +CALL nmake clean +cd .. |