From 3f0edb77f6c6b2ae644fac5526febbf3e2fbef73 Mon Sep 17 00:00:00 2001 From: Maurice Ma Date: Mon, 24 Oct 2016 14:34:52 -0700 Subject: 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 Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=163 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Maurice Ma Reviewed-by: Prince Agyeman --- CorebootModulePkg/CbSupportPei/CbSupportPei.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CorebootModulePkg') diff --git a/CorebootModulePkg/CbSupportPei/CbSupportPei.c b/CorebootModulePkg/CbSupportPei/CbSupportPei.c index 366682b32d..9d5803449e 100755 --- a/CorebootModulePkg/CbSupportPei/CbSupportPei.c +++ b/CorebootModulePkg/CbSupportPei/CbSupportPei.c @@ -329,7 +329,8 @@ CbPeiEntryPoint ( if ((CbParseGetCbHeader (1, &pCbHeader) == RETURN_SUCCESS) && ((UINTN)pCbHeader > BASE_4KB)) { 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); } // -- cgit v1.2.3