Rebase AlmaLinux X64 ISA-baseline pin onto edk2 20260821 (GCC48 -> GCCNOLTO) #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "triage/fix-edk2-manual-86018"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The AlmaLinux-only autopatch
0001-BaseTools-pin-the-X64-ISA-baseline-to-x86-64-v2.patchno longer applied after the edk2 rebase from 20260221-7 to 20260821-2, failing%prepon every arch:What drifted upstream
Upstream reorganized
BaseTools/Conf/tools_def.templateand removed the deprecatedGCC48/GCC49/GCC5toolchains. The GCC X64 flag DEFINE block moved from line ~865 to line ~618, and the macro was renamed:DEFINE GCC48_X64_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) DEF(GCC_IA32_X64_CC_FLAGS) -m64 ...DEFINE GCCNOLTO_X64_CC_FLAGS = DEF(GCC_ALL_CC_FLAGS) DEF(GCC_IA32_X64_CC_FLAGS) -m64 ...GCCNOLTO_X64_CC_FLAGSis the successor base:GCC_X64_CC_FLAGS = DEF(GCCNOLTO_X64_CC_FLAGS), and the LTO GCC toolchain used by the spec (%define TOOLCHAIN GCC) derives its X64 CC flags fromGCC_X64_CC_FLAGS. So pinningGCCNOLTO_X64_CC_FLAGSpropagates the ISA baseline to exactly the toolchain that builds OVMF, preserving the original patch's intent.Fix
Re-anchored the single one-line hunk onto the renamed/relocated
GCCNOLTO_X64_CC_FLAGSline, inserting-march=x86-64-v2immediately after-m64(identical placement to the original). The diff body was regenerated with git so the hunk header/counts are correct by construction. The commit message/body is unchanged.Verification
patch -p1 --fuzz=0 --dry-runand a realpatch -p1 --fuzz=0against a pristine copy ofsrc/both apply cleanly (exit=0) and yield the intended-march=x86-64-v2pin.