]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/BaseTools/Conf/XMLSchema/FrameworkDataAttributes.xsd
Copying latest $WORKSPACE/BaseTools to $WORKSPACE/Tools/BaseTools. Once the
[mirror_edk2.git] / Tools / BaseTools / Conf / XMLSchema / FrameworkDataAttributes.xsd
diff --git a/Tools/BaseTools/Conf/XMLSchema/FrameworkDataAttributes.xsd b/Tools/BaseTools/Conf/XMLSchema/FrameworkDataAttributes.xsd
new file mode 100644 (file)
index 0000000..d40561e
--- /dev/null
@@ -0,0 +1,180 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns="http://www.TianoCore.org/2007/Edk2.1" targetNamespace="http://www.TianoCore.org/2007/Edk2.1">\r
+  <!--\r
+    Filename: FrameworkDataAttributes.xsd\r
+    \r
+    Copyright (c) 2007, Intel Corp.\r
+    All rights reserved. This program and the accompanying materials\r
+    are licensed and made available under the terms and conditions of the BSD License\r
+    which may be found at http://opensource.org/licenses/bsd-license.php\r
+    \r
+    THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+    WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+    \r
+  -->\r
+  <xs:annotation>\r
+    <xs:documentation xml:lang="en">This schema defines EFI and Framework Attribute. Only attributeGroups are specified in this file. </xs:documentation>\r
+  </xs:annotation>\r
+  <xs:include schemaLocation="NamingConvention.xsd"/>\r
+  <xs:include schemaLocation="FrameworkDataTypes.xsd"/>\r
+  <!-- Fix Name data type from xs:string -->\r
+  <xs:attributeGroup name="BinaryFileAttributes">\r
+    <xs:attribute name="FileType" type="BinFileType" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="Target" type="ToolsNameConvention" use="optional"/>\r
+    <xs:attribute name="TagName" type="ToolsNameConvention" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="BootModeAttributes">\r
+    <xs:attribute name="BootModeName" type="BootModeNames" use="required"/>\r
+    <xs:attribute name="Usage" type="BootModeUsage" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="DataHubAttributes">\r
+    <xs:attribute name="Usage" type="DataHubUsage" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="EventAttributes">\r
+    <xs:attribute name="Usage" type="EventUsage" use="required"/>\r
+    <xs:attribute name="EventGuidCName" type="C_NameType" use="optional"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="ExternAttributes">\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="FilenameAttributes">\r
+    <xs:attribute name="TagName" type="ToolsNameConvention" use="optional"/>\r
+    <xs:attribute name="ToolCode" type="ToolsNameConvention" use="optional"/>\r
+    <xs:attribute name="ToolChainFamily" type="ToolsNameConvention" use="optional"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="GuidAttributes">\r
+    <xs:attribute name="Usage" type="GuidUsage" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="GuidDeclarationAttributes">\r
+    <xs:attribute name="Name" type="UiNameType" use="required"/>\r
+    <xs:attribute name="GuidTypeList" type="GuidListType" use="optional"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="HiiPackageAttributes">\r
+    <xs:attribute name="Usage" type="HiiPackageUsage" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="HobAttributes">\r
+    <xs:attribute name="Usage" type="HobUsage" use="required"/>\r
+    <xs:attribute name="HobGuidCName" type="C_NameType" use="optional"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="IncludeHeaderAttributes">\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="IndustryStdHeaderAttributes">\r
+    <xs:attribute name="Name" type="KeywordType" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="LibraryClassAttributes">\r
+    <xs:attribute name="Usage" type="LibraryUsage" use="required"/>\r
+    <xs:attribute name="RecommendedInstanceVersion" type="VersionDataType" use="optional"/>\r
+    <xs:attribute name="RecommendedInstanceGuid" type="GuidType" use="optional"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="LibraryClassDeclarationAttributes">\r
+    <xs:attribute name="Name" type="KeywordType" use="required"/>\r
+    <xs:attribute name="RecommendedInstanceVersion" type="VersionDataType" use="optional"/>\r
+    <xs:attribute name="RecommendedInstanceGuid" type="GuidType" use="optional"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="OptionAttributes">\r
+    <xs:attribute name="BuildTargets" type="BuildTargetList" use="optional"/>\r
+    <xs:attribute name="ToolChainFamily" type="ToolsNameConvention" use="optional"/>\r
+    <xs:attribute name="TagName" type="ToolsNameConvention" use="optional"/>\r
+    <xs:attribute name="ToolCode" type="ToolsNameConvention" use="optional"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="PackageHeaderAttributes">\r
+    <xs:attribute name="ModuleType" type="ModuleTypeDef" use="required"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="PackageAttributes">\r
+    <!-- Used with the MSA File, PackageDependencies.Package -->\r
+    <xs:attribute name="PackageGuid" type="GuidType" use="required"/>\r
+    <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="PackageNameAttributes">\r
+    <!--Used with the FrameworkDatabase PackageList.Packagename  -->\r
+    <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>\r
+    <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+  </xs:attributeGroup>\r
+   <xs:attributeGroup name="PcdCodedAttributes">\r
+    <!-- We need to modify ALL the MSA files that have PcdCoded sections to \r
+      set the PcdUsage.  Once we modify all the MSA files and we modify the \r
+      wizard and the build tools, we need to make this required. -->\r
+    <xs:attribute name="Usage" type="PcdUsage" use="optional"/>\r
+    <xs:attribute name="PcdItemType" type="PcdItemTypes" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="PcdDeclarationAttributes">\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="PpiDeclarationAttributes">\r
+    <xs:attribute name="Name" type="UiNameType" use="required"/>\r
+    <xs:attribute name="GuidTypeList" type="GuidListType" use="optional"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="PpiAttributes">\r
+    <xs:attribute name="Usage" type="PpiUsage" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="PpiNotifyAttributes">\r
+    <xs:attribute name="Usage" type="PpiNotifyUsage" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="ProtocolAttributes">\r
+    <xs:attribute name="Usage" type="ProtocolUsage" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="ProtocolDeclarationAttributes">\r
+    <xs:attribute name="Name" type="UiNameType" use="required"/>\r
+    <xs:attribute name="GuidTypeList" type="GuidListType" use="optional"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="SupModuleList" type="ModuleListType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="ProtocolNotifyAttributes">\r
+    <xs:attribute name="Usage" type="ProtocolNotifyUsage" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="SystemTableAttributes">\r
+    <xs:attribute name="Usage" type="SystemTableUsage" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+  <xs:attributeGroup name="VariableAttributes">\r
+    <xs:attribute name="Usage" type="VariableUsage" use="required"/>\r
+    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>\r
+    <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>\r
+  </xs:attributeGroup>\r
+</xs:schema>\r