Persistence the led group asserted value by default
Currently, only IBM's P10 machine will persist the Asserted attribute
value of ledGroup by default. But for other systems, most do not need
to perform persistence actions.
The intent behind this commit is to add a switch to control the
persistence function, and it is enabled by default in CI and disabled
by default in Yocto.
Tested: Regardless of whether `persistent-led-asserted` is enabled or
disabled, the ledmanager process works fine.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I75b59a12dde417a9ccadaf25b2af07fc33186a01
diff --git a/meson.build b/meson.build
index f1a65a8..d4ee899 100644
--- a/meson.build
+++ b/meson.build
@@ -22,6 +22,7 @@
conf_data.set('LED_USE_JSON', get_option('use-json').enabled())
conf_data.set('USE_LAMP_TEST', get_option('use-lamp-test').enabled())
conf_data.set('MONITOR_OPERATIONAL_STATUS', get_option('monitor-operational-status').enabled())
+conf_data.set('PERSISTENT_LED_ASSERTED', get_option('persistent-led-asserted').enabled())
sdbusplus_dep = dependency('sdbusplus')
sdeventplus_dep = dependency('sdeventplus')