|
Paolo Bonzini |
348500 |
From 23df46ebbe7b09451d3a05034acd4d3a25e7177b Mon Sep 17 00:00:00 2001
|
|
Paolo Bonzini |
348500 |
From: Laszlo Ersek <lersek@redhat.com>
|
|
Paolo Bonzini |
348500 |
Date: Tue, 4 Nov 2014 23:02:53 +0100
|
|
Paolo Bonzini |
348500 |
Subject: OvmfPkg: allow exclusion of the shell from the firmware image
|
|
Gerd Hoffmann |
b0c3af |
|
|
Paolo Bonzini |
348500 |
When '-D EXCLUDE_SHELL_FROM_FD' is passed to 'build', exclude the shell
|
|
Paolo Bonzini |
348500 |
binary from the firmware image.
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
Peter Jones advised us that firmware vendors for physical systems disable
|
|
Paolo Bonzini |
348500 |
the memory-mapped, firmware image-contained UEFI shell in
|
|
Paolo Bonzini |
348500 |
SecureBoot-enabled builds. The reason being that the memory-mapped shell
|
|
Paolo Bonzini |
348500 |
can always load, it may have direct access to various hardware in the
|
|
Paolo Bonzini |
348500 |
system, and it can run UEFI shell scripts (which cannot be signed at all).
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
Intended use of the new build option:
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
- In-tree builds: don't pass '-D EXCLUDE_SHELL_FROM_FD'. The resultant
|
|
Paolo Bonzini |
348500 |
firmware image will contain a shell binary, independently of SecureBoot
|
|
Paolo Bonzini |
348500 |
enablement, which is flexible for interactive development. (Ie. no
|
|
Paolo Bonzini |
348500 |
change for in-tree builds.)
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
- RPM builds: pass both '-D SECURE_BOOT_ENABLE' and
|
|
Paolo Bonzini |
348500 |
'-D EXCLUDE_SHELL_FROM_FD'. The resultant RPM will provide:
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
- OVMF_CODE.fd: SecureBoot-enabled firmware, without builtin UEFI shell,
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
- OVMF_VARS.fd: variable store template matching OVMF_CODE.fd,
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
- UefiShell.iso: a bootable ISO image with the shell on it as default
|
|
Paolo Bonzini |
348500 |
boot loader. The shell binary will load when SecureBoot is turned off,
|
|
Paolo Bonzini |
348500 |
and won't load when SecureBoot is turned on (because it is not
|
|
Paolo Bonzini |
348500 |
signed).
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
UefiShell.iso is the reason we're not excluding the shell from the DSC
|
|
Paolo Bonzini |
348500 |
files as well, only the FDF files -- when '-D EXCLUDE_SHELL_FROM_FD'
|
|
Paolo Bonzini |
348500 |
is specified, the shell binary needs to be built the same, only it
|
|
Paolo Bonzini |
348500 |
will be included in UefiShell.iso.
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
Notes about the 20160608b-988715a -> 20170228-c325e41585e3 rebase:
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
- no changes
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
Notes about the 20170228-c325e41585e3 -> 20171011-92d07e48907f rebase:
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
- no changes
|
|
Paolo Bonzini |
348500 |
|
|
Paolo Bonzini |
348500 |
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
|
|
Paolo Bonzini |
348500 |
(cherry picked from commit 9c391def70366cabae08e6008814299c3372fafd)
|
|
Paolo Bonzini |
348500 |
(cherry picked from commit d9dd9ee42937b2611fe37183cc9ec7f62d946933)
|
|
Gerd Hoffmann |
b0c3af |
---
|
|
Gerd Hoffmann |
b0c3af |
OvmfPkg/OvmfPkgIa32.fdf | 2 ++
|
|
Gerd Hoffmann |
b0c3af |
OvmfPkg/OvmfPkgIa32X64.fdf | 2 ++
|
|
Gerd Hoffmann |
b0c3af |
OvmfPkg/OvmfPkgX64.fdf | 2 ++
|
|
Gerd Hoffmann |
b0c3af |
3 files changed, 6 insertions(+)
|
|
Gerd Hoffmann |
b0c3af |
|
|
Gerd Hoffmann |
b0c3af |
diff --git a/OvmfPkg/OvmfPkgIa32.fdf b/OvmfPkg/OvmfPkgIa32.fdf
|
|
Paolo Bonzini |
348500 |
index a967904..366d6bf 100644
|
|
Gerd Hoffmann |
b0c3af |
--- a/OvmfPkg/OvmfPkgIa32.fdf
|
|
Gerd Hoffmann |
b0c3af |
+++ b/OvmfPkg/OvmfPkgIa32.fdf
|
|
Paolo Bonzini |
348500 |
@@ -284,11 +284,13 @@ INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResour
|
|
Gerd Hoffmann |
b0c3af |
INF FatPkg/EnhancedFatDxe/Fat.inf
|
|
Paolo Bonzini |
348500 |
INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
|
|
Gerd Hoffmann |
b0c3af |
|
|
Gerd Hoffmann |
b0c3af |
+!ifndef $(EXCLUDE_SHELL_FROM_FD)
|
|
Gerd Hoffmann |
b0c3af |
!ifndef $(USE_OLD_SHELL)
|
|
Gerd Hoffmann |
b0c3af |
INF ShellPkg/Application/Shell/Shell.inf
|
|
Gerd Hoffmann |
b0c3af |
!else
|
|
Gerd Hoffmann |
b0c3af |
INF RuleOverride = BINARY EdkShellBinPkg/FullShell/FullShell.inf
|
|
Gerd Hoffmann |
b0c3af |
!endif
|
|
Gerd Hoffmann |
b0c3af |
+!endif
|
|
Gerd Hoffmann |
b0c3af |
|
|
Paolo Bonzini |
348500 |
!if ($(SECURE_BOOT_ENABLE) == TRUE) || ($(TLS_ENABLE) == TRUE)
|
|
Paolo Bonzini |
348500 |
INF MdeModulePkg/Logo/LogoOpenSSLDxe.inf
|
|
Gerd Hoffmann |
b0c3af |
diff --git a/OvmfPkg/OvmfPkgIa32X64.fdf b/OvmfPkg/OvmfPkgIa32X64.fdf
|
|
Paolo Bonzini |
348500 |
index f5a1d86..e4ca33e 100644
|
|
Gerd Hoffmann |
b0c3af |
--- a/OvmfPkg/OvmfPkgIa32X64.fdf
|
|
Gerd Hoffmann |
b0c3af |
+++ b/OvmfPkg/OvmfPkgIa32X64.fdf
|
|
Paolo Bonzini |
348500 |
@@ -285,11 +285,13 @@ INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResour
|
|
Gerd Hoffmann |
b0c3af |
INF FatPkg/EnhancedFatDxe/Fat.inf
|
|
Paolo Bonzini |
348500 |
INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
|
|
Gerd Hoffmann |
b0c3af |
|
|
Gerd Hoffmann |
b0c3af |
+!ifndef $(EXCLUDE_SHELL_FROM_FD)
|
|
Gerd Hoffmann |
b0c3af |
!ifndef $(USE_OLD_SHELL)
|
|
Gerd Hoffmann |
b0c3af |
INF ShellPkg/Application/Shell/Shell.inf
|
|
Gerd Hoffmann |
b0c3af |
!else
|
|
Gerd Hoffmann |
b0c3af |
INF RuleOverride = BINARY USE = X64 EdkShellBinPkg/FullShell/FullShell.inf
|
|
Gerd Hoffmann |
b0c3af |
!endif
|
|
Gerd Hoffmann |
b0c3af |
+!endif
|
|
Gerd Hoffmann |
b0c3af |
|
|
Paolo Bonzini |
348500 |
!if ($(SECURE_BOOT_ENABLE) == TRUE) || ($(TLS_ENABLE) == TRUE)
|
|
Paolo Bonzini |
348500 |
INF MdeModulePkg/Logo/LogoOpenSSLDxe.inf
|
|
Gerd Hoffmann |
b0c3af |
diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf
|
|
Paolo Bonzini |
348500 |
index 0bba313..3196b26 100644
|
|
Gerd Hoffmann |
b0c3af |
--- a/OvmfPkg/OvmfPkgX64.fdf
|
|
Gerd Hoffmann |
b0c3af |
+++ b/OvmfPkg/OvmfPkgX64.fdf
|
|
Paolo Bonzini |
348500 |
@@ -285,11 +285,13 @@ INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResour
|
|
Gerd Hoffmann |
b0c3af |
INF FatPkg/EnhancedFatDxe/Fat.inf
|
|
Paolo Bonzini |
348500 |
INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
|
|
Gerd Hoffmann |
b0c3af |
|
|
Gerd Hoffmann |
b0c3af |
+!ifndef $(EXCLUDE_SHELL_FROM_FD)
|
|
Gerd Hoffmann |
b0c3af |
!ifndef $(USE_OLD_SHELL)
|
|
Gerd Hoffmann |
b0c3af |
INF ShellPkg/Application/Shell/Shell.inf
|
|
Gerd Hoffmann |
b0c3af |
!else
|
|
Gerd Hoffmann |
b0c3af |
INF RuleOverride = BINARY EdkShellBinPkg/FullShell/FullShell.inf
|
|
Gerd Hoffmann |
b0c3af |
!endif
|
|
Gerd Hoffmann |
b0c3af |
+!endif
|
|
Gerd Hoffmann |
b0c3af |
|
|
Paolo Bonzini |
348500 |
!if ($(SECURE_BOOT_ENABLE) == TRUE) || ($(TLS_ENABLE) == TRUE)
|
|
Paolo Bonzini |
348500 |
INF MdeModulePkg/Logo/LogoOpenSSLDxe.inf
|
|
Paolo Bonzini |
348500 |
--
|
|
Paolo Bonzini |
348500 |
1.8.3.1
|
|
Paolo Bonzini |
348500 |
|