]> git.proxmox.com Git - mirror_qemu.git/commitdiff
module: Use bundle mechanism
authorAkihiko Odaki <akihiko.odaki@gmail.com>
Fri, 24 Jun 2022 14:50:39 +0000 (23:50 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Jul 2022 14:58:57 +0000 (16:58 +0200)
Before this change, the directory of the executable was being added to
resolve modules in the build tree. However, get_relocated_path() can now
resolve them with the new bundle mechanism.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20220624145039.49929-5-akihiko.odaki@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/module.c

index 6bb4ad915a1c86f1601a4913a29c328dd7c14788..8ddb0e18f517809282ffb45a0a142bab8c83c458 100644 (file)
@@ -274,7 +274,6 @@ bool module_load_one(const char *prefix, const char *lib_name, bool mayfail)
         dirs[n_dirs++] = g_strdup_printf("%s", search_dir);
     }
     dirs[n_dirs++] = get_relocated_path(CONFIG_QEMU_MODDIR);
-    dirs[n_dirs++] = g_strdup(qemu_get_exec_dir());
 
 #ifdef CONFIG_MODULE_UPGRADES
     version_dir = g_strcanon(g_strdup(QEMU_PKGVERSION),