thresholds: Add 2 new threshold interfaces
Add HardShutdown and SoftShutdown threshold interfaces. These could be
used when a hard shutdown or soft shutdown would be necessary based on a
sensor value and the existing warning and critical thresholds are
already being used for other actions on that sensor.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I81c620cd46503903e36261502cdeffa35cd7cbe5
diff --git a/gen/xyz/openbmc_project/Sensor/Threshold/meson.build b/gen/xyz/openbmc_project/Sensor/Threshold/meson.build
index 6538b48..ebc1c2e 100644
--- a/gen/xyz/openbmc_project/Sensor/Threshold/meson.build
+++ b/gen/xyz/openbmc_project/Sensor/Threshold/meson.build
@@ -27,6 +27,36 @@
build_by_default: true,
)
+subdir('HardShutdown')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold/HardShutdown__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold/HardShutdown.interface.yaml', ],
+ output: [ 'HardShutdown.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Threshold/HardShutdown',
+ ],
+ build_by_default: true,
+)
+
+subdir('SoftShutdown')
+generated_others += custom_target(
+ 'xyz/openbmc_project/Sensor/Threshold/SoftShutdown__markdown'.underscorify(),
+ input: [ meson.source_root() / 'xyz/openbmc_project/Sensor/Threshold/SoftShutdown.interface.yaml', ],
+ output: [ 'SoftShutdown.md' ],
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.source_root(),
+ 'xyz/openbmc_project/Sensor/Threshold/SoftShutdown',
+ ],
+ build_by_default: true,
+)
+
subdir('Warning')
generated_others += custom_target(
'xyz/openbmc_project/Sensor/Threshold/Warning__markdown'.underscorify(),