This repository has been archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WhitleyOpenBoardPkg/WilsonCityRvp: Generate AML offset table
Add PreBuild step to generate the AML offset table for the ACPI tables. Cc: Nate DeSimone <[email protected]> Cc: Chasel Chiu <[email protected]> Signed-off-by: Isaac Oram <[email protected]> Reviewed-by: Nate DeSimone <[email protected]>
- Loading branch information
Showing
5 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
WhitleyOpenBoardPkg/Uba/UbaMain/StaticSkuDataDxe/AmlOffsetTable.c | ||
__init__.py |
41 changes: 41 additions & 0 deletions
41
Platform/Intel/WhitleyOpenBoardPkg/WilsonCityRvp/AmlOffsets.dsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## @file | ||
# Build file for generating AML offset table | ||
# | ||
# @copyright | ||
# Copyright (C) 2021 Intel Corporation. | ||
# | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
## | ||
|
||
[Defines] | ||
PLATFORM_NAME = $(RP_PKG) | ||
PLATFORM_GUID = D7EAF54D-C9B9-4075-89F0-71943DBCFA61 | ||
PLATFORM_VERSION = 0.1 | ||
DSC_SPECIFICATION = 0x00010005 | ||
OUTPUT_DIRECTORY = Build/$(RP_PKG) | ||
SUPPORTED_ARCHITECTURES = IA32|X64 | ||
BUILD_TARGETS = DEBUG|RELEASE | ||
PLATFORM_SI_PACKAGE = ClientOneSiliconPkg | ||
DEFINE PLATFORM_SI_BIN_PACKAGE = WhitleySiliconBinPkg | ||
PEI_ARCH = IA32 | ||
DXE_ARCH = X64 | ||
|
||
!if $(CPUTARGET) == "CPX" | ||
DEFINE FSP_BIN_PKG = CedarIslandFspBinPkg | ||
DEFINE IIO_INSTANCE = Skx | ||
!elseif $(CPUTARGET) == "ICX" | ||
DEFINE FSP_BIN_PKG = WhitleyFspBinPkg | ||
DEFINE IIO_INSTANCE = Icx | ||
!else | ||
DEFINE IIO_INSTANCE = UnknownCpu | ||
!endif | ||
|
||
# | ||
# Platform On/Off features are defined here | ||
# | ||
!include $(RP_PKG)/PlatformPkgConfig.dsc | ||
|
||
[Components.X64] | ||
$(RP_PKG)/WilsonCityRvp/AmlOffsets/AmlOffsets.inf | ||
|
||
!include $(RP_PKG)/Include/Dsc/BuildOptions.dsc |
26 changes: 26 additions & 0 deletions
26
Platform/Intel/WhitleyOpenBoardPkg/WilsonCityRvp/AmlOffsets/AmlOffsets.inf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## @file | ||
# Generate AML offset table EPRPPlatform10nm.offset.h via edk2 build | ||
# | ||
# @copyright | ||
# Copyright (C) 2022 Intel Corporation. | ||
# | ||
# SPDX-License-Identifier: BSD-2-Clause-Patent | ||
## | ||
|
||
[Defines] | ||
INF_VERSION = 0x00010005 | ||
BASE_NAME = AmlOffsets | ||
FILE_GUID = d7641589-753a-44c5-91c2-bd09686205c6 | ||
MODULE_TYPE = USER_DEFINED | ||
VERSION_STRING = 1.0 | ||
|
||
[Sources] | ||
WhitleyOpenBoardPkg/Features/Acpi/AcpiTables/Dsdt/EPRPPlatform10nm.asl | ||
|
||
[Packages] | ||
MdePkg/MdePkg.dec | ||
WhitleySiliconPkg/SiliconPkg.dec | ||
|
||
[BuildOptions] | ||
# add -vr and -so to generate offset.h | ||
*_*_*_ASL_FLAGS = -oi -vr -so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters