Skip to contentSkip to conversation

meson: reenable filemonitor-inotify compilation

PATCH Applied Volker Rümelin 2 participants 2 messages Jan 7, 2022 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: reenable filemonitor-inotify compilation

Reenable util/filemonitor-inotify compilation. Compilation was disabled when commit a620fbe9ac ("configure: convert compiler tests to meson, part 5") moved CONFIG_INOTIFY1 from config-host.mak to config-host.h.

This fixes the usb-mtp device and reenables test-util-filemonitor.

Fixes a620fbe9ac ("configure: convert compiler tests to meson, part 5")

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/800

---
 tests/unit/meson.build | 2 +-
 util/meson.build       | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)
tests/unit/meson.build +1 -1
index 90acf5b0da..64a5e7bfde 100644
@@ -129,7 +129,7 @@ if have_system
     'test-vmstate': [migration, io],
     'test-yank': ['socket-helpers.c', qom, io, chardev]
   }
-  if 'CONFIG_INOTIFY1' in config_host
+  if config_host_data.get('CONFIG_INOTIFY1')
     tests += {'test-util-filemonitor': []}
   endif
 
util/meson.build +5 -2
index 05b593055a..71543e1a85 100644
@@ -83,7 +83,10 @@ if have_block
   util_ss.add(files('readline.c'))
   util_ss.add(files('throttle.c'))
   util_ss.add(files('timed-average.c'))
-  util_ss.add(when: 'CONFIG_INOTIFY1', if_true: files('filemonitor-inotify.c'),
-                                        if_false: files('filemonitor-stub.c'))
+  if config_host_data.get('CONFIG_INOTIFY1')
+    util_ss.add(files('filemonitor-inotify.c'))
+  else
+    util_ss.add(files('filemonitor-stub.c'))
+  endif
   util_ss.add(when: 'CONFIG_LINUX', if_true: files('vfio-helpers.c'))
 endif
Signature · 1 line
2.31.1
#1 lore raw
Quoted 35 lines · Volker Rümelin

Reenable util/filemonitor-inotify compilation. Compilation was disabled when commit a620fbe9ac ("configure: convert compiler tests to meson, part 5") moved CONFIG_INOTIFY1 from config-host.mak to config-host.h.

This fixes the usb-mtp device and reenables test-util-filemonitor.

Fixes a620fbe9ac ("configure: convert compiler tests to meson, part 5")

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/800

---
  tests/unit/meson.build | 2 +-
  util/meson.build       | 7 +++++--
  2 files changed, 6 insertions(+), 3 deletions(-)
tests/unit/meson.build +1 -1
index 90acf5b0da..64a5e7bfde 100644
@@ -129,7 +129,7 @@ if have_system
      'test-vmstate': [migration, io],
      'test-yank': ['socket-helpers.c', qom, io, chardev]
    }
-  if 'CONFIG_INOTIFY1' in config_host
+  if config_host_data.get('CONFIG_INOTIFY1')
      tests += {'test-util-filemonitor': []}
    endif
 
util/meson.build +0 -0
index 05b593055a..71543e1a85 100644
@@ -83,7 +83,10 @@ if have_block
    util_ss.add(files('readline.c'))
    util_ss.add(files('throttle.c'))

util/meson.build if have_block · line 92

Quoted 10 lines
util/meson.build +5 -2
    util_ss.add(files('timed-average.c'))
-  util_ss.add(when: 'CONFIG_INOTIFY1', if_true: files('filemonitor-inotify.c'),
-                                        if_false: files('filemonitor-stub.c'))
+  if config_host_data.get('CONFIG_INOTIFY1')
+    util_ss.add(files('filemonitor-inotify.c'))
+  else
+    util_ss.add(files('filemonitor-stub.c'))
+  endif
    util_ss.add(when: 'CONFIG_LINUX', if_true: files('vfio-helpers.c'))
  endif

Queued, thanks.

Paolo