endif
endif
+dmi_arches = ['x86', 'x86_64', 'aarch64', 'arm', 'ia64', 'loongarch64', 'mips']
+conf.set10('HAVE_DMI', host_machine.cpu_family() in dmi_arches)
+
# We support one or the other. If gcrypt is available, we assume it's there to
# be used, and use it in preference.
opt = get_option('cryptolib')
['xdg-autostart'],
# optional features
+ ['dmi'],
['idn'],
['polkit'],
['nscd'],
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],
['mtd_probe/mtd_probe.c',
'mtd_probe/probe_smartmedia.c']]
-dmi_arches = ['x86', 'x86_64', 'aarch64', 'arm', 'ia64', 'loongarch64', 'mips']
-if dmi_arches.contains(host_machine.cpu_family())
+if conf.get('HAVE_DMI') == 1
udev_progs += [['dmi_memory_id/dmi_memory_id.c']]
endif
############################################################
-if want_tests != 'false' and dmi_arches.contains(host_machine.cpu_family())
+if want_tests != 'false' and conf.get('HAVE_DMI') == 1
udev_dmi_memory_id_test = find_program('udev-dmi-memory-id-test.sh')
if git.found() and fs.is_dir(project_source_root / '.git')