meta-quanta: olympus-nuvoton: add ipmi yaml config
add configuration yaml files for fru and sensors
(From meta-quanta rev: 8327e2c69649eb91175b5e12002e57662411730e)
Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Signed-off-by: Joseph Liu <kwliu@nuvoton.com>
Change-Id: I0571b349ad77df5d773f8547a0effabddd568dca
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config.bb b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config.bb
new file mode 100644
index 0000000..c8b24cb
--- /dev/null
+++ b/meta-quanta/meta-olympus-nuvoton/recipes-phosphor/configuration/olympus-nuvoton-yaml-config.bb
@@ -0,0 +1,31 @@
+SUMMARY = "YAML configuration for Olympus Nuvoton"
+PR = "r1"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+inherit allarch
+
+SRC_URI_olympus-nuvoton = " \
+ file://olympus-nuvoton-ipmi-fru.yaml \
+ file://olympus-nuvoton-ipmi-fru-properties.yaml \
+ file://olympus-nuvoton-ipmi-sensors.yaml \
+ "
+
+S = "${WORKDIR}"
+
+do_install_olympus-nuvoton() {
+ install -m 0644 -D olympus-nuvoton-ipmi-fru-properties.yaml \
+ ${D}${datadir}/${BPN}/ipmi-extra-properties.yaml
+ install -m 0644 -D olympus-nuvoton-ipmi-fru.yaml \
+ ${D}${datadir}/${BPN}/ipmi-fru-read.yaml
+ install -m 0644 -D olympus-nuvoton-ipmi-sensors.yaml \
+ ${D}${datadir}/${BPN}/ipmi-sensors.yaml
+}
+
+FILES_${PN}-dev = " \
+ ${datadir}/${BPN}/ipmi-extra-properties.yaml \
+ ${datadir}/${BPN}/ipmi-fru-read.yaml \
+ ${datadir}/${BPN}/ipmi-sensors.yaml \
+ "
+
+ALLOW_EMPTY_${PN} = "1"