meta-ampere: mtjade: fru: use dynamic sensors
Change to use dynamic sensors for FRU support to take advantage of IPMI
fru read/write commands.
Tested:
1. Check FRU reading
$ ipmitool fru print
2. Write fru.bin into FRU EEPROM
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
Change-Id: I0d0b52ae7b0fd301a14d0d2894268637d867a5b8
diff --git a/meta-ampere/meta-jade/recipes-phosphor/configuration/mtjade-yaml-config.bb b/meta-ampere/meta-jade/recipes-phosphor/configuration/mtjade-yaml-config.bb
index c9f2702..376ebc0 100644
--- a/meta-ampere/meta-jade/recipes-phosphor/configuration/mtjade-yaml-config.bb
+++ b/meta-ampere/meta-jade/recipes-phosphor/configuration/mtjade-yaml-config.bb
@@ -5,27 +5,18 @@
inherit allarch
SRC_URI = " \
- file://ipmi-sensors-${MACHINE}.yaml \
- file://mtjade-ipmi-fru.yaml \
- file://mtjade-ipmi-fru-properties.yaml \
+ file://mtjade-ipmi-sensors.yaml \
"
S = "${WORKDIR}"
do_install() {
- install -m 0644 -D ipmi-sensors-${MACHINE}.yaml \
- ${D}${datadir}/${BPN}/ipmi-sensors-${MACHINE}.yaml
- cat mtjade-ipmi-fru.yaml > fru-read.yaml
- install -m 0644 -D mtjade-ipmi-fru-properties.yaml \
- ${D}${datadir}/${BPN}/ipmi-extra-properties.yaml
- install -m 0644 -D fru-read.yaml \
- ${D}${datadir}/${BPN}/ipmi-fru-read.yaml
+ install -m 0644 -D mtjade-ipmi-sensors.yaml \
+ ${D}${datadir}/${BPN}/ipmi-sensors.yaml
}
FILES:${PN}-dev = " \
- ${datadir}/${BPN}/ipmi-sensors-${MACHINE}.yaml \
- ${datadir}/${BPN}/ipmi-extra-properties.yaml \
- ${datadir}/${BPN}/ipmi-fru-read.yaml \
- "
+ ${datadir}/${BPN}/ipmi-sensors.yaml \
+ "
ALLOW_EMPTY:${PN} = "1"