commit | 1ba4d1b1c664adf0f9a9d116d9ea8976f53a39d2 | [log] [tgz] |
---|---|---|
author | Jayashree Dhanapal <jayashree-d@hcl.com> | Fri Sep 30 15:36:13 2022 +0530 |
committer | Jayashree Dhanapal <jayashree-d@hcl.com> | Mon Oct 03 13:33:45 2022 +0530 |
tree | 47c937c523d830aa0f731f2262e446d215409aab | |
parent | 87f5cff0cfca11f43851cb3d7d49dd96ced7fe03 [diff] |
phosphor-health-monitor: Add do_install in base recipe. Added do_install in base recipe for phosphor-health-monitor to copy the json file from WORKDIR to target for monitoring the CPU and Memory usage of BMC. Therefore, this can be removed in each bbappend files. Tested: Tested in Facebook YosemiteV2 platform. Signed-off-by: Jayashree Dhanapal <jayashree-d@hcl.com> Change-Id: I78eed7efb3e0be81a952c4bc3c3ae64579a48f7d
diff --git a/meta-ibm/recipes-phosphor/health/phosphor-health-monitor_%.bbappend b/meta-ibm/recipes-phosphor/health/phosphor-health-monitor_%.bbappend index 3bd3817..c0e8f7d 100644 --- a/meta-ibm/recipes-phosphor/health/phosphor-health-monitor_%.bbappend +++ b/meta-ibm/recipes-phosphor/health/phosphor-health-monitor_%.bbappend
@@ -1,8 +1,3 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:" SRC_URI:append = " file://bmc_health_config.json \ " -do_install:append() { - install -d ${D}/${sysconfdir}/healthMon/ - install -m 0644 ${WORKDIR}/bmc_health_config.json ${D}/${sysconfdir}/healthMon/ -} -
diff --git a/meta-phosphor/recipes-phosphor/health/phosphor-health-monitor_git.bb b/meta-phosphor/recipes-phosphor/health/phosphor-health-monitor_git.bb index 4c70253..a8aed2c 100644 --- a/meta-phosphor/recipes-phosphor/health/phosphor-health-monitor_git.bb +++ b/meta-phosphor/recipes-phosphor/health/phosphor-health-monitor_git.bb
@@ -18,3 +18,10 @@ inherit meson pkgconfig inherit systemd + +do_install:append() { + if [ -e "${WORKDIR}/bmc_health_config.json" ]; then + install -d ${D}${sysconfdir}/healthMon + install -m 0644 ${WORKDIR}/bmc_health_config.json ${D}${sysconfdir}/healthMon + fi +}
diff --git a/meta-quanta/meta-common/recipes-phosphor/health/phosphor-health-monitor_%.bbappend b/meta-quanta/meta-common/recipes-phosphor/health/phosphor-health-monitor_%.bbappend index 81c5371..c0e8f7d 100755 --- a/meta-quanta/meta-common/recipes-phosphor/health/phosphor-health-monitor_%.bbappend +++ b/meta-quanta/meta-common/recipes-phosphor/health/phosphor-health-monitor_%.bbappend
@@ -1,9 +1,3 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:" SRC_URI:append = " file://bmc_health_config.json \ " - -do_install:append() { - install -d ${D}/${sysconfdir}/healthMon/ - install -m 0644 ${WORKDIR}/bmc_health_config.json ${D}/${sysconfdir}/healthMon/ -} -