mirror of https://github.com/acidanthera/audk.git
DynamicTablesPkg: Fix X64 compilation errors
Add the support for X64 compilation to the CI. Fix the compilation errors. Cc: Pierre Gondois <pierre.gondois@arm.com> Cc: Sami Mujawar <sami.mujawar@arm.com> Signed-off-by: Abdul Lateef Attar <AbdulLateef.Attar@amd.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
parent
7a5823f85b
commit
ea658e35a9
|
@ -2,6 +2,7 @@
|
||||||
# Dsc include file for Dynamic Tables Framework.
|
# Dsc include file for Dynamic Tables Framework.
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 - 2022, Arm Limited. All rights reserved.<BR>
|
# Copyright (c) 2017 - 2022, Arm Limited. All rights reserved.<BR>
|
||||||
|
# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
#
|
#
|
||||||
|
@ -21,6 +22,18 @@
|
||||||
SmbiosStringTableLib|DynamicTablesPkg/Library/Common/SmbiosStringTableLib/SmbiosStringTableLib.inf
|
SmbiosStringTableLib|DynamicTablesPkg/Library/Common/SmbiosStringTableLib/SmbiosStringTableLib.inf
|
||||||
|
|
||||||
[Components.common]
|
[Components.common]
|
||||||
|
#
|
||||||
|
# Dynamic Tables Manager Dxe
|
||||||
|
#
|
||||||
|
DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.inf
|
||||||
|
|
||||||
|
[Components.X64]
|
||||||
|
#
|
||||||
|
# Dynamic Table Factory Dxe
|
||||||
|
#
|
||||||
|
DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFactoryDxe.inf
|
||||||
|
|
||||||
|
[Components.ARM, Components.AARCH64]
|
||||||
#
|
#
|
||||||
# Generators
|
# Generators
|
||||||
#
|
#
|
||||||
|
@ -70,8 +83,3 @@
|
||||||
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieLibArm.inf
|
NULL|DynamicTablesPkg/Library/Acpi/Arm/AcpiSsdtPcieLibArm/SsdtPcieLibArm.inf
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
|
||||||
# Dynamic Tables Manager Dxe
|
|
||||||
#
|
|
||||||
DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.inf
|
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019, Linaro Limited. All rights reserved.<BR>
|
# Copyright (c) 2019, Linaro Limited. All rights reserved.<BR>
|
||||||
# Copyright (c) 2019 - 2022, Arm Limited. All rights reserved.<BR>
|
# Copyright (c) 2019 - 2022, Arm Limited. All rights reserved.<BR>
|
||||||
|
# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
#
|
#
|
||||||
|
@ -14,7 +15,7 @@
|
||||||
PLATFORM_VERSION = 0.1
|
PLATFORM_VERSION = 0.1
|
||||||
DSC_SPECIFICATION = 0x0001001a
|
DSC_SPECIFICATION = 0x0001001a
|
||||||
OUTPUT_DIRECTORY = Build/DynamicTables
|
OUTPUT_DIRECTORY = Build/DynamicTables
|
||||||
SUPPORTED_ARCHITECTURES = ARM|AARCH64
|
SUPPORTED_ARCHITECTURES = ARM|AARCH64|X64
|
||||||
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
||||||
SKUID_IDENTIFIER = DEFAULT
|
SKUID_IDENTIFIER = DEFAULT
|
||||||
|
|
||||||
|
@ -44,10 +45,12 @@
|
||||||
DynamicTablesPkg/Library/Common/SsdtPcieSupportLib/SsdtPcieSupportLib.inf
|
DynamicTablesPkg/Library/Common/SsdtPcieSupportLib/SsdtPcieSupportLib.inf
|
||||||
DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFixupLib.inf
|
DynamicTablesPkg/Library/Common/SsdtSerialPortFixupLib/SsdtSerialPortFixupLib.inf
|
||||||
DynamicTablesPkg/Library/Common/TableHelperLib/TableHelperLib.inf
|
DynamicTablesPkg/Library/Common/TableHelperLib/TableHelperLib.inf
|
||||||
DynamicTablesPkg/Library/FdtHwInfoParserLib/FdtHwInfoParserLib.inf
|
|
||||||
DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepoLib.inf
|
DynamicTablesPkg/Library/Common/DynamicPlatRepoLib/DynamicPlatRepoLib.inf
|
||||||
DynamicTablesPkg/Library/Common/SmbiosStringTableLib/SmbiosStringTableLib.inf
|
DynamicTablesPkg/Library/Common/SmbiosStringTableLib/SmbiosStringTableLib.inf
|
||||||
|
|
||||||
|
[Components.ARM, Components.AARCH64]
|
||||||
|
DynamicTablesPkg/Library/FdtHwInfoParserLib/FdtHwInfoParserLib.inf
|
||||||
|
|
||||||
[BuildOptions]
|
[BuildOptions]
|
||||||
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# AML Generation Library
|
# AML Generation Library
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 - 2021, Arm Limited. All rights reserved.<BR>
|
# Copyright (c) 2019 - 2021, Arm Limited. All rights reserved.<BR>
|
||||||
|
# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
##
|
##
|
||||||
|
@ -68,6 +69,7 @@
|
||||||
[LibraryClasses]
|
[LibraryClasses]
|
||||||
AcpiHelperLib
|
AcpiHelperLib
|
||||||
BaseLib
|
BaseLib
|
||||||
|
MemoryAllocationLib
|
||||||
|
|
||||||
[BuildOptions]
|
[BuildOptions]
|
||||||
*_*_*_CC_FLAGS = -DAML_HANDLE
|
*_*_*_CC_FLAGS = -DAML_HANDLE
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
AML Code Generation.
|
AML Code Generation.
|
||||||
|
|
||||||
Copyright (c) 2020 - 2022, Arm Limited. All rights reserved.<BR>
|
Copyright (c) 2020 - 2022, Arm Limited. All rights reserved.<BR>
|
||||||
Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
Copyright (C) 2023 - 2024, Advanced Micro Devices, Inc. All rights reserved.<BR>
|
||||||
|
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
**/
|
**/
|
||||||
|
@ -922,7 +922,7 @@ AmlCodeGenNameUnicodeString (
|
||||||
Status = AmlCreateDataNode (
|
Status = AmlCreateDataNode (
|
||||||
EAmlNodeDataTypeRaw,
|
EAmlNodeDataTypeRaw,
|
||||||
(CONST UINT8 *)String,
|
(CONST UINT8 *)String,
|
||||||
StrSize (String),
|
(UINT32)StrSize (String),
|
||||||
&DataNode
|
&DataNode
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
Dynamic Platform Info Repository
|
Dynamic Platform Info Repository
|
||||||
|
|
||||||
Copyright (c) 2021, Arm Limited. All rights reserved.<BR>
|
Copyright (c) 2021, Arm Limited. All rights reserved.<BR>
|
||||||
|
Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
||||||
|
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
|
@ -287,8 +288,8 @@ GroupCmObjNodes (
|
||||||
|
|
||||||
CmObjDesc = &This->ArmCmObjArray[ArmObjIndex];
|
CmObjDesc = &This->ArmCmObjArray[ArmObjIndex];
|
||||||
CmObjDesc->ObjectId = CmObjId;
|
CmObjDesc->ObjectId = CmObjId;
|
||||||
CmObjDesc->Size = Size;
|
CmObjDesc->Size = (UINT32)Size;
|
||||||
CmObjDesc->Count = Count;
|
CmObjDesc->Count = (UINT32)Count;
|
||||||
CmObjDesc->Data = GroupedData;
|
CmObjDesc->Data = GroupedData;
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
@ -340,7 +341,7 @@ DynamicPlatRepoFinalise (
|
||||||
// (the array is wrapped in a CmObjDesc).
|
// (the array is wrapped in a CmObjDesc).
|
||||||
// - Add the Token/CmObj binding to the token mapper.
|
// - Add the Token/CmObj binding to the token mapper.
|
||||||
for (ArmObjIndex = 0; ArmObjIndex < EArmObjMax; ArmObjIndex++) {
|
for (ArmObjIndex = 0; ArmObjIndex < EArmObjMax; ArmObjIndex++) {
|
||||||
Status = GroupCmObjNodes (This, ArmObjIndex);
|
Status = GroupCmObjNodes (This, (UINT32)ArmObjIndex);
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
ASSERT (0);
|
ASSERT (0);
|
||||||
// Free the TokenMapper.
|
// Free the TokenMapper.
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
Table Helper
|
Table Helper
|
||||||
|
|
||||||
Copyright (c) 2017 - 2021, Arm Limited. All rights reserved.<BR>
|
Copyright (c) 2017 - 2021, Arm Limited. All rights reserved.<BR>
|
||||||
|
Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
||||||
|
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
**/
|
**/
|
||||||
|
@ -14,6 +15,7 @@
|
||||||
// Module specific include files.
|
// Module specific include files.
|
||||||
#include <AcpiTableGenerator.h>
|
#include <AcpiTableGenerator.h>
|
||||||
#include <ConfigurationManagerObject.h>
|
#include <ConfigurationManagerObject.h>
|
||||||
|
#include <Library/AmlLib/AmlLib.h>
|
||||||
#include <Library/TableHelperLib.h>
|
#include <Library/TableHelperLib.h>
|
||||||
#include <Protocol/ConfigurationManagerProtocol.h>
|
#include <Protocol/ConfigurationManagerProtocol.h>
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# Table Helper
|
# Table Helper
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 - 2021, ARM Limited. All rights reserved.
|
# Copyright (c) 2017 - 2021, ARM Limited. All rights reserved.
|
||||||
|
# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
##
|
##
|
||||||
|
@ -24,4 +25,5 @@
|
||||||
DynamicTablesPkg/DynamicTablesPkg.dec
|
DynamicTablesPkg/DynamicTablesPkg.dec
|
||||||
|
|
||||||
[LibraryClasses]
|
[LibraryClasses]
|
||||||
|
AmlLib
|
||||||
BaseLib
|
BaseLib
|
||||||
|
|
Loading…
Reference in New Issue