diff options
author | eportnov <eportnov@ibs.ru> | 2022-07-15 18:12:04 +0300 |
---|---|---|
committer | eportnov <eportnov@ibs.ru> | 2022-07-18 10:27:18 +0300 |
commit | ff5831df9d6f272c255fdbf3d60ebc82bc7cb338 (patch) | |
tree | 626d448979c35ee483bf4cdc69f8c8dd52260749 /meta-ibs/meta-cp2-5422 | |
parent | 2798ccb278a52fc54e19074dd3dabd16976e4635 (diff) | |
download | openbmc-feature/add_telemetry.tar.xz |
Add configured telemetryfeature/add_telemetry
Diffstat (limited to 'meta-ibs/meta-cp2-5422')
3 files changed, 31 insertions, 0 deletions
diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/telemetry/telemetry/0001-set_new_report_path.patch b/meta-ibs/meta-cp2-5422/recipes-phosphor/telemetry/telemetry/0001-set_new_report_path.patch new file mode 100644 index 0000000000..b59438bd28 --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/telemetry/telemetry/0001-set_new_report_path.patch @@ -0,0 +1,22 @@ +From 71ad04dd8ce0a31fe260626215d30bf0e58b255c Mon Sep 17 00:00:00 2001 +From: eportnov <eportnov@ibs.ru> +Date: Fri, 15 Jul 2022 17:38:30 +0300 +Subject: [PATCH] set_new_report_path + +--- + src/report.hpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/report.hpp b/src/report.hpp +index 6d8c6b4..8d71bc9 100644 +--- a/src/report.hpp ++++ b/src/report.hpp +@@ -137,7 +137,7 @@ class Report : public interfaces::Report, public interfaces::MetricListener + static constexpr const char* reportIfaceName = + "xyz.openbmc_project.Telemetry.Report"; + static constexpr const char* reportDir = +- "/xyz/openbmc_project/Telemetry/Reports/"; ++ "/xyz/openbmc_project/Telemetry/Reports/TelemetryService/"; + static constexpr const char* deleteIfaceName = + "xyz.openbmc_project.Object.Delete"; + static constexpr size_t reportVersion = 6; diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/telemetry/telemetry/3017361602 b/meta-ibs/meta-cp2-5422/recipes-phosphor/telemetry/telemetry/3017361602 new file mode 100644 index 0000000000..57252a3388 --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/telemetry/telemetry/3017361602 @@ -0,0 +1 @@ +{"AppendLimit":20,"Enabled":true,"Id":"report_id","Interval":1000,"Name":"report_name","ReadingParameters":[{"collectionDuration":10,"collectionTimeScope":0,"id":"id","operationType":2,"sensorPath":[{"metadata":"meta_data","path":"/xyz/openbmc_project/sensors/voltage/PVCCIN_CPU1","service":"xyz.openbmc_project.ADCSensor"}]}],"ReportActions":[1],"ReportUpdates":2,"ReportingType":0,"Version":6}
\ No newline at end of file diff --git a/meta-ibs/meta-cp2-5422/recipes-phosphor/telemetry/telemetry_%.bbappend b/meta-ibs/meta-cp2-5422/recipes-phosphor/telemetry/telemetry_%.bbappend new file mode 100644 index 0000000000..ca45488936 --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-phosphor/telemetry/telemetry_%.bbappend @@ -0,0 +1,8 @@ +FILESEXTRAPATHS:append := "${THISDIR}/${PN}:" +SRC_URI += "file://3017361602 \ + file://0001-set_new_report_path.patch \ + " +do_install:append() { + install -d ${D}/var/lib/telemetry/Reports + cp ${WORKDIR}/3017361602 ${D}/var/lib/telemetry/Reports +} |