[edk2-devel] [PATCH v1 5/5] PrmPkg: Add details on AArch64 build to the Readme.

Sami Mujawar sami.mujawar at arm.com
Wed Aug 3 14:35:47 UTC 2022


From: Jose Marinho <jose.marinho at arm.com>

Specify how to build the PrmPkg for the AArch64 architecture.
Make the 2 following notes:
 - the PrmPkg has only been tested on AArch64 using the GCC5
toolchain.
 - All symbols to be listed in the PRMT as well as the
PrmModuleExportDescriptor must be explicitly preserved by resorting to
the --require-defined linker flag.

Signed-off-by: Jose Marinho <jose.marinho at arm.com>
Signed-off-by: Sami Mujawar <sami.mujawar at arm.com>
---
 PrmPkg/Readme.md | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/PrmPkg/Readme.md b/PrmPkg/Readme.md
index 4ff8a36123d5f987fdd8b54ebaa87e605fa0b4ea..3191c039fd641307979f0c79c69157dbdebe7eab 100644
--- a/PrmPkg/Readme.md
+++ b/PrmPkg/Readme.md
@@ -52,6 +52,11 @@ To build `PrmPkg` as a standalone package:
      * ``. edksetup.sh``
 
 5. Build PrmPkg \
+
+The PrmPkg can be built targetting the IA32/X64 and AArch64 architectures.
+
+ - IA32/X64
+
    ``build -p PrmPkg/PrmPkg.dsc -a IA32 -a X64``
    > ***Note***: Due to the way PRM modules are compiled with exports, **only building on Visual Studio compiler tool
    chains has been tested**.
@@ -63,6 +68,12 @@ To build `PrmPkg` as a standalone package:
 > You can add your own PRM modules into the build and check them with the `PrmInfo` UEFI application described
 > later in this document and dump the PRMT table in the OS to check if your PRM module is represented as expected.
 
+ - AArch64
+    ``build -p PrmPkg/PrmPkg.dsc -a AARCH64 -t GCC5``
+
+   > ***Note***: Only builds with the GCC5 toolchain have been tested.
+   > ***Note***: For builds with the GCC5 toolchain, the PrmModuleExportDescriptor and any other handler entry points symbols, to be listed in the PRMT, must be explicitly preserved by enumerating these in the AARCH64 linker flags. The --require-defined linker flag must be used for each symbol to be preserved.
+
 ### PRM Platform GUID
 
 **IMPORTANT** PRM has a concept of a "Platform GUID" which associates a specific platform with a set of PRM modules
-- 
'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#92086): https://edk2.groups.io/g/devel/message/92086
Mute This Topic: https://groups.io/mt/92793388/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list