SUMMARY = "YAML configuration for luxshare"
PR = "r1"
LICENSE = "CLOSED"


inherit allarch

SRC_URI = " \
    file://lux-ipmi-fru.yaml \
    file://lux-ipmi-sensors.yaml \
    file://lux-ipmi-fru-properties.yaml \
    file://lux-ipmi-inventory-sensors.yaml \
    "

S = "${WORKDIR}"

do_install() {
    install -m 0644 -D  lux-ipmi-fru.yaml ${D}${datadir}/${BPN}/ipmi-fru-read.yaml
    install -m 0644 -D  lux-ipmi-sensors.yaml ${D}${datadir}/${BPN}/ipmi-sensors.yaml
    install -m 0644 -D  lux-ipmi-fru-properties.yaml ${D}${datadir}/${BPN}/ipmi-extra-properties.yaml
    install -m 0644 -D  lux-ipmi-inventory-sensors.yaml ${D}${datadir}/${BPN}/ipmi-inventory-sensors.yaml
}

FILES:${PN}: = " \
    ${datadir}/${BPN}/ipmi-fru-read.yaml \
    ${datadir}/${BPN}/ipmi-sensors.yaml \
    ${datadir}/${BPN}/ipmi-extra-properties.yaml \
    ${datadir}/${BPN}/ipmi-inventory-sensors.yaml \
    "

ALLOW_EMPTY:${PN} = "1"
