meta-yadro: vegman: add MACHINE_FEATURES
Add main machine features for VEGMAN: power manager, entity manager,
ipmi and so on.
Signed-off-by: Andrei Kartashev <a.kartashev@yadro.com>
Change-Id: I8a8fb30b03329eeaadc56ec7031d2704861f85ee
diff --git a/meta-yadro/meta-vegman/conf/machine/include/vegman.inc b/meta-yadro/meta-vegman/conf/machine/include/vegman.inc
index 37d125e..eff659c 100644
--- a/meta-yadro/meta-vegman/conf/machine/include/vegman.inc
+++ b/meta-yadro/meta-vegman/conf/machine/include/vegman.inc
@@ -13,6 +13,25 @@
IMAGE_FEATURES += "allow-root-login"
+MACHINE_FEATURES += " \
+ obmc-chassis-state-mgmt \
+ obmc-host-ipmi \
+ obmc-host-state-mgmt \
+ obmc-phosphor-chassis-mgmt \
+ obmc-phosphor-fan-mgmt \
+ obmc-phosphor-flash-mgmt \
+"
+
+VIRTUAL-RUNTIME_obmc-host-state-manager ?= "x86-power-control"
+VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "x86-power-control"
+VIRTUAL-RUNTIME_obmc-discover-system-state ?= "x86-power-control"
+
+PREFERRED_PROVIDER_virtual/obmc-chassis-mgmt = "packagegroup-yadro-apps"
+PREFERRED_PROVIDER_virtual/obmc-fan-mgmt = "packagegroup-yadro-apps"
+PREFERRED_PROVIDER_virtual/obmc-flash-mgmt = "packagegroup-yadro-apps"
+PREFERRED_PROVIDER_virtual/obmc-system-mgmt = "packagegroup-yadro-apps"
+PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw ?= "phosphor-ipmi-kcs"
+
PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native = "vegman-led-manager-config-native"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-aspeed-sdk"