summaryrefslogtreecommitdiffstats
path: root/DynamicTablesPkg
diff options
context:
space:
mode:
Diffstat (limited to 'DynamicTablesPkg')
-rw-r--r--DynamicTablesPkg/DynamicTables.dsc.inc1
-rw-r--r--DynamicTablesPkg/DynamicTablesPkg.ci.yaml6
-rw-r--r--DynamicTablesPkg/DynamicTablesPkg.dec5
-rw-r--r--DynamicTablesPkg/DynamicTablesPkg.dsc3
-rw-r--r--DynamicTablesPkg/Library/Common/AmlLib/AmlLib.inf76
5 files changed, 88 insertions, 3 deletions
diff --git a/DynamicTablesPkg/DynamicTables.dsc.inc b/DynamicTablesPkg/DynamicTables.dsc.inc
index bc03c09d6c..928529f797 100644
--- a/DynamicTablesPkg/DynamicTables.dsc.inc
+++ b/DynamicTablesPkg/DynamicTables.dsc.inc
@@ -13,6 +13,7 @@
RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
[LibraryClasses.common]
+ AmlLib|DynamicTablesPkg/Library/Common/AmlLib/AmlLib.inf
TableHelperLib|DynamicTablesPkg/Library/Common/TableHelperLib/TableHelperLib.inf
[Components.common]
diff --git a/DynamicTablesPkg/DynamicTablesPkg.ci.yaml b/DynamicTablesPkg/DynamicTablesPkg.ci.yaml
index f39b801946..5ee2035732 100644
--- a/DynamicTablesPkg/DynamicTablesPkg.ci.yaml
+++ b/DynamicTablesPkg/DynamicTablesPkg.ci.yaml
@@ -1,7 +1,7 @@
## @file
# CI configuration for DynamicTablesPkg
#
-# Copyright (c) 2020, ARM Limited. All rights reserved.<BR>
+# Copyright (c) 2020, Arm Limited. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
{
@@ -69,11 +69,15 @@
"IgnoreFiles": [], # use gitignore syntax to ignore errors
# in matching files
"ExtendWords": [
+ "EISAID",
"CCIDX",
"CCSIDR",
"countof",
"EOBJECT",
+ "invoc",
"GTBLOCK",
+ "lgreater",
+ "lless",
"MPIDR",
"pytool",
"Roadmap",
diff --git a/DynamicTablesPkg/DynamicTablesPkg.dec b/DynamicTablesPkg/DynamicTablesPkg.dec
index 6cb8a0b4f2..57e6815fa1 100644
--- a/DynamicTablesPkg/DynamicTablesPkg.dec
+++ b/DynamicTablesPkg/DynamicTablesPkg.dec
@@ -1,7 +1,7 @@
## @file
# dec file for Dynamic Tables Framework.
#
-# Copyright (c) 2017 - 2020, ARM Limited. All rights reserved.<BR>
+# Copyright (c) 2017 - 2020, Arm Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
@@ -17,6 +17,9 @@
Include
[LibraryClasses]
+ ## @libraryclass Defines a set of APIs for Dynamic AML generation.
+ AmlLib|Include/Library/AmlLib/AmlLib.h
+
## @libraryclass Defines a set of helper methods.
TableHelperLib|Include/Library/TableHelperLib.h
diff --git a/DynamicTablesPkg/DynamicTablesPkg.dsc b/DynamicTablesPkg/DynamicTablesPkg.dsc
index 5fb30a9315..add6b192ad 100644
--- a/DynamicTablesPkg/DynamicTablesPkg.dsc
+++ b/DynamicTablesPkg/DynamicTablesPkg.dsc
@@ -2,7 +2,7 @@
# Dsc file for Dynamic Tables Framework.
#
# Copyright (c) 2019, Linaro Limited. All rights reserved.<BR>
-# Copyright (c) 2019 - 2020, ARM Limited. All rights reserved.<BR>
+# Copyright (c) 2019 - 2020, Arm Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
@@ -36,6 +36,7 @@
PL011UartLib|ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.inf
[Components.common]
+ DynamicTablesPkg/Library/Common/AmlLib/AmlLib.inf
DynamicTablesPkg/Library/Common/TableHelperLib/TableHelperLib.inf
[BuildOptions]
diff --git a/DynamicTablesPkg/Library/Common/AmlLib/AmlLib.inf b/DynamicTablesPkg/Library/Common/AmlLib/AmlLib.inf
new file mode 100644
index 0000000000..e2babef445
--- /dev/null
+++ b/DynamicTablesPkg/Library/Common/AmlLib/AmlLib.inf
@@ -0,0 +1,76 @@
+## @file
+# AML Generation Library
+#
+# Copyright (c) 2019 - 2020, Arm Limited. All rights reserved.<BR>
+#
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+##
+
+[Defines]
+ INF_VERSION = 0x0001001B
+ BASE_NAME = DynamicAmlLib
+ FILE_GUID = 23A6AFDA-F2A5-45EC-BEFF-420639D345B9
+ VERSION_STRING = 1.0
+ MODULE_TYPE = DXE_DRIVER
+ LIBRARY_CLASS = AmlLib
+
+[Sources]
+ AmlCoreInterface.h
+ AmlDefines.h
+ AmlInclude.h
+ AmlNodeDefines.h
+ AmlDbgPrint/AmlDbgPrint.c
+ AmlDbgPrint/AmlDbgPrint.h
+ AmlEncoding/Aml.c
+ AmlEncoding/Aml.h
+ Api/AmlApi.c
+ Api/AmlApiHelper.c
+ Api/AmlApiHelper.h
+ Api/AmlResourceDataApi.c
+ CodeGen/AmlCodeGen.c
+ CodeGen/AmlResourceDataCodeGen.c
+ CodeGen/AmlResourceDataCodeGen.h
+ NameSpace/AmlNameSpace.c
+ NameSpace/AmlNameSpace.h
+ Parser/AmlFieldListParser.c
+ Parser/AmlFieldListParser.h
+ Parser/AmlMethodParser.c
+ Parser/AmlMethodParser.h
+ Parser/AmlParser.c
+ Parser/AmlParser.h
+ Parser/AmlResourceDataParser.c
+ Parser/AmlResourceDataParser.h
+ ResourceData/AmlResourceData.c
+ ResourceData/AmlResourceData.h
+ Serialize/AmlSerialize.c
+ Stream/AmlStream.c
+ Stream/AmlStream.h
+ String/AmlString.c
+ String/AmlString.h
+ Tree/AmlClone.c
+ Tree/AmlTreeIterator.h
+ Tree/AmlNode.c
+ Tree/AmlNode.h
+ Tree/AmlNodeInterface.c
+ Tree/AmlTree.c
+ Tree/AmlTree.h
+ Tree/AmlTreeEnumerator.c
+ Tree/AmlTreeIterator.c
+ Tree/AmlTreeTraversal.c
+ Tree/AmlTreeTraversal.h
+ Utils/AmlUtility.c
+ Utils/AmlUtility.h
+
+[Packages]
+ MdePkg/MdePkg.dec
+ DynamicTablesPkg/DynamicTablesPkg.dec
+
+[LibraryClasses]
+ BaseLib
+
+[BuildOptions]
+ *_*_*_CC_FLAGS = -DAML_HANDLE
+
+[Protocols]
+
+[Guids]