diff options
author | Sergey Solomin <sergey.solomin@us.ibm.com> | 2016-11-28 15:03:24 -0600 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-12-16 21:11:39 +0000 |
commit | aac4adf831eebc74d97076e94125ebf5b6d5da48 (patch) | |
tree | 0b3ed6b9682a74a086e1a52b074854781611e3fd /meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/p9-vcs-workaround.bb | |
parent | 370c28d56f3421d54d74cf23f89a184f3408b1ac (diff) | |
download | talos-openbmc-aac4adf831eebc74d97076e94125ebf5b6d5da48.tar.gz talos-openbmc-aac4adf831eebc74d97076e94125ebf5b6d5da48.zip |
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>
Diffstat (limited to 'meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/p9-vcs-workaround.bb')
-rw-r--r-- | meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/p9-vcs-workaround.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/p9-vcs-workaround.bb b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/p9-vcs-workaround.bb new file mode 100644 index 000000000..530085bbb --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/p9-vcs-workaround.bb @@ -0,0 +1,29 @@ +SUMMARY = "POWER9 VCS workaround" +DESCRIPTION = "Apply fixes over FSI to POWER9 CPUs prior to host power on" +PR = "r1" + +inherit obmc-phosphor-systemd +inherit obmc-phosphor-license + +FILESEXTRAPATHS_prepend := "${THISDIR}/op-pdbg-host-control:" + +RDEPENDS_${PN} += "pdbg \ + virtual-p9-vcs-workaround" + +S = "${WORKDIR}" +SRC_URI += "file://vcs_workaround.sh" + +do_install() { + install -d ${D}${bindir} + install -m 0755 ${WORKDIR}/vcs_workaround.sh \ + ${D}${bindir}/vcs_workaround.sh +} + +TMPL = "vcs_workaround@.service" +INSTFMT = "vcs_workaround@{0}.service" +TGTFMT = "obmc-chassis-start@{0}.target" +FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}" + +SYSTEMD_SERVICE_${PN} += "${TMPL}" +SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" +SYSTEMD_SUBSTITUTIONS += "MACHINE:${MACHINE}:${TMPL}" |