openpower-dumps: eliminate special generated config file
Meson calls for 'clang-tidy' changed behavior such that it will call
for all "c-like" files in a repository rather than just the ones pulled
in as dependencies. When openpower extensions are disabled, this means
that we fail clang-tidy because required header files do not exist.
The generated header file has a few constants that are not openpower
specific. Move them to the top-level config.h.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I2ee5c9246b9c47b564130c22ff8e02fee7f752b1
diff --git a/meson.build b/meson.build
index 46df4fb..7071a51 100644
--- a/meson.build
+++ b/meson.build
@@ -164,6 +164,28 @@
description: 'Turn on rotate config for bmc dump',
)
+conf_data.set_quoted(
+ 'SYSTEM_DUMP_OBJPATH',
+ get_option('SYSTEM_DUMP_OBJPATH'),
+ description: 'The system dump manager D-Bus path',
+)
+conf_data.set_quoted(
+ 'SYSTEM_DUMP_OBJ_ENTRY',
+ get_option('SYSTEM_DUMP_OBJ_ENTRY'),
+ description: 'The system dump entry D-Bus object path',
+)
+
+conf_data.set_quoted(
+ 'RESOURCE_DUMP_OBJPATH',
+ get_option('RESOURCE_DUMP_OBJPATH'),
+ description: 'The resource dump manager D-Bus path',
+)
+conf_data.set_quoted(
+ 'RESOURCE_DUMP_OBJ_ENTRY',
+ get_option('RESOURCE_DUMP_OBJ_ENTRY'),
+ description: 'The resource dump entry D-Bus object path',
+)
+
if cpp.has_header('poll.h')
add_project_arguments('-DPLDM_HAS_POLL=1', language: 'cpp')
endif