pc-bios: add missing riscv64 descriptor
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 12 Dec 2024 09:00:59 +0000 (10:00 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 16 Dec 2024 06:31:28 +0000 (07:31 +0100)
Without descriptor libvirt cannot discover the EDK II binaries via
the qemu:///system connection.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Message-ID: <20241212090059.94167-1-heinrich.schuchardt@canonical.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
pc-bios/descriptors/60-edk2-riscv64.json [new file with mode: 0644]
pc-bios/descriptors/meson.build

diff --git a/pc-bios/descriptors/60-edk2-riscv64.json b/pc-bios/descriptors/60-edk2-riscv64.json
new file mode 100644 (file)
index 0000000..14811ca
--- /dev/null
@@ -0,0 +1,31 @@
+{
+    "description": "UEFI firmware for riscv64",
+    "interface-types": [
+        "uefi"
+    ],
+    "mapping": {
+        "device": "flash",
+        "executable": {
+            "filename": "@DATADIR@/edk2-riscv-code.fd",
+            "format": "raw"
+        },
+        "nvram-template": {
+            "filename": "@DATADIR@/edk2-riscv-vars.fd",
+            "format": "raw"
+        }
+    },
+    "targets": [
+        {
+            "architecture": "riscv64",
+            "machines": [
+                "virt*"
+            ]
+        }
+    ],
+    "features": [
+
+    ],
+    "tags": [
+
+    ]
+}
index afb5a959ccf45bcce3572879418848de539e1ec4..cdd0be01a356fdcb45bcb123b783993dfa1af0a0 100644 (file)
@@ -6,7 +6,8 @@ if unpack_edk2_blobs and get_option('install_blobs')
     '60-edk2-arm.json',
     '60-edk2-i386.json',
     '60-edk2-x86_64.json',
-    '60-edk2-loongarch64.json'
+    '60-edk2-loongarch64.json',
+    '60-edk2-riscv64.json'
   ]
     configure_file(input: files(f),
                    output: f,