diff options
author | Andrew Geissler <geissonator@yahoo.com> | 2022-07-18 22:14:27 +0300 |
---|---|---|
committer | Andrew Geissler <andrew@geissonator.com> | 2022-07-20 22:59:28 +0300 |
commit | 319bf072974630fe21327814010f37970f4b2fc4 (patch) | |
tree | 6a19dc2a3899e9e17a4dc0b0ac1d0e1fb44a5fbc | |
parent | 15ea0473e94e7f5191178ae1032d753f758122c8 (diff) | |
download | openbmc-319bf072974630fe21327814010f37970f4b2fc4.tar.xz |
meta-ibm: install services only on supported systems
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: Id772552ca99651c47778ee2c04ba7f5ce187ec0b
-rw-r--r-- | meta-ibm/recipes-phosphor/chassis/avsbus-control.bb | 20 | ||||
-rw-r--r-- | meta-ibm/recipes-phosphor/chassis/vrm-control.bb | 13 | ||||
-rw-r--r-- | meta-ibm/recipes-phosphor/dbus/thermal-policy.bb | 12 |
3 files changed, 29 insertions, 16 deletions
diff --git a/meta-ibm/recipes-phosphor/chassis/avsbus-control.bb b/meta-ibm/recipes-phosphor/chassis/avsbus-control.bb index 1ae5699b71..6668cb6f0a 100644 --- a/meta-ibm/recipes-phosphor/chassis/avsbus-control.bb +++ b/meta-ibm/recipes-phosphor/chassis/avsbus-control.bb @@ -10,15 +10,20 @@ RDEPENDS:${PN} += "i2c-tools" S = "${WORKDIR}" -SRC_URI += "file://avsbus-enable.sh" +SRC_URI:append:witherspoon = " file://avsbus-enable.sh" SRC_URI:append:witherspoon = " file://avsbus-disable.sh" +SRC_URI:append:mihawk = " file://avsbus-enable.sh" +SRC_URI:append:mihawk = " file://avsbus-disable.sh" -do_install() { +do_install:witherspoon() { install -d ${D}${bindir} install -m 0755 ${S}/avsbus-enable.sh ${D}${bindir}/avsbus-enable.sh + install -m 0755 ${S}/avsbus-disable.sh ${D}${bindir}/avsbus-disable.sh } -do_install:append:witherspoon() { +do_install:mihawk() { + install -d ${D}${bindir} + install -m 0755 ${S}/avsbus-enable.sh ${D}${bindir}/avsbus-enable.sh install -m 0755 ${S}/avsbus-disable.sh ${D}${bindir}/avsbus-disable.sh } @@ -30,7 +35,12 @@ TGTFMT = "obmc-chassis-poweron@{0}.target" FMT_EN = "../${TMPL_EN}:${TGTFMT}.requires/${INSTFMT_EN}" FMT_DIS = "../${TMPL_DIS}:${TGTFMT}.requires/${INSTFMT_DIS}" -SYSTEMD_SERVICE:${PN} += "${TMPL_EN}" -SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT_EN', 'OBMC_CHASSIS_INSTANCES')}" +SYSTEMD_SERVICE:${PN}:append:witherspoon = " ${TMPL_EN}" SYSTEMD_SERVICE:${PN}:append:witherspoon = " ${TMPL_DIS}" SYSTEMD_LINK:${PN}:append:witherspoon = " ${@compose_list(d, 'FMT_DIS', 'OBMC_CHASSIS_INSTANCES')}" +SYSTEMD_LINK:${PN}:append:witherspoon = " ${@compose_list(d, 'FMT_EN', 'OBMC_CHASSIS_INSTANCES')}" + +SYSTEMD_SERVICE:${PN}:append:mihawk = " ${TMPL_EN}" +SYSTEMD_SERVICE:${PN}:append:mihawk = " ${TMPL_DIS}" +SYSTEMD_LINK:${PN}:append:mihawk = " ${@compose_list(d, 'FMT_DIS', 'OBMC_CHASSIS_INSTANCES')}" +SYSTEMD_LINK:${PN}:append:mihawk = " ${@compose_list(d, 'FMT_EN', 'OBMC_CHASSIS_INSTANCES')}" diff --git a/meta-ibm/recipes-phosphor/chassis/vrm-control.bb b/meta-ibm/recipes-phosphor/chassis/vrm-control.bb index cc297d27bc..7b3eaa5948 100644 --- a/meta-ibm/recipes-phosphor/chassis/vrm-control.bb +++ b/meta-ibm/recipes-phosphor/chassis/vrm-control.bb @@ -10,15 +10,12 @@ inherit obmc-phosphor-systemd RDEPENDS:${PN} += "i2c-tools bash" S = "${WORKDIR}" -SRC_URI = "file://ir35221-unbind-bind.sh" +SRC_URI:append:ibm-ac-server = " file://ir35221-unbind-bind.sh" SRC_URI:append:ibm-ac-server = " file://vrm-control.sh" -do_install() { +do_install:ibm-ac-server() { install -d ${D}${bindir} install -m 0755 ${WORKDIR}/ir35221-unbind-bind.sh ${D}${bindir}/ir35221-unbind-bind.sh -} - -do_install:append:ibm-ac-server() { install -m 0755 ${WORKDIR}/vrm-control.sh ${D}${bindir}/vrm-control.sh } @@ -35,8 +32,8 @@ TMPL_ON_IRUNBIND = "ir35221-on-unbind@.service" INSTFMT_ON_IRUNBIND = "ir35221-on-unbind@{0}.service" FMT_ON_IRUNBIND = "../${TMPL_ON_IRUNBIND}:${TGTFMT_ON}.requires/${INSTFMT_ON_IRUNBIND}" -SYSTEMD_SERVICE:${PN} += "${TMPL_ON_IRUNBIND} ${TMPL_ON_IRBIND}" +SYSTEMD_SERVICE:${PN}:append:ibm-ac-server = " ${TMPL_ON_IRUNBIND} ${TMPL_ON_IRBIND}" SYSTEMD_SERVICE:${PN}:append:ibm-ac-server = " ${TMPL}" SYSTEMD_LINK:${PN}:append:ibm-ac-server = " ${@compose_list(d, 'FMT_ON', 'OBMC_CHASSIS_INSTANCES')}" -SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT_ON_IRBIND', 'OBMC_CHASSIS_INSTANCES')}" -SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT_ON_IRUNBIND', 'OBMC_CHASSIS_INSTANCES')}" +SYSTEMD_LINK:${PN}:append:ibm-ac-server = " ${@compose_list(d, 'FMT_ON_IRBIND', 'OBMC_CHASSIS_INSTANCES')}" +SYSTEMD_LINK:${PN}:append:ibm-ac-server = " ${@compose_list(d, 'FMT_ON_IRUNBIND', 'OBMC_CHASSIS_INSTANCES')}" diff --git a/meta-ibm/recipes-phosphor/dbus/thermal-policy.bb b/meta-ibm/recipes-phosphor/dbus/thermal-policy.bb index 5c381b46ca..8eb5bc23b1 100644 --- a/meta-ibm/recipes-phosphor/dbus/thermal-policy.bb +++ b/meta-ibm/recipes-phosphor/dbus/thermal-policy.bb @@ -8,10 +8,16 @@ inherit phosphor-dbus-monitor FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" -SRC_URI = "file://thermal-policy.yaml" +SRC_URI:append:ibm-ac-server = " file://thermal-policy.yaml" +SRC_URI:append:mihawk = " file://thermal-policy.yaml" -do_install() { +do_install:ibm-ac-server() { install -D ${WORKDIR}/thermal-policy.yaml ${D}${config_dir}/thermal-policy.yaml } -FILES:${PN} += "${config_dir}/thermal-policy.yaml" +do_install:mihawk() { + install -D ${WORKDIR}/thermal-policy.yaml ${D}${config_dir}/thermal-policy.yaml +} + +FILES:${PN}:append:ibm-ac-server = " ${config_dir}/thermal-policy.yaml" +FILES:${PN}:append:mihawk = " ${config_dir}/thermal-policy.yaml" |