Skip to content

Commit 1da2012

Browse files
jmarinhomergify[bot]
authored andcommitted
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 <[email protected]> Signed-off-by: Sami Mujawar <[email protected]> Reviewed-by: Michael Kubacki <[email protected]> Reviewed-by: Ard Biesheuvel <[email protected]>
1 parent 57faeb7 commit 1da2012

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

PrmPkg/Readme.md

+11
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ To build `PrmPkg` as a standalone package:
5252
* ``. edksetup.sh``
5353

5454
5. Build PrmPkg \
55+
56+
The PrmPkg can be built targetting the IA32/X64 and AArch64 architectures.
57+
58+
- IA32/X64
59+
5560
``build -p PrmPkg/PrmPkg.dsc -a IA32 -a X64``
5661
> ***Note***: Due to the way PRM modules are compiled with exports, **only building on Visual Studio compiler tool
5762
chains has been tested**.
@@ -63,6 +68,12 @@ To build `PrmPkg` as a standalone package:
6368
> You can add your own PRM modules into the build and check them with the `PrmInfo` UEFI application described
6469
> later in this document and dump the PRMT table in the OS to check if your PRM module is represented as expected.
6570
71+
- AArch64
72+
``build -p PrmPkg/PrmPkg.dsc -a AARCH64 -t GCC5``
73+
74+
> ***Note***: Only builds with the GCC5 toolchain have been tested.
75+
> ***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.
76+
6677
### PRM Platform GUID
6778

6879
**IMPORTANT** PRM has a concept of a "Platform GUID" which associates a specific platform with a set of PRM modules

0 commit comments

Comments
 (0)