summaryrefslogtreecommitdiff
path: root/Tools/bin
diff options
context:
space:
mode:
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-04-21 22:54:32 +0000
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-04-21 22:54:32 +0000
commit878ddf1fc3540a715f63594ed22b6929e881afb4 (patch)
treec56c44dac138137b510e1fba7c3efe5e4d84bea2 /Tools/bin
downloadedk2-platforms-878ddf1fc3540a715f63594ed22b6929e881afb4.tar.xz
Initial import.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/bin')
-rw-r--r--Tools/bin/CreateMdkPkg.bat42
-rw-r--r--Tools/bin/GenBuildFile.bat45
-rw-r--r--Tools/bin/GenBuildFile.xml18
-rw-r--r--Tools/bin/MakeDeps.exebin0 -> 77824 bytes
-rw-r--r--Tools/bin/PackageEditor.bat47
-rw-r--r--Tools/bin/SABeans.bat54
-rw-r--r--Tools/bin/SACreate.bat51
-rw-r--r--Tools/bin/SAPretty.bat45
-rw-r--r--Tools/bin/SAVerify.bat55
9 files changed, 357 insertions, 0 deletions
diff --git a/Tools/bin/CreateMdkPkg.bat b/Tools/bin/CreateMdkPkg.bat
new file mode 100644
index 0000000000..70de527e29
--- /dev/null
+++ b/Tools/bin/CreateMdkPkg.bat
@@ -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
+
diff --git a/Tools/bin/GenBuildFile.bat b/Tools/bin/GenBuildFile.bat
new file mode 100644
index 0000000000..323969fa40
--- /dev/null
+++ b/Tools/bin/GenBuildFile.bat
@@ -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
diff --git a/Tools/bin/GenBuildFile.xml b/Tools/bin/GenBuildFile.xml
new file mode 100644
index 0000000000..81a2900a92
--- /dev/null
+++ b/Tools/bin/GenBuildFile.xml
@@ -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>
diff --git a/Tools/bin/MakeDeps.exe b/Tools/bin/MakeDeps.exe
new file mode 100644
index 0000000000..b73c3bfaa7
--- /dev/null
+++ b/Tools/bin/MakeDeps.exe
Binary files differ
diff --git a/Tools/bin/PackageEditor.bat b/Tools/bin/PackageEditor.bat
new file mode 100644
index 0000000000..5a496663b0
--- /dev/null
+++ b/Tools/bin/PackageEditor.bat
@@ -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
+
diff --git a/Tools/bin/SABeans.bat b/Tools/bin/SABeans.bat
new file mode 100644
index 0000000000..4e49540005
--- /dev/null
+++ b/Tools/bin/SABeans.bat
@@ -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
+
diff --git a/Tools/bin/SACreate.bat b/Tools/bin/SACreate.bat
new file mode 100644
index 0000000000..5bcef42d2e
--- /dev/null
+++ b/Tools/bin/SACreate.bat
@@ -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
diff --git a/Tools/bin/SAPretty.bat b/Tools/bin/SAPretty.bat
new file mode 100644
index 0000000000..a6e191cd3c
--- /dev/null
+++ b/Tools/bin/SAPretty.bat
@@ -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
+
diff --git a/Tools/bin/SAVerify.bat b/Tools/bin/SAVerify.bat
new file mode 100644
index 0000000000..1f4566a74e
--- /dev/null
+++ b/Tools/bin/SAVerify.bat
@@ -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