summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source
diff options
context:
space:
mode:
authorPierre Gondois <pierre.gondois@arm.com>2020-07-01 22:06:02 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-07-02 10:09:17 +0000
commit88228db38ead6836da7a8d24e11569d5fab54c54 (patch)
tree12d9353dde51b10b33e968eb82bf344603345026 /BaseTools/Source
parent6511277827fd33023418e2ee72d6ab2b89a925f9 (diff)
downloadedk2-88228db38ead6836da7a8d24e11569d5fab54c54.tar.gz
edk2-88228db38ead6836da7a8d24e11569d5fab54c54.tar.bz2
edk2-88228db38ead6836da7a8d24e11569d5fab54c54.zip
BaseTools: Rename AmlToHex script to AmlToC
The AmlToHex script and Posix/WindowsLike wrappers convert an AML file to a .hex file, containing a C array storing AML bytecode. This ".hex" file can then be included in a C file, allowing to access the AML bytecode from this C file. The EDK2 build system doesn't allow to a depict dependency orders between files of different languages. For instance, in a module containing a ".c" file and a ".asl", the ".c" file may or may not be built prior to the ".asl" file. This prevents any inclusion of a generated ".hex" in a ".c" file since this later ".hex" file may or may not have been created yet. This patch renames the script as AmlToC. It is posted as a separate patch to prevent git from seeing the renaming as a deletion plus addition of a new file. The ending line of the posix-like bin-wrapper script has also been corrected. This is a first step toward generating a C file containing the AML bytecode from an ASL file. This C file will then be handled by the EDK2 build system to generate an object file. Thus, no file inclusion will be required anymore. The C file requiring the AML bytecode as a C array, and the ASL file, will be compiled independently. The C array must be defined as an external symbol. The linker is resolving the reference to the C array symbol. To summarize, the flow goes as: -1. ASL file is compiled to AML; -2. AML file is copied to a ".amli" intermediate file; -3. EDK2 build system applies the rule relevant to ".amli" files. This is, calling the "AmlToC" script, generating a C file from the ".amli" file; -4. EDK2 build system applies the rule relevant to C files. This is creating an object file. -5. EDK2 build system links the object file containing the AML bytecode with the object file requiring it. Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com> Suggested-by: Tomas Pilar <Tomas.Pilar@arm.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source')
-rw-r--r--BaseTools/Source/Python/AmlToC/AmlToC.py (renamed from BaseTools/Source/Python/AmlToHex/AmlToHex.py)0
1 files changed, 0 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AmlToHex/AmlToHex.py b/BaseTools/Source/Python/AmlToC/AmlToC.py
index 643db2910e..643db2910e 100644
--- a/BaseTools/Source/Python/AmlToHex/AmlToHex.py
+++ b/BaseTools/Source/Python/AmlToC/AmlToC.py