summaryrefslogtreecommitdiffstats
path: root/PrmPkg
diff options
context:
space:
mode:
authorJose Marinho <jose.marinho@arm.com>2022-07-26 17:54:42 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-08-08 22:43:51 +0000
commit1da2012d938f141821740324e2dceee1b4cfa76d (patch)
tree8a49868c7162aad13ac9dd1e73bdf4f38eba222b /PrmPkg
parent57faeb782a505935363936ab2edce282d3afc4d5 (diff)
downloadedk2-1da2012d938f141821740324e2dceee1b4cfa76d.tar.gz
edk2-1da2012d938f141821740324e2dceee1b4cfa76d.tar.bz2
edk2-1da2012d938f141821740324e2dceee1b4cfa76d.zip
PrmPkg: Add details on AArch64 build to the Readme.
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@arm.com> Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'PrmPkg')
-rw-r--r--PrmPkg/Readme.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/PrmPkg/Readme.md b/PrmPkg/Readme.md
index 4ff8a36123..3191c039fd 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