mirror of https://github.com/acidanthera/audk.git
CorebootPayloadPkg DSC: Add build option to disable deprecated APIs
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated. As a result replaced PcdSet32 with PcdSet32S accordingly to make the build pass. [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Prince Agyeman <prince.agyeman@intel.com> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=163 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Maurice Ma <maurice.ma@intel.com> Reviewed-by: Prince Agyeman <prince.agyeman@intel.com>
This commit is contained in:
parent
937f5cb6ac
commit
3f0edb77f6
|
@ -329,7 +329,8 @@ CbPeiEntryPoint (
|
||||||
if ((CbParseGetCbHeader (1, &pCbHeader) == RETURN_SUCCESS)
|
if ((CbParseGetCbHeader (1, &pCbHeader) == RETURN_SUCCESS)
|
||||||
&& ((UINTN)pCbHeader > BASE_4KB)) {
|
&& ((UINTN)pCbHeader > BASE_4KB)) {
|
||||||
DEBUG((EFI_D_ERROR, "Actual Coreboot header: %p.\n", pCbHeader));
|
DEBUG((EFI_D_ERROR, "Actual Coreboot header: %p.\n", pCbHeader));
|
||||||
PcdSet32 (PcdCbHeaderPointer, (UINT32)(UINTN)pCbHeader);
|
Status = PcdSet32S (PcdCbHeaderPointer, (UINT32)(UINTN)pCbHeader);
|
||||||
|
ASSERT_EFI_ERROR (Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -83,6 +83,7 @@
|
||||||
DEFINE SHELL_TYPE = FULL_BIN
|
DEFINE SHELL_TYPE = FULL_BIN
|
||||||
|
|
||||||
[BuildOptions]
|
[BuildOptions]
|
||||||
|
*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
|
||||||
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||||
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||||
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
||||||
|
|
|
@ -83,6 +83,7 @@
|
||||||
DEFINE SHELL_TYPE = FULL_BIN
|
DEFINE SHELL_TYPE = FULL_BIN
|
||||||
|
|
||||||
[BuildOptions]
|
[BuildOptions]
|
||||||
|
*_*_*_CC_FLAGS = /D DISABLE_NEW_DEPRECATED_INTERFACES
|
||||||
GCC:DEBUG_*_*_CC_FLAGS = -Og -flto
|
GCC:DEBUG_*_*_CC_FLAGS = -Og -flto
|
||||||
GCC:DEBUG_*_*_DLINK_FLAGS = -flto
|
GCC:DEBUG_*_*_DLINK_FLAGS = -flto
|
||||||
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||||
|
|
Loading…
Reference in New Issue