meson: introduce HAVE_DMI flag

The condition is used at several places. Let's introduce a simple flag
for that.
This commit is contained in:
Yu Watanabe
2023-07-30 06:32:53 +09:00
parent ff2dedcffd
commit 12b4cffdae
4 changed files with 7 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ rules = [
conf.get('HAVE_KMOD') == 1],
[files('70-memory.rules'),
dmi_arches.contains(host_machine.cpu_family())],
conf.get('HAVE_DMI') == 1],
[files('70-power-switch.rules'),
enable_logind],