Changed FvBinding to be a list of Keywords (not using list, just specifying the patte...
[mirror_edk2.git] / Tools / bin / SACreate.bat
1 @REM
2 @REM Copyright (c) 2006, Intel Corporation
3 @REM All rights reserved. This program and the accompanying materials
4 @REM are licensed and made available under the terms and conditions of the BSD License
5 @REM which accompanies this distribution. The full text of the license may be found at
6 @REM http://opensource.org/licenses/bsd-license.php
7 @REM
8 @REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
9 @REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
10 @REM
11
12 @if "%JAVA_HOME%"=="" goto no_jdk
13 @if "%WORKSPACE%"=="" goto no_wks
14
15 @if "%1"=="" goto usage
16 @if "%1"=="-H" (goto usage)
17 @if "%1"=="-h" (goto usage) else (goto all)
18
19 :usage
20 @echo off
21 @echo.
22 @echo Create a empty SurfaceArea description file for specified SurfaceArea element
23 @echo.
24 @echo Usage: SACreate.bat "MSA_FILE" "SURFACE_AREA_ELEMENT"
25 @echo.
26 @echo Supported surface area top level element
27 @echo ModuleSurfaceArea
28 @echo ModuleBuildDescription
29 @echo LibraryModuleSurfaceArea
30 @echo LibraryModuleBuildDescription
31 @echo FrameworkPlatformDescription
32 @echo PackageSurfaceArea
33 goto end
34
35 :all
36 @ant -q -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml generate -DSURFACE_AREA_FILE=%~f1 -DSURFACE_AREA_ELEMENT=%2
37 @goto end
38
39 :no_jdk
40 @echo.
41 @echo !!! Please set JAVA_HOME !!!
42 @echo.
43 @goto end
44
45 :no_wks
46 @echo.
47 @echo !!! Please set WORKSPACE !!!
48 @echo.
49 @goto end
50
51 :end