Initial import.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
42
Tools/bin/CreateMdkPkg.bat
Normal file
42
Tools/bin/CreateMdkPkg.bat
Normal file
@@ -0,0 +1,42 @@
|
||||
@REM
|
||||
@REM Copyright (c) 2006, Intel Corporation
|
||||
@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 @echo off
|
||||
|
||||
:check_java
|
||||
if "%JAVA_HOME%"=="" goto no_jdk
|
||||
:check_wks
|
||||
if "%WORKSPACE%"=="" goto no_wks
|
||||
|
||||
set ANT_HOME=%WORKSPACE%\Tools\bin\apache-ant
|
||||
set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATH%
|
||||
|
||||
call "ant" -f %WORKSPACE%\Tools\Source\CreateMdkPkg\build.xml
|
||||
|
||||
echo DONE
|
||||
|
||||
goto end
|
||||
|
||||
:no_jdk
|
||||
echo.
|
||||
echo !!! Please set JAVA_HOME !!!
|
||||
echo.
|
||||
goto check_wks
|
||||
|
||||
:no_wks
|
||||
echo.
|
||||
echo !!! Please set WORKSPACE !!!
|
||||
echo.
|
||||
goto end
|
||||
|
||||
:end
|
||||
@echo on
|
||||
|
45
Tools/bin/GenBuildFile.bat
Normal file
45
Tools/bin/GenBuildFile.bat
Normal file
@@ -0,0 +1,45 @@
|
||||
@REM
|
||||
@REM Copyright (c) 2006, Intel Corporation
|
||||
@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
|
||||
|
||||
@echo off
|
||||
|
||||
@if "%JAVA_HOME%"=="" goto no_jdk
|
||||
@if "%WORKSPACE%"=="" goto no_wks
|
||||
|
||||
@if "%1"=="-H" (goto usage)
|
||||
@if "%1"=="-h" (goto usage) else (goto all)
|
||||
|
||||
:usage
|
||||
@echo.
|
||||
@echo Generate entrance build.xml for each module under current directory
|
||||
@echo.
|
||||
@echo Usage: GenBuildFile.bat - must be executed in the package level directory
|
||||
@echo.
|
||||
goto end
|
||||
|
||||
:all
|
||||
ant -q -f %WORKSPACE%\Tools\bin\GenBuildFile.xml
|
||||
goto end
|
||||
|
||||
:no_jdk
|
||||
@echo.
|
||||
@echo !!! Please set JAVA_HOME !!!
|
||||
@echo.
|
||||
@goto end
|
||||
|
||||
:no_wks
|
||||
@echo.
|
||||
@echo !!! Please set WORKSPACE !!!
|
||||
@echo.
|
||||
@goto end
|
||||
|
||||
:end
|
||||
@echo on
|
18
Tools/bin/GenBuildFile.xml
Normal file
18
Tools/bin/GenBuildFile.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!--
|
||||
Copyright (c) 2006, Intel Corporation
|
||||
All rights reserved. This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
-->
|
||||
<project default="workspace" basedir=".">
|
||||
<taskdef resource="GenBuild.tasks" />
|
||||
|
||||
<target name="workspace">
|
||||
<bf recursive="true" />
|
||||
</target>
|
||||
</project>
|
BIN
Tools/bin/MakeDeps.exe
Normal file
BIN
Tools/bin/MakeDeps.exe
Normal file
Binary file not shown.
47
Tools/bin/PackageEditor.bat
Normal file
47
Tools/bin/PackageEditor.bat
Normal file
@@ -0,0 +1,47 @@
|
||||
@REM
|
||||
@REM Copyright (c) 2006, Intel Corporation
|
||||
@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
|
||||
|
||||
@echo off
|
||||
|
||||
:check_java
|
||||
if "%JAVA_HOME%"=="" goto no_jdk
|
||||
:check_wks
|
||||
if "%WORKSPACE%"=="" goto no_wks
|
||||
|
||||
set ANT_HOME=%WORKSPACE%\Tools\bin\apache-ant
|
||||
set XMLBEANS_HOME=%WORKSPACE%\Tools\bin\xmlbeans
|
||||
set Framework_Tools_Path=%WORKSPACE%\Tools\bin
|
||||
|
||||
set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%WORKSPACE%\Tools\bin;%XMLBEANS_HOME%\bin;%PATH%
|
||||
|
||||
set CLASSPATH=%WORKSPACE%\Tools\Jars\SurfaceArea.jar;%WORKSPACE%\Tools\Jars\GenBuild.jar;%WORKSPACE%\Tools\Jars\cpptasks.jar;%WORKSPACE%\Tools\Jars\frameworktasks.jar;%XMLBEANS_HOME%\lib\jsr173_1.0_api.jar;%XMLBEANS_HOME%\lib\xbean.jar;%XMLBEANS_HOME%\lib\xbean_xpath.jar;%XMLBEANS_HOME%\lib\xmlpublic.jar;%XMLBEANS_HOME%\lib\saxon8.jar;%XMLBEANS_HOME%\lib\saxon8-jdom.jar;%XMLBEANS_HOME%\lib\saxon8-sql.jar;%XMLBEANS_HOME%\lib\resolver.jar
|
||||
|
||||
call "ant" -f %WORKSPACE%\Tools\Source\PackageEditor\build.xml
|
||||
|
||||
call "java" -jar %WORKSPACE%\Tools\bin\PackageEditor.jar
|
||||
|
||||
goto end
|
||||
|
||||
:no_jdk
|
||||
echo.
|
||||
echo !!! Please set JAVA_HOME !!!
|
||||
echo.
|
||||
goto check_wks
|
||||
|
||||
:no_wks
|
||||
echo.
|
||||
echo !!! Please set WORKSPACE !!!
|
||||
echo.
|
||||
goto end
|
||||
|
||||
:end
|
||||
@echo on
|
||||
|
54
Tools/bin/SABeans.bat
Normal file
54
Tools/bin/SABeans.bat
Normal file
@@ -0,0 +1,54 @@
|
||||
@REM
|
||||
@REM Copyright (c) 2006, Intel Corporation
|
||||
@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
|
||||
|
||||
@echo off
|
||||
if "%JAVA_HOME%"=="" goto no_jdk
|
||||
if "%WORKSPACE%"=="" goto no_wks
|
||||
|
||||
if "%1"=="" (goto usage)
|
||||
if "%1"=="-h" (goto usage)
|
||||
if "%1"=="-H" (goto usage) else (goto all)
|
||||
|
||||
:usage
|
||||
echo.
|
||||
echo Generate SurfaceArea Java Beans from schema
|
||||
echo.
|
||||
echo Usage:
|
||||
echo SABeans.bat SurfaceArea.jar
|
||||
echo generate compiled SurfaceArea Java Beans only
|
||||
echo.
|
||||
echo SABeans.bat SurfaceArea.java
|
||||
echo generate source code of SurfaceArea Java Beans only
|
||||
echo.
|
||||
echo SABeans.bat SurfaceArea
|
||||
echo generate both compiled and source code of SurfaceArea Java Beans
|
||||
echo.
|
||||
goto end
|
||||
|
||||
:all
|
||||
ant -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml %1
|
||||
goto end
|
||||
|
||||
:no_jdk
|
||||
echo.
|
||||
echo !!! Please set JAVA_HOME !!!
|
||||
echo.
|
||||
goto end
|
||||
|
||||
:no_wks
|
||||
echo.
|
||||
echo !!! Please set WORKSPACE !!!
|
||||
echo.
|
||||
goto end
|
||||
|
||||
:end
|
||||
@echo on
|
||||
|
51
Tools/bin/SACreate.bat
Normal file
51
Tools/bin/SACreate.bat
Normal file
@@ -0,0 +1,51 @@
|
||||
@REM
|
||||
@REM Copyright (c) 2006, Intel Corporation
|
||||
@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
|
||||
|
||||
@if "%JAVA_HOME%"=="" goto no_jdk
|
||||
@if "%WORKSPACE%"=="" goto no_wks
|
||||
|
||||
@if "%1"=="" goto usage
|
||||
@if "%1"=="-H" (goto usage)
|
||||
@if "%1"=="-h" (goto usage) else (goto all)
|
||||
|
||||
:usage
|
||||
@echo off
|
||||
@echo.
|
||||
@echo Create a empty SurfaceArea description file for specified SurfaceArea element
|
||||
@echo.
|
||||
@echo Usage: SACreate.bat "MSA_FILE" "SURFACE_AREA_ELEMENT"
|
||||
@echo.
|
||||
@echo Supported surface area top level element
|
||||
@echo ModuleSurfaceArea
|
||||
@echo ModuleBuildDescription
|
||||
@echo LibraryModuleSurfaceArea
|
||||
@echo LibraryModuleBuildDescription
|
||||
@echo FrameworkPlatformDescription
|
||||
@echo PackageSurfaceArea
|
||||
goto end
|
||||
|
||||
:all
|
||||
@ant -q -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml generate -DSURFACE_AREA_FILE=%~f1 -DSURFACE_AREA_ELEMENT=%2
|
||||
@goto end
|
||||
|
||||
:no_jdk
|
||||
@echo.
|
||||
@echo !!! Please set JAVA_HOME !!!
|
||||
@echo.
|
||||
@goto end
|
||||
|
||||
:no_wks
|
||||
@echo.
|
||||
@echo !!! Please set WORKSPACE !!!
|
||||
@echo.
|
||||
@goto end
|
||||
|
||||
:end
|
45
Tools/bin/SAPretty.bat
Normal file
45
Tools/bin/SAPretty.bat
Normal file
@@ -0,0 +1,45 @@
|
||||
@REM
|
||||
@REM Copyright (c) 2006, Intel Corporation
|
||||
@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
|
||||
|
||||
@if "%JAVA_HOME%"=="" goto no_jdk
|
||||
@if "%WORKSPACE%"=="" goto no_wks
|
||||
|
||||
@if "%1"=="" goto usage
|
||||
@if "%1"=="-H" (goto usage)
|
||||
@if "%1"=="-h" (goto usage) else (goto all)
|
||||
|
||||
:usage
|
||||
@echo off
|
||||
@echo.
|
||||
@echo Beautify XML file format
|
||||
@echo.
|
||||
@echo Usage: SAPretty.bat "XML_FILE"
|
||||
@echo.
|
||||
goto end
|
||||
|
||||
:all
|
||||
@ant -q -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml pretty -DSURFACE_AREA_FILE=%~f1
|
||||
@goto end
|
||||
|
||||
:no_jdk
|
||||
@echo.
|
||||
@echo !!! Please set JAVA_HOME !!!
|
||||
@echo.
|
||||
@goto end
|
||||
|
||||
:no_wks
|
||||
@echo.
|
||||
@echo !!! Please set WORKSPACE !!!
|
||||
@echo.
|
||||
@goto end
|
||||
|
||||
:end
|
||||
|
55
Tools/bin/SAVerify.bat
Normal file
55
Tools/bin/SAVerify.bat
Normal file
@@ -0,0 +1,55 @@
|
||||
@REM
|
||||
@REM Copyright (c) 2006, Intel Corporation
|
||||
@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
|
||||
|
||||
@if "%JAVA_HOME%"=="" goto no_jdk
|
||||
@if "%WORKSPACE%"=="" goto no_wks
|
||||
|
||||
@if "%1"=="" (goto usage)
|
||||
@if "%1"=="-h" (goto usage)
|
||||
@if "%1"=="-H" (goto usage)
|
||||
@if "%1"=="all" (goto all)
|
||||
@if "%1"=="ALL" (goto all) else (goto standalone)
|
||||
|
||||
:usage
|
||||
@echo off
|
||||
@echo.
|
||||
@echo Verify SurfaceArea file(s)
|
||||
@echo.
|
||||
@echo Usage:
|
||||
@echo SAVerify.bat "MSA_FILE" - Verify SurfaceArea file named by MSA_FILE
|
||||
@echo SAVerify.bat all - Verify all SurfaceArea files under current directory and its sub-directories
|
||||
@echo SAVerify.bat -h - Print usage message
|
||||
@echo.
|
||||
goto end
|
||||
|
||||
:all
|
||||
@echo off
|
||||
@for /R %%a in (*.msa *.mbd *.spd) do @ant -q -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml validate -DSURFACE_AREA_FILE=%%a
|
||||
@echo on
|
||||
@goto end
|
||||
|
||||
:standalone
|
||||
@ant -q -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml validate -DSURFACE_AREA_FILE=%~f1
|
||||
@goto end
|
||||
|
||||
:no_jdk
|
||||
@echo.
|
||||
@echo !!! Please set JAVA_HOME !!!
|
||||
@echo.
|
||||
@goto end
|
||||
|
||||
:no_wks
|
||||
@echo.
|
||||
@echo !!! Please set WORKSPACE !!!
|
||||
@echo.
|
||||
@goto end
|
||||
|
||||
:end
|
Reference in New Issue
Block a user