forked from openbmc/phosphor-ecc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
47 lines (42 loc) · 1.32 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
project(
'phosphor-ecc',
'cpp',
version: '1.0',
default_options: [
'cpp_std=c++20',
],
meson_version: '>=0.57.0',
)
executable(
'ecc_main',
[
'ecc_main.cpp',
'ecc_manager.cpp',
],
dependencies: [
dependency('sdbusplus'),
dependency('sdeventplus'),
dependency('phosphor-dbus-interfaces'),
dependency('phosphor-logging'),
],
install: true,
install_dir: get_option('bindir')
)
install_data(sources : 'maxlog.conf', install_dir : '/etc/ecc')
conf_data = configuration_data()
conf_data.set('BUSNAME', '"xyz.openbmc_project.memory.ECC"')
conf_data.set('OBJROOT', '"/xyz/openbmc_project/metrics/memory/"')
conf_data.set('OBJPATH', '"/xyz/openbmc_project/metrics/memory/BmcECC"')
conf_data.set('sysfsRootPath', '"/sys/devices/system/edac/mc/mc0/"')
conf_data.set('sysfsEDACReportPath', '"/sys/module/edac_core/parameters/edac_report"')
configure_file(output : 'config.h',
configuration : conf_data)
systemd = dependency('systemd')
conf_data = configuration_data()
conf_data.set('bindir', get_option('prefix') / get_option('bindir'))
configure_file(
input: 'phosphor-ecc.service.in',
output: 'phosphor-ecc.service',
configuration: conf_data,
install: true,
install_dir: systemd.get_pkgconfig_variable('systemdsystemunitdir'))