summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-q71l/recipes-phosphor/ipmi/q71l-ipmi-fru-merge-config-native.bb
blob: f6db0c9143b04f5472b5f967563e930721ba7682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"

inherit native

DEPENDS += "virtual/phosphor-ipmi-fru-inventory"
PROVIDES += "virtual/phosphor-ipmi-fru-merge-config"

# Put the fru_config in the right place with the right name.
# Pull the IPMI FRU YAML config to use it in the IPMI HOST YAML.
do_install_append() {
  IPMI_FRU_SRC=${datadir}/phosphor-ipmi-fru/config
  IPMI_HOST_DEST=${D}${datadir}/phosphor-ipmi-host/config
  install -d ${IPMI_HOST_DEST}
  cat ${IPMI_FRU_SRC}/config.yaml > ${IPMI_HOST_DEST}/fru_config.yaml
}