Go to file
Kashyap Chamarthy 674b3c8a27 Ship the JSON firmware "descriptor files"
From version 4.1 (due in August 2019) onwards, QEMU ships the so-called
firmware "descriptor files".  These are small JSON files that describe
details about UEFI firmware binaries — such as the fimware binary path,
its architecture, supported machine type, NVRAM template and so forth.

You can see examples of these files from the QEMU upstream Git:
https://git.qemu.org/?p=qemu.git;a=tree;f=pc-bios/descriptors

    $> tree descriptors/
    descriptors/
    ├── 50-edk2-i386-secure.json
    ├── 50-edk2-x86_64-secure.json
    ├── 60-edk2-aarch64.json
    ├── 60-edk2-arm.json
    ├── 60-edk2-i386.json
    └── 60-edk2-x86_64.json

QEMU 4.1 itself will ship the above files.  However, Fedora needs to
ship these file as part of its EDK2 package.

Why?
----

(1) Quoting (with minor formatting edits) Laszlo Ersek:

      Distributions providing their own EDK2 packages would not include
      the descriptors from upstream QEMU, even if they otherwise package
      QEMU.  That's beause the descriptor files in QEMU match the
      firmware bundled with QEMU -- but the firmware images in the
      distros' own EDK2 packages are different.  So, if a distro
      provides an EDK2 package, then the same EDK2 package should offer
      matching descriptors.  QEMU offers descriptors (soon) because QEMU
      technically distributes edk2 firmware binaries (soon).  [Where
      "soon" == QEMU 4.1]

(2) And as Dan Berrangé reminded on IRC:

      In Fedora, we need to ship them [the "descriptor files"] as part
      of the EDK2 package, because Fedora throws away all the firmware
      files that QEMU bundles, because we're [Fedora] required to
      rebuild everything from pristine source.

                    - - -

In this patch:

(*) Use the firmware descriptor files provided by Laszlo (thanks!) in
    this comment here:
    https://bugzilla.redhat.com/show_bug.cgi?id=1728652#c2 ("RFE: Ship
    the JSON firmware "descriptor files" as part of EDK2").

    On the double-digit priority prefixes, refer to the rationale here:
    https://src.fedoraproject.org/rpms/edk2/pull-request/3#comment-27523

(*) Install the JSON files for the relevant architectures in
    `/usr/share/qemu/firmware`, as required by specification[+].  And
    make each EDK2 own this directory; multiple RPMs owning the same
    directory is no problem.

[+] https://git.qemu.org/?p=qemu.git;a=blob;f=docs/interop/firmware.json

Resolves: rhbz#1728652

Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
2019-07-12 13:40:09 -04:00
.gitignore Update to edkstable201905 2019-07-12 12:39:20 -04:00
0001-OvmfPkg-silence-EFI_D_VERBOSE-0x00400000-in-NvmExpre.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0002-OvmfPkg-silence-EFI_D_VERBOSE-0x00400000-in-the-DXE-.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0003-OvmfPkg-enable-DEBUG_VERBOSE.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0004-OvmfPkg-increase-max-debug-message-length-to-512.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0005-advertise-OpenSSL-on-TianoCore-splash-screen-boot-lo.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0006-OvmfPkg-QemuVideoDxe-enable-debug-messages-in-VbeShi.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0007-MdeModulePkg-TerminalDxe-add-other-text-resolutions.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0008-MdeModulePkg-TerminalDxe-set-xterm-resolution-on-mod.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0009-OvmfPkg-take-PcdResizeXterm-from-the-QEMU-command-li.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0010-ArmVirtPkg-QemuFwCfgLib-allow-UEFI_DRIVER-client-mod.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0011-ArmVirtPkg-take-PcdResizeXterm-from-the-QEMU-command.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0012-OvmfPkg-allow-exclusion-of-the-shell-from-the-firmwa.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0013-ArmPlatformPkg-introduce-fixed-PCD-for-early-hello-m.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0014-ArmPlatformPkg-PrePeiCore-write-early-hello-message-.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0015-ArmVirtPkg-set-early-hello-message-RH-only.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
0016-Tweak-the-tools_def-to-support-cross-compiling.patch Update to edkstable201905 2019-07-12 12:39:20 -04:00
40-edk2-ovmf-ia32-sb-enrolled.json Ship the JSON firmware "descriptor files" 2019-07-12 13:40:09 -04:00
40-edk2-ovmf-sb-enrolled.json Ship the JSON firmware "descriptor files" 2019-07-12 13:40:09 -04:00
50-edk2-ovmf-ia32-sb.json Ship the JSON firmware "descriptor files" 2019-07-12 13:40:09 -04:00
50-edk2-ovmf-sb.json Ship the JSON firmware "descriptor files" 2019-07-12 13:40:09 -04:00
60-edk2-ovmf-ia32.json Ship the JSON firmware "descriptor files" 2019-07-12 13:40:09 -04:00
60-edk2-ovmf.json Ship the JSON firmware "descriptor files" 2019-07-12 13:40:09 -04:00
70-edk2-aarch64-verbose.json Ship the JSON firmware "descriptor files" 2019-07-12 13:40:09 -04:00
70-edk2-arm-verbose.json Ship the JSON firmware "descriptor files" 2019-07-12 13:40:09 -04:00
build-iso.sh Fix GCC 8 compilation, replace obsolete tools as build-time dependencies 2018-03-08 13:42:34 +01:00
edk2.spec Ship the JSON firmware "descriptor files" 2019-07-12 13:40:09 -04:00
hobble-openssl Update to stable-201903 2019-03-15 15:50:22 -04:00
openssl-patch-to-tarball.sh update to upstream commit ee3198e672e2 2018-05-30 00:31:55 +02:00
ovmf-whitepaper-c770f8c.txt add missing files 2017-11-14 18:16:25 +01:00
sources Update to edkstable201905 2019-07-12 12:39:20 -04:00
update-tarball.sh update-tarball.sh: allow passing hardcoded date and hash 2017-11-14 17:51:06 +01:00