From 38e84136d5ea0f52126d7c2a1c629e0eb3653039 Mon Sep 17 00:00:00 2001 From: "Thang Q. Nguyen" Date: Fri, 5 Feb 2021 14:38:50 +0000 Subject: meta-ampere: mtjade: support FRU inventory Support to parse the Mt.Jade FRU device, map FRU data with inventory information and report FRU content via IPMI. Tested: 1. Run IPMI fru print command: root@mtjade:~# ipmitool fru print FRU Device Description : Builtin FRU Device (ID 0) Chassis Type : Rack Mount Chassis Chassis Serial : A1A1-A000-0000000000123 Board Mfg Date : Fri Feb 5 00:00:00 2021 UTC Board Mfg : WIWYNN Board Product : Mt.Jade Motherboard Board Serial : B8103010002500900019J0LB Board Part Number : B81.03010.0026 Product Manufacturer : WIWYNN Product Name : Mt.Jade Server System Product Part Number : B81.03001.0009 Product Version : EVT2 Product Serial : B810300100050130002DN0SD 2. Check FRU inventory reoirt from REST /xyz/openbmc_project/inventory/system/chassis/motherboard Signed-off-by: Thang Q. Nguyen Change-Id: I231d5766b2f89a535d850eb437d63a9db84fb846 --- .../recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta-ampere/meta-jade/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend (limited to 'meta-ampere/meta-jade/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend') diff --git a/meta-ampere/meta-jade/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend b/meta-ampere/meta-jade/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend new file mode 100644 index 000000000..980746ede --- /dev/null +++ b/meta-ampere/meta-jade/recipes-phosphor/ipmi/phosphor-ipmi-host_%.bbappend @@ -0,0 +1,14 @@ +FILESEXTRAPATHS_append_mtjade := "${THISDIR}/${PN}:" + +DEPENDS_append_mtjade = " mtjade-yaml-config" + +RRECOMMENDS_${PN} += "ipmitool" + +EXTRA_OECONF_mtjade = " \ + FRU_YAML_GEN=${STAGING_DIR_HOST}${datadir}/mtjade-yaml-config/ipmi-fru-read.yaml \ + " + +do_install_append_mtjade(){ + install -d ${D}${includedir}/phosphor-ipmi-host + install -m 0644 -D ${S}/selutility.hpp ${D}${includedir}/phosphor-ipmi-host +} -- cgit v1.2.3