Add recipes for Witherspoon VCS workaround
Create vcs-workaround machine feature p9.inc
Add new recipe vcs-pre-post.bb
Add new recipe p9-vcs-workaround.bb
Add new recipe start_host.bb
Create preferred providers
Create host control machine/distro/image feature
Add dependencies
Partially resolves openbmc/openbmc#647
Change-Id: I285cafc81afda20977fdf360ad8ad34d15e38685
Signed-off-by: Sergey Solomin <sergey.solomin@us.ibm.com>
diff --git a/classes/obmc-phosphor-image.bbclass b/classes/obmc-phosphor-image.bbclass
index 813b20d..31f99cf 100644
--- a/classes/obmc-phosphor-image.bbclass
+++ b/classes/obmc-phosphor-image.bbclass
@@ -27,6 +27,7 @@
FEATURE_PACKAGES_obmc-system-mgmt ?= "${@df_enabled('obmc-phosphor-system-mgmt', 'virtual-obmc-system-mgmt', d)}"
FEATURE_PACKAGES_obmc-host-ipmi ?= "${@cf_enabled('obmc-host-ipmi', 'virtual-obmc-host-ipmi-hw', d)}"
FEATURE_PACKAGES_obmc-logging-mgmt ?= "${@cf_enabled('obmc-logging-mgmt', 'virtual-obmc-logging-mgmt', d)}"
+FEATURE_PACKAGES_obmc-host-ctl ?= "${@cf_enabled('obmc-host-ctl', 'virtual-obmc-host-ctl', d)}"
# Install entire Phosphor application stack by default
IMAGE_FEATURES += " \
@@ -40,6 +41,7 @@
obmc-system-mgmt \
obmc-host-ipmi \
obmc-logging-mgmt \
+ obmc-host-ctl \
ssh-server-dropbear \
"
diff --git a/common/recipes-phosphor/hosts/obmc-op-control-host.bb b/common/recipes-phosphor/hosts/obmc-op-control-host.bb
index dabc4a8..2b5e8b1 100644
--- a/common/recipes-phosphor/hosts/obmc-op-control-host.bb
+++ b/common/recipes-phosphor/hosts/obmc-op-control-host.bb
@@ -5,6 +5,9 @@
inherit skeleton-gdbus
inherit obmc-phosphor-dbus-service
+PROVIDES += "virtual/obmc-host-ctl"
+RPROVIDES_${PN} += "virtual-obmc-host-ctl"
+
SKELETON_DIR = "op-hostctl"
FMT = "org.openbmc.control.Host@{0}.service"
diff --git a/conf/distro/openbmc-phosphor.conf b/conf/distro/openbmc-phosphor.conf
index 22b6bc6..2355dca 100644
--- a/conf/distro/openbmc-phosphor.conf
+++ b/conf/distro/openbmc-phosphor.conf
@@ -31,6 +31,7 @@
obmc-host-ipmi \
obmc-mrw \
obmc-logging-mgmt \
+ obmc-host-ctl \
avahi \
${DISTRO_FEATURES_LIBC} \
"