]> git.proxmox.com Git - mirror_edk2.git/blobdiff - PrmPkg/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf
PrmPkg: Build Prm Samples with GCC for AARCH64
[mirror_edk2.git] / PrmPkg / Samples / PrmSampleContextBufferModule / PrmSampleContextBufferModule.inf
index 4dd77f5261163d3b5564eb275029fd254b18b545..ff72a233669657c260f284cd2fbc4126077d4426 100644 (file)
@@ -5,7 +5,9 @@
 #  that applies the configuration for the PRM context data in the boot environment. A PRM handler\r
 #  is provided that accesses the context buffer resources and prints their value at OS runtime.\r
 #\r
+#  Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
 #  Copyright (c) Microsoft Corporation\r
+#  Copyright (c) 2022, Arm Limited. All rights reserved.<BR>\r
 #\r
 #  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
@@ -40,3 +42,7 @@
 \r
 [BuildOptions.common]\r
   MSFT:*_*_*_DLINK_FLAGS  = /DLL /SUBSYSTEM:CONSOLE /VERSION:1.0\r
+  MSFT:*_*_*_GENFW_FLAGS = --keepoptionalheader\r
+\r
+  GCC:*_*_AARCH64_GENFW_FLAGS = --keepoptionalheader --prm\r
+  GCC:*_*_AARCH64_DLINK_FLAGS = -Wl,--no-gc-sections -Wl,--require-defined=PrmModuleExportDescriptor -Wl,--require-defined=CheckStaticDataBufferPrmHandler\r