summary refs log tree commit diff stats
path: root/system/datadir.c
diff options
context:
space:
mode:
authorBALATON Zoltan <balaton@eik.bme.hu>2025-04-23 12:02:21 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-04-25 17:09:58 +0200
commit12963e79ca461db7b098c8eb00bb21cf88a250a4 (patch)
treef344bffac4ad7feee51a9331bc608baf611abfa5 /system/datadir.c
parentfcb1ad456c58ba2304127b0131ac0b48895b2a3b (diff)
downloadfocaccia-qemu-12963e79ca461db7b098c8eb00bb21cf88a250a4.tar.gz
focaccia-qemu-12963e79ca461db7b098c8eb00bb21cf88a250a4.zip
pc-bios: Move device tree files in their own subdir
We have several device tree files already and may have more in the
future so add a new dtb subdirectory and move device tree files there
so they are not mixed with ROM binaries.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <57f179bd3904c1f2ca062ca4d4ff9592bb4f4daa.1745402140.git.balaton@eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'system/datadir.c')
-rw-r--r--system/datadir.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/datadir.c b/system/datadir.c
index e450b84ce9..f96f8fc264 100644
--- a/system/datadir.c
+++ b/system/datadir.c
@@ -44,9 +44,11 @@ char *qemu_find_file(QemuFileType type, const char *name)
 
     switch (type) {
     case QEMU_FILE_TYPE_BIOS:
-    case QEMU_FILE_TYPE_DTB:
         subdir = "";
         break;
+    case QEMU_FILE_TYPE_DTB:
+        subdir = "dtb/";
+        break;
     case QEMU_FILE_TYPE_KEYMAP:
         subdir = "keymaps/";
         break;