meson: Fix psusensor
The psu sensor's process name was incorrectly set to psutempsensor and
is inconsistent with the service unit.
Fix this and use `psu` as the configure option instead of `psu-temp`,
because it is really psusensor including temperature/current/voltage/fan
sensors.
Tested: Verify the build binary is named as `psusensor`.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: Iee6bcdbb948a58dd10cfe26ab268944f1f9a14e6
diff --git a/src/meson.build b/src/meson.build
index 32b6e85..ad53332 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -156,7 +156,7 @@
executable(
'nvmesensor',
'NVMeSensorMain.cpp',
- 'NVMeSensor.cpp',
+ 'NVMeSensor.cpp',
dependencies: [
i2c,
sdbusplus,
@@ -172,9 +172,9 @@
)
endif
-if get_option('psu-temp').enabled()
+if get_option('psu').enabled()
executable(
- 'psutempsensor',
+ 'psusensor',
'PSUEvent.cpp',
'PSUSensor.cpp',
'PSUSensorMain.cpp',