phosphor-host-ipmid: Add option for configuring hybrid sensors
Implements PACKAGECONFIG option to enable or disable hybrid sensors.
This makes it possible to mix static and dynamic sensors.
Note: as for now, statically defined SDR ids would be discarded if
hybrid mode is enabled.
Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
Change-Id: I9a22fbcf2a3c90742d537b71511618f11c8a54cf
diff --git a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host_git.bb b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host_git.bb
index 03d4e4f..bfc04f6 100644
--- a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host_git.bb
+++ b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-host_git.bb
@@ -23,6 +23,7 @@
PACKAGECONFIG ??= ""
PACKAGECONFIG[dynamic-sensors] = "--enable-dynamic-sensors,--disable-dynamic-sensors"
+PACKAGECONFIG[hybrid-sensors] = "--enable-hybrid-sensors,--disable-hybrid-sensors"
DEPENDS += "autoconf-archive-native"
DEPENDS += "nlohmann-json"