[PATCH v5 0/4] cutils: Introduce bundle mechanism

Akihiko Odaki posted 4 patches 1 year, 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220615130845.32674-1-akihiko.odaki@gmail.com
Maintainers: "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <f4bug@amsat.org>, Thomas Huth <thuth@redhat.com>, Wainer dos Santos Moschetta <wainersm@redhat.com>, Beraldo Leal <bleal@redhat.com>, Jason Wang <jasowang@redhat.com>, Alexander Bulekov <alxndr@bu.edu>, Paolo Bonzini <pbonzini@redhat.com>, Bandan Das <bsd@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>, Darren Kenny <darren.kenny@oracle.com>, Qiuhao Li <Qiuhao.Li@outlook.com>, Laurent Vivier <lvivier@redhat.com>, Ed Maste <emaste@freebsd.org>, Li-Wen Hsu <lwhsu@freebsd.org>, Warner Losh <imp@bsdimp.com>, Kyle Evans <kevans@freebsd.org>, Peter Maydell <peter.maydell@linaro.org>, Akihiko Odaki <akihiko.odaki@gmail.com>, Gerd Hoffmann <kraxel@redhat.com>
There is a newer version of this series
.travis.yml                 |  2 +-
include/net/net.h           |  2 +-
include/qemu/cutils.h       | 19 +++++++++++++++++++
meson.build                 | 20 +++++++++++++++++---
net/tap.c                   |  6 +++++-
pc-bios/keymaps/meson.build |  2 ++
pc-bios/meson.build         | 19 +++++++++----------
qemu-options.hx             |  4 ++--
scripts/oss-fuzz/build.sh   |  2 +-
softmmu/datadir.c           | 35 ++++++++++++-----------------------
tests/qtest/fuzz/fuzz.c     | 15 ---------------
tests/vm/fedora             |  2 +-
tests/vm/freebsd            |  2 +-
tests/vm/netbsd             |  2 +-
tests/vm/openbsd            |  2 +-
ui/cocoa.m                  | 29 ++++++++++++++++-------------
ui/gtk.c                    |  6 +++++-
ui/icons/meson.build        | 32 ++++++++++++++++++++++++--------
ui/sdl2.c                   | 18 +++++++++++-------
util/cutils.c               | 33 +++++++++++++++++++++++++++++++++
20 files changed, 162 insertions(+), 90 deletions(-)
[PATCH v5 0/4] cutils: Introduce bundle mechanism
Posted by Akihiko Odaki 1 year, 10 months ago
Developers often run QEMU without installing. The bundle mechanism
allows to look up files which should be present in installation even in
such a situation.

It is a general mechanism and can find any files located relative
to the installation tree. The build tree must have a new directory,
qemu-bundle, to represent what files the installation tree would
have for reference by the executables.

v5:
* Prefer qemu-bundle if it exists. (Daniel P. Berrangé)
* Check install_blobs option before installing BIOSes (Paolo Bonzini)
* Add common code to set up qemu-bundle to the top level meson.build
  (Paolo Bonzini)

v4:
* Add Daniel P. Berrangé to CC. Hopefully this helps merging his patch:
  https://mail.gnu.org/archive/html/qemu-devel/2022-06/msg02276.html
* Rebased to the latest QEMU.

v3:
* Note that the bundle mechanism is for any files located relative to the
  installation tree including but not limited to datadir. (Peter Maydell)
* Fix "bridge" typo (Philippe Mathieu-Daudé)

v2: Rebased to the latest QEMU.

Akihiko Odaki (4):
  cutils: Introduce bundle mechanism
  datadir: Use bundle mechanism
  ui/icons: Use bundle mechanism
  net: Use bundle mechanism

 .travis.yml                 |  2 +-
 include/net/net.h           |  2 +-
 include/qemu/cutils.h       | 19 +++++++++++++++++++
 meson.build                 | 20 +++++++++++++++++---
 net/tap.c                   |  6 +++++-
 pc-bios/keymaps/meson.build |  2 ++
 pc-bios/meson.build         | 19 +++++++++----------
 qemu-options.hx             |  4 ++--
 scripts/oss-fuzz/build.sh   |  2 +-
 softmmu/datadir.c           | 35 ++++++++++++-----------------------
 tests/qtest/fuzz/fuzz.c     | 15 ---------------
 tests/vm/fedora             |  2 +-
 tests/vm/freebsd            |  2 +-
 tests/vm/netbsd             |  2 +-
 tests/vm/openbsd            |  2 +-
 ui/cocoa.m                  | 29 ++++++++++++++++-------------
 ui/gtk.c                    |  6 +++++-
 ui/icons/meson.build        | 32 ++++++++++++++++++++++++--------
 ui/sdl2.c                   | 18 +++++++++++-------
 util/cutils.c               | 33 +++++++++++++++++++++++++++++++++
 20 files changed, 162 insertions(+), 90 deletions(-)

-- 
2.32.1 (Apple Git-133)