Switch to new package format

This commit is contained in:
2026-06-13 19:59:08 +03:00
parent 154485b62d
commit 0ffe4df854
3 changed files with 45 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
name: edk2-ovmf name: edk2-ovmf
description: EFI Development Kit 2 - Open Virtual Machine Firmware description: EFI Development Kit 2 - Open Virtual Machine Firmware
version: "202508.01" version: "202508.01"
revision: 1 revision: 2
url: https://github.com/tianocore/tianocore.github.io/wiki/EDK-II url: https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
license: BSD-2-Clause-Patent,MIT license: BSD-2-Clause-Patent,MIT
architecture: any architecture: any
+3 -1
View File
@@ -1,4 +1,4 @@
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package # This is the recipe.sh script. It is executed by BPM in a temporary directory when compiling a source package
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
@@ -9,7 +9,9 @@ prepare() {
cd "$BPM_SOURCE" cd "$BPM_SOURCE"
# fix 32-bit instruction errors # fix 32-bit instruction errors
dos2unix "$BPM_SOURCE"/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm dos2unix "$BPM_SOURCE"/UefiCpuPkg/Library/CpuExceptionHandlerLib/X64/ExceptionHandlerAsm.nasm
dos2unix "$BPM_SOURCE"/BaseTools/Source/C/EfiRom/EfiRom.c
patch -Np1 -i "$BPM_WORKDIR"/nasm3.patch patch -Np1 -i "$BPM_WORKDIR"/nasm3.patch
patch -Np1 -i "$BPM_WORKDIR"/fix-discarded-qualifiers-error.patch
} }
# The build function is executed in the source directory # The build function is executed in the source directory
@@ -0,0 +1,41 @@
From 9af06ef3cbb052b142f9660c2c01e7aeb401300c Mon Sep 17 00:00:00 2001
From: Gerd Hoffmann <[email protected]>
Date: Mon, 8 Dec 2025 10:28:50 +0100
Subject: [PATCH] BaseTools/EfiRom: fix compiler warning
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
New warning after updating gcc:
EfiRom.c: In function main:
EfiRom.c:78:17: error: assignment discards const qualifier from pointer target type [-Werror=discarded-qualifiers]
The assigned value is not used, so fix the warning by just removing it.
Signed-off-by: Gerd Hoffmann <[email protected]>
---
BaseTools/Source/C/EfiRom/EfiRom.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/BaseTools/Source/C/EfiRom/EfiRom.c b/BaseTools/Source/C/EfiRom/EfiRom.c
index fa7bf0e62e6d..6e903b350411 100644
--- a/BaseTools/Source/C/EfiRom/EfiRom.c
+++ b/BaseTools/Source/C/EfiRom/EfiRom.c
@@ -44,7 +44,6 @@ Routine Description:
FILE_LIST *FList;
UINT32 TotalSize;
UINT32 Size;
- CHAR8 *Ptr0;
SetUtilityName(UTILITY_NAME);
@@ -75,7 +74,7 @@ Routine Description:
//
if (mOptions.DumpOption == 1) {
if (mOptions.FileList != NULL) {
- if ((Ptr0 = strstr ((CONST CHAR8 *) mOptions.FileList->FileName, DEFAULT_OUTPUT_EXTENSION)) != NULL) {
+ if (strstr ((CONST CHAR8 *) mOptions.FileList->FileName, DEFAULT_OUTPUT_EXTENSION) != NULL) {
DumpImage (mOptions.FileList);
goto BailOut;
} else {