-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/202302' into personal/klautner/fix_testpoint_is…
…sues
- Loading branch information
Showing
32 changed files
with
3,720 additions
and
3,597 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
|
@@ -89,7 +89,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v4 | ||
|
@@ -105,7 +105,7 @@ jobs: | |
git config --system core.longpaths true | ||
- name: Install/Upgrade pip Modules | ||
run: pip install -r pip-requirements.txt --upgrade | ||
run: pip install -r pip-requirements.txt --upgrade requests | ||
|
||
- name: Determine CI Settings File Supported Operations | ||
id: get_ci_file_operations | ||
|
@@ -149,6 +149,78 @@ jobs: | |
print(f'ci_setup_supported={str(ci_setup_supported).lower()}', file=fh) | ||
print(f'setup_supported={str(setup_supported).lower()}', file=fh) | ||
- name: Get Cargo Tool Details | ||
id: get_cargo_tool_details | ||
shell: python | ||
run: | | ||
import os | ||
import requests | ||
GITHUB_REPO = "sagiegurari/cargo-make" | ||
API_URL = f"https://api.github.com/repos/{GITHUB_REPO}/releases/latest" | ||
# Default value in case getting latest fails, cache will fall | ||
# back on this version. | ||
latest_cargo_make_version = "0.36.13" | ||
response = requests.get(API_URL) | ||
if response.status_code == 200: | ||
latest_cargo_make_version = response.json()["tag_name"] | ||
else: | ||
print("::error title=GitHub Release Error!::Failed to get latest cargo-make version!") | ||
cache_key = f'cargo-make-{latest_cargo_make_version}' | ||
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh: | ||
print(f'cargo_bin_path={os.path.join(os.environ["USERPROFILE"], ".cargo", "bin")}', file=fh) | ||
print(f'cargo_make_cache_key={cache_key}', file=fh) | ||
print(f'cargo_make_version={latest_cargo_make_version}', file=fh) | ||
- name: Attempt to Load cargo-make From Cache | ||
id: cargo_make_cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.get_cargo_tool_details.outputs.cargo_bin_path }} | ||
key: ${{ steps.get_cargo_tool_details.outputs.cargo_make_cache_key }} | ||
|
||
- name: Download cargo-make | ||
if: steps.cargo_make_cache.outputs.cache-hit != 'true' | ||
uses: robinraju/[email protected] | ||
with: | ||
repository: 'sagiegurari/cargo-make' | ||
tag: '${{ steps.get_cargo_tool_details.outputs.cargo_make_version }}' | ||
fileName: 'cargo-make-v${{ steps.get_cargo_tool_details.outputs.cargo_make_version }}-x86_64-pc-windows-msvc.zip' | ||
out-file-path: 'cargo-make-download' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract cargo-make | ||
if: steps.cargo_make_cache.outputs.cache-hit != 'true' | ||
env: | ||
CARGO_MAKE_VERSION: ${{ steps.get_cargo_tool_details.outputs.cargo_make_version }} | ||
DEST_DIR: ${{steps.get_cargo_tool_details.outputs.cargo_bin_path }} | ||
shell: python | ||
run: | | ||
import os | ||
import shutil | ||
import zipfile | ||
from pathlib import Path | ||
DOWNLOAD_DIR = Path(os.environ["GITHUB_WORKSPACE"], "cargo-make-download") | ||
ZIP_FILE_NAME = f"cargo-make-v{os.environ['CARGO_MAKE_VERSION']}-x86_64-pc-windows-msvc.zip" | ||
ZIP_FILE_PATH = Path(DOWNLOAD_DIR, ZIP_FILE_NAME) | ||
EXTRACT_DIR = Path(DOWNLOAD_DIR, "cargo-make-contents") | ||
with zipfile.ZipFile(ZIP_FILE_PATH, 'r') as zip_ref: | ||
zip_ref.extractall(EXTRACT_DIR) | ||
for extracted_file in EXTRACT_DIR.iterdir(): | ||
if extracted_file.name == "cargo-make.exe": | ||
shutil.copy2(extracted_file, os.environ["DEST_DIR"]) | ||
break | ||
- name: Rust Prep | ||
run: rustup component add rust-src | ||
|
||
- name: Setup | ||
if: steps.get_ci_file_operations.outputs.setup_supported == 'true' | ||
run: stuart_setup -c .pytool/CISettings.py -t DEBUG -a ${{ matrix.archs }} TOOL_CHAIN_TAG=${{ matrix.tool_chain_tag }} | ||
|
@@ -270,6 +342,29 @@ jobs: | |
STUART_CODEQL_PATH: ${{ steps.cache_key_gen.outputs.codeql_cli_ext_dep_dir }} | ||
run: stuart_ci_build -c .pytool/CISettings.py -t DEBUG -p ${{ matrix.package }} -a ${{ matrix.archs }} TOOL_CHAIN_TAG=${{ matrix.tool_chain_tag }} --codeql | ||
|
||
- name: Build Cleanup | ||
id: build_cleanup | ||
shell: python | ||
run: | | ||
import os | ||
import shutil | ||
from pathlib import Path | ||
dirs_to_delete = ['ia32', 'x64', 'arm', 'aarch64'] | ||
def delete_dirs(path: Path): | ||
if path.exists() and path.is_dir(): | ||
if path.name.lower() in dirs_to_delete: | ||
print(f'Removed {str(path)}') | ||
shutil.rmtree(path) | ||
return | ||
for child_dir in path.iterdir(): | ||
delete_dirs(child_dir) | ||
build_path = Path(os.environ['GITHUB_WORKSPACE'], 'Build') | ||
delete_dirs(build_path) | ||
- name: Upload Build Logs As An Artifact | ||
uses: actions/upload-artifact@v3 | ||
if: success() || failure() | ||
|
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
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
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
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 |
---|---|---|
@@ -1,73 +1,73 @@ | ||
/** @file | ||
ACPI minimum DSDT table | ||
Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> | ||
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
**/ | ||
|
||
DefinitionBlock ( | ||
"DSDT.aml", | ||
"DSDT", | ||
0x01, // DSDT revision. | ||
// A Revision field value greater than or equal to 2 signifies that integers | ||
// declared within the Definition Block are to be evaluated as 64-bit values | ||
"INTEL ", // OEM ID (6 byte string) | ||
"MIN ",// OEM table ID (8 byte string) | ||
0x00 // OEM version of DSDT table (4 byte Integer) | ||
) | ||
|
||
// BEGIN OF ASL SCOPE | ||
{ | ||
Scope(\_SB) { | ||
//--------------------------------------------------------------------------- | ||
// Begin PCI tree object scope | ||
//--------------------------------------------------------------------------- | ||
Device(PCI0) { // PCI Bridge "Host Bridge" | ||
Name(_HID, EISAID("PNP0A08")) // Indicates PCI Express/PCI-X Mode2 host hierarchy | ||
Name(_CID, EISAID("PNP0A03")) // To support legacy OS that doesn't understand the new HID | ||
Name(_SEG, 0) | ||
Method(^BN00, 0){ return(0x0000) } // Returns default Bus number for Peer PCI busses. Name can be overriden with control method placed directly under Device scope | ||
Method(_BBN, 0){ return(BN00()) } // Bus number, optional for the Root PCI Bus | ||
Name(_UID, 0x0000) // Unique Bus ID, optional | ||
Name(BUF0,ResourceTemplate() | ||
{ | ||
// | ||
// I/O Region Allocation 0 ( 0x0000 - 0x0CF7 ) | ||
// | ||
DWordIo(ResourceProducer,MinFixed,MaxFixed,PosDecode,EntireRange, | ||
0x00,0x0000,0x0CF7,0x00,0x0CF8,,,PI00) | ||
// | ||
// PCI Configuration Registers ( 0x0CF8 - 0x0CFF ) | ||
// | ||
Io(Decode16,0x0CF8,0x0CF8,1,0x08) | ||
// | ||
// PCI MMIO space | ||
// | ||
DWordMemory(ResourceProducer,PosDecode,MinFixed,MaxFixed,NonCacheable, | ||
ReadWrite,0x00,0x00,0x00,0x00,0x00,,,PM01) | ||
}) | ||
Method(_CRS,0,Serialized) | ||
{ | ||
// | ||
// Create pointers to Memory Sizing values. | ||
// | ||
CreateDwordField(BUF0, ^PM01._MIN,M1MN) | ||
CreateDwordField(BUF0, ^PM01._MAX,M1MX) | ||
CreateDwordField(BUF0, ^PM01._LEN,M1LN) | ||
|
||
// | ||
// Set Memory Size Values. TLUD represents bits 31:20 of phyical | ||
// TOM, so shift these bits into the correct position and fix up | ||
// the Memory Region available to PCI. | ||
// | ||
Subtract (FixedPcdGet32(PcdPciReservedMemLimit),FixedPcdGet32(PcdPciReservedMemBase),M1LN) | ||
Store (FixedPcdGet32(PcdPciReservedMemBase), M1MN) | ||
Subtract (FixedPcdGet32(PcdPciReservedMemLimit), 1, M1MX) | ||
|
||
Return(BUF0) | ||
} | ||
} | ||
} | ||
}// End of ASL File | ||
|
||
/** @file | ||
ACPI minimum DSDT table | ||
Copyright (c) 2018, Intel Corporation. All rights reserved.<BR> | ||
SPDX-License-Identifier: BSD-2-Clause-Patent | ||
**/ | ||
|
||
DefinitionBlock ( | ||
"DSDT.aml", | ||
"DSDT", | ||
0x01, // DSDT revision. | ||
// A Revision field value greater than or equal to 2 signifies that integers | ||
// declared within the Definition Block are to be evaluated as 64-bit values | ||
"INTEL ", // OEM ID (6 byte string) | ||
"MIN ",// OEM table ID (8 byte string) | ||
0x00 // OEM version of DSDT table (4 byte Integer) | ||
) | ||
|
||
// BEGIN OF ASL SCOPE | ||
{ | ||
Scope(\_SB) { | ||
//--------------------------------------------------------------------------- | ||
// Begin PCI tree object scope | ||
//--------------------------------------------------------------------------- | ||
Device(PCI0) { // PCI Bridge "Host Bridge" | ||
Name(_HID, EISAID("PNP0A08")) // Indicates PCI Express/PCI-X Mode2 host hierarchy | ||
Name(_CID, EISAID("PNP0A03")) // To support legacy OS that doesn't understand the new HID | ||
Name(_SEG, 0) | ||
Method(^BN00, 0){ return(0x0000) } // Returns default Bus number for Peer PCI busses. Name can be overriden with control method placed directly under Device scope | ||
Method(_BBN, 0){ return(BN00()) } // Bus number, optional for the Root PCI Bus | ||
Name(_UID, 0x0000) // Unique Bus ID, optional | ||
Name(BUF0,ResourceTemplate() | ||
{ | ||
// | ||
// I/O Region Allocation 0 ( 0x0000 - 0x0CF7 ) | ||
// | ||
DWordIo(ResourceProducer,MinFixed,MaxFixed,PosDecode,EntireRange, | ||
0x00,0x0000,0x0CF7,0x00,0x0CF8,,,PI00) | ||
// | ||
// PCI Configuration Registers ( 0x0CF8 - 0x0CFF ) | ||
// | ||
Io(Decode16,0x0CF8,0x0CF8,1,0x08) | ||
// | ||
// PCI MMIO space | ||
// | ||
DWordMemory(ResourceProducer,PosDecode,MinFixed,MaxFixed,NonCacheable, | ||
ReadWrite,0x00,0x00,0x00,0x00,0x00,,,PM01) | ||
}) | ||
Method(_CRS,0,Serialized) | ||
{ | ||
// | ||
// Create pointers to Memory Sizing values. | ||
// | ||
CreateDwordField(BUF0, ^PM01._MIN,M1MN) | ||
CreateDwordField(BUF0, ^PM01._MAX,M1MX) | ||
CreateDwordField(BUF0, ^PM01._LEN,M1LN) | ||
|
||
// | ||
// Set Memory Size Values. TLUD represents bits 31:20 of phyical | ||
// TOM, so shift these bits into the correct position and fix up | ||
// the Memory Region available to PCI. | ||
// | ||
Subtract (FixedPcdGet32(PcdPciReservedMemLimit),FixedPcdGet32(PcdPciReservedMemBase),M1LN) | ||
Store (FixedPcdGet32(PcdPciReservedMemBase), M1MN) | ||
Subtract (FixedPcdGet32(PcdPciReservedMemLimit), 1, M1MX) | ||
|
||
Return(BUF0) | ||
} | ||
} | ||
} | ||
}// End of ASL File | ||
|
Oops, something went wrong.