diff --git a/edk2-build.fedora b/edk2-build.fedora index 59a2929..c5f1d07 100644 --- a/edk2-build.fedora +++ b/edk2-build.fedora @@ -47,10 +47,14 @@ TPM2_CONFIG_ENABLE = FALSE [pcds.nx.strict] PcdDxeNxMemoryProtectionPolicy = 0xC000000000007FD5 +# Default is FALSE, so there no need to actually set it. +#PcdUninstallMemAttrProtocol = FALSE -[pcds.nx.broken.grub] +[pcds.nx.broken.shim.grub] # grub.efi uses EfiLoaderData for code PcdDxeNxMemoryProtectionPolicy = 0xC000000000007FD1 +# shim.efi has broken MemAttr code +PcdUninstallMemAttrProtocol = TRUE ##################################################################### @@ -157,7 +161,7 @@ conf = ArmVirtPkg/ArmVirtQemu.dsc arch = AARCH64 opts = ovmf.common armvirt.verbose -pcds = nx.broken.grub +pcds = nx.broken.shim.grub plat = ArmVirtQemu-AARCH64 dest = Fedora/aarch64 cpy1 = FV/QEMU_EFI.fd @@ -173,7 +177,7 @@ conf = ArmVirtPkg/ArmVirtQemu.dsc arch = AARCH64 opts = ovmf.common armvirt.silent -pcds = nx.broken.grub +pcds = nx.broken.shim.grub plat = ArmVirtQemu-AARCH64 dest = Fedora/aarch64 cpy1 = FV/QEMU_EFI.fd QEMU_EFI.silent.fd @@ -187,7 +191,7 @@ arch = AARCH64 opts = ovmf.common armvirt.silent armvirt.kernel -pcds = nx.broken.grub +pcds = nx.broken.shim.grub plat = ArmVirtQemuKernel-AARCH64 dest = Fedora/aarch64 cpy1 = FV/QEMU_EFI.fd QEMU_EFI.kernel.fd @@ -241,7 +245,7 @@ desc = ArmVirt build for qemu, 32-bit (arm v7) conf = ArmVirtPkg/ArmVirtQemu.dsc arch = ARM opts = ovmf.common -pcds = nx.broken.grub +pcds = nx.broken.shim.grub plat = ArmVirtQemu-ARM dest = Fedora/arm cpy1 = FV/QEMU_EFI.fd diff --git a/edk2-build.rhel-9 b/edk2-build.rhel-9 index e199046..9088bf8 100644 --- a/edk2-build.rhel-9 +++ b/edk2-build.rhel-9 @@ -31,12 +31,17 @@ DEBUG_PRINT_ERROR_LEVEL = 0x8040004F [opts.armvirt.silent] DEBUG_PRINT_ERROR_LEVEL = 0x80000000 + [pcds.nx.strict] PcdDxeNxMemoryProtectionPolicy = 0xC000000000007FD5 +PcdUninstallMemAttrProtocol = FALSE -[pcds.nx.broken.grub] +[pcds.nx.broken.shim.grub] # grub.efi uses EfiLoaderData for code PcdDxeNxMemoryProtectionPolicy = 0xC000000000007FD1 +# shim.efi has broken MemAttr code +PcdUninstallMemAttrProtocol = TRUE + ##################################################################### # stateful ovmf builds (with vars in flash) @@ -100,7 +105,7 @@ conf = ArmVirtPkg/ArmVirtQemu.dsc arch = AARCH64 opts = ovmf.common armvirt.verbose -pcds = nx.broken.grub +pcds = nx.broken.shim.grub plat = ArmVirtQemu-AARCH64 dest = RHEL-9/aarch64 cpy1 = FV/QEMU_EFI.fd @@ -116,7 +121,7 @@ conf = ArmVirtPkg/ArmVirtQemu.dsc arch = AARCH64 opts = ovmf.common armvirt.silent -pcds = nx.broken.grub +pcds = nx.broken.shim.grub plat = ArmVirtQemu-AARCH64 dest = RHEL-9/aarch64 cpy1 = FV/QEMU_EFI.fd QEMU_EFI.silent.fd