diff options
3 files changed, 32 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-fru-config-example-native.bb b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-fru-config-example-native.bb new file mode 100644 index 000000000..58c7a398a --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-fru-config-example-native.bb @@ -0,0 +1,22 @@ +SUMMARY = "Phosphor IPMI FRU Configuration Example" +DESCRIPTION = "An example Phosphor IPMI FRU IPMI to \ +DBUS mapping configuration." + +PR = "r1" + +inherit native + +require phosphor-ipmi-fru.inc + +PROVIDES += "virtual/phosphor-ipmi-fru-config" + +S = "${WORKDIR}/git" + +do_install() { + SRC=${S}/example-map.yaml + DEST=${D}${datadir}/phosphor-ipmi-fru + + install -d ${DEST} + # TODO - install the example, once one is provided by ipmi-fru-parser. + # install-data ${SRC} ${DEST} +} diff --git a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-fru.bb b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-fru.bb index a434fb478..d053bce66 100644 --- a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-fru.bb +++ b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-fru.bb @@ -8,6 +8,7 @@ inherit obmc-phosphor-systemd require ${PN}.inc DEPENDS += " \ + virtual/phosphor-ipmi-fru-config \ systemd \ phosphor-ipmi-host \ phosphor-mapper \ diff --git a/meta-phosphor/conf/distro/include/phosphor-defaults.inc b/meta-phosphor/conf/distro/include/phosphor-defaults.inc index e9f2781cd..f5263bbbb 100644 --- a/meta-phosphor/conf/distro/include/phosphor-defaults.inc +++ b/meta-phosphor/conf/distro/include/phosphor-defaults.inc @@ -22,5 +22,14 @@ PREFERRED_PROVIDER_virtual/obmc-logging-mgmt ?= "phosphor-logging" PREFERRED_PROVIDER_virtual/obmc-host-state-mgmt ?= "phosphor-state-manager" PREFERRED_PROVIDER_virtual/obmc-chassis-state-mgmt ?= "phosphor-state-manager" +# virtual/phosphor-ipmi-fru-config +# +# The phosphor-ipmi-fru application is data-driven and requires an input +# mapping of IPMI inventory metadata to DBus objects interfaces and properties. +# This virtual is a native recipe that provides that mapping by installing +# configuration files in the format and native sysroot location expected by +# the phosphor-ipmi-fru build process in the native sysroot. +PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-config ?= "phosphor-ipmi-fru-config-example-native" + OBMC_DBUS_PATH_ROOT ?= "/xyz/openbmc_project" OBMC_DBUS_IFACE_ROOT ?= "xyz.openbmc_project" |