Initial commit

This commit is contained in:
Your Name
2026-04-23 17:07:55 +08:00
commit b7e39e063b
16725 changed files with 1625565 additions and 0 deletions
@@ -0,0 +1,20 @@
SUMMARY = "Hostboot hostfw inventory map for phosphor-ipmi-fru"
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
inherit phosphor-ipmi-fru
inherit native
SRC_URI += "file://config.yaml"
PROVIDES += "virtual/phosphor-ipmi-fru-hostfw-config"
S = "${WORKDIR}"
do_install() {
DEST=${D}${hostfw_datadir}
install -d ${DEST}
install config.yaml ${DEST}
}
@@ -0,0 +1,140 @@
PROC:
EntityID: 3
Interfaces:
xyz.openbmc_project.Inventory.Decorator.Asset:
BuildDate:
IPMIFruSection: Board
IPMIFruProperty: "Mfg Date"
Manufacturer:
IPMIFruSection: Board
IPMIFruProperty: "Manufacturer"
PartNumber:
IPMIFruSection: Board
IPMIFruProperty: "Part Number"
SerialNumber:
IPMIFruSection: Board
IPMIFruProperty: "Serial Number"
xyz.openbmc_project.Inventory.Item:
PrettyName:
IPMIFruSection: Board
IPMIFruProperty: "Name"
xyz.openbmc_project.Inventory.Decorator.Revision:
Version:
IPMIFruSection: Board
# Custom Field 2 is EC.
IPMIFruProperty: "Custom Field 2"
# Delimiter value in ascii as YAML parser
# was not allowing certain characters like ":" as value
IPMIFruValueDelimiter: "58"
xyz.openbmc_project.Inventory.Item.Cpu:
SYS:
# same entity ID as it is Associated type of NODE
EntityID: 7
Interfaces:
xyz.openbmc_project.Inventory.Decorator.Asset:
Model:
IPMIFruSection: Chassis
IPMIFruProperty: "Part Number"
SerialNumber:
IPMIFruSection: Chassis
IPMIFruProperty: "Serial Number"
xyz.openbmc_project.Inventory.Item.System:
NODE:
EntityID: 7
Interfaces:
xyz.openbmc_project.Inventory.Decorator.Asset:
BuildDate:
IPMIFruSection: Board
IPMIFruProperty: "Mfg Date"
Manufacturer:
IPMIFruSection: Board
IPMIFruProperty: "Manufacturer"
PartNumber:
IPMIFruSection: Board
IPMIFruProperty: "Part Number"
SerialNumber:
IPMIFruSection: Board
IPMIFruProperty: "Serial Number"
xyz.openbmc_project.Inventory.Item:
PrettyName:
IPMIFruSection: Board
IPMIFruProperty: "Name"
xyz.openbmc_project.Inventory.Item.Board:
AssociatedTypes:
- SYS
DIMM:
EntityID: 32
Interfaces:
xyz.openbmc_project.Inventory.Decorator.Asset:
BuildDate:
IPMIFruSection: Product
IPMIFruProperty: "Mfg Date"
Manufacturer:
IPMIFruSection: Product
IPMIFruProperty: "Manufacturer"
PartNumber:
IPMIFruSection: Product
IPMIFruProperty: "Part Number"
SerialNumber:
IPMIFruSection: Product
IPMIFruProperty: "Serial Number"
Model:
IPMIFruSection: Product
IPMIFruProperty: "Model Number"
xyz.openbmc_project.Inventory.Item:
PrettyName:
IPMIFruSection: Product
IPMIFruProperty: "Name"
xyz.openbmc_project.Inventory.Decorator.Revision:
Version:
IPMIFruSection: Product
IPMIFruProperty: "Version"
xyz.openbmc_project.Inventory.Item.Dimm:
MEMBUFF:
EntityID: 8
Interfaces:
xyz.openbmc_project.Inventory.Decorator.Asset:
BuildDate:
IPMIFruSection: Board
IPMIFruProperty: "Mfg Date"
Manufacturer:
IPMIFruSection: Board
IPMIFruProperty: "Manufacturer"
PartNumber:
IPMIFruSection: Board
IPMIFruProperty: "Part Number"
SerialNumber:
IPMIFruSection: Board
IPMIFruProperty: "Serial Number"
xyz.openbmc_project.Inventory.Item:
PrettyName:
IPMIFruSection: Board
IPMIFruProperty: "Name"
xyz.openbmc_project.Inventory.Item.MemoryBuffer:
TPM:
EntityID: 176
Interfaces:
xyz.openbmc_project.Inventory.Decorator.Asset:
BuildDate:
IPMIFruSection: Board
IPMIFruProperty: "Mfg Date"
Manufacturer:
IPMIFruSection: Board
IPMIFruProperty: "Manufacturer"
PartNumber:
IPMIFruSection: Board
IPMIFruProperty: "Part Number"
SerialNumber:
IPMIFruSection: Board
IPMIFruProperty: "Serial Number"
xyz.openbmc_project.Inventory.Item:
PrettyName:
IPMIFruSection: Board
IPMIFruProperty: "Name"
xyz.openbmc_project.Inventory.Item.Tpm:
@@ -0,0 +1,29 @@
SUMMARY = "Phosphor IPMI plugin for the Host I/O Mapping Protocol"
HOMEPAGE = "https://github.com/openbmc/openpower-host-ipmi-flash"
PR = "r1"
PV = "0.1+git${SRCPV}"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=ff331e820fda701d36a8f0efc98adc58"
inherit meson pkgconfig
inherit obmc-phosphor-ipmiprovider-symlink
DEPENDS += "phosphor-ipmi-host"
DEPENDS += "sdbusplus"
DEPENDS += "phosphor-logging"
DEPENDS += "phosphor-dbus-interfaces"
TARGET_CFLAGS += "-fpic"
HOSTIPMI_PROVIDER_LIBRARY += "libhiomap.so"
S = "${WORKDIR}/git"
SRC_URI = "git://github.com/openbmc/openpower-host-ipmi-flash;branch=master;protocol=https"
SRCREV = "a917d24ef6881426fa2a15a8fac89b5554a64c49"
EXTRA_OEMESON:append = " -Dtests=disabled"
FILES:${PN}:append = " ${libdir}/ipmid-providers/lib*${SOLIBS}"
FILES:${PN}:append = " ${libdir}/host-ipmid/lib*${SOLIBS}"
FILES:${PN}-dev:append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la"
@@ -0,0 +1,19 @@
SUMMARY = "Copy error yaml files to known path for elog parsing"
PR = "r1"
PV = "1.0+git${SRCPV}"
inherit phosphor-dbus-yaml
inherit native
require openpower-ipmi-oem.inc
S = "${WORKDIR}/git"
do_install:append() {
SRC=${S}/org/open_power/OCC
DEST=${D}${yaml_dir}/org/open_power/OCC
install -d ${DEST}
install ${SRC}/Metrics.errors.yaml ${DEST}
install ${SRC}/Metrics.metadata.yaml ${DEST}
}
@@ -0,0 +1,17 @@
SUMMARY = "OEM sensor config for phosphor-host-ipmid"
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
inherit phosphor-ipmi-host
inherit native
SRC_URI += "file://openpower-config.yaml"
S = "${WORKDIR}"
do_install() {
DEST=${D}${sensor_yamldir}
install -d ${DEST}
install openpower-config.yaml ${DEST}/openpower-config.yaml
}
@@ -0,0 +1,34 @@
occ_active_sensor:
serviceInterface: org.freedesktop.DBus.Properties
readingType: assertion
mutability: Mutability::Write|Mutability::Read
sensorNamePattern: nameLeaf
interfaces:
org.open_power.OCC.Status:
OccActive:
Offsets:
0x00:
type: "bool"
assert: "false"
deassert: "true"
0x01:
type: "bool"
assert: "true"
deassert: "false"
hb_volatile_sensor:
path: /org/open_power/control/volatile
serviceInterface: org.freedesktop.DBus.Properties
readingType: assertion
mutability: Mutability::Write|Mutability::Read
sensorNamePattern: nameLeaf
interfaces:
xyz.openbmc_project.Object.Enable:
Enabled:
Offsets:
0x00:
type: "bool"
assert: false
0x01:
type: "bool"
assert: true
@@ -0,0 +1,7 @@
SUMMARY = "Whitelisted OpenBMC IPMI OEM commands"
DESCRIPTION = "Whitelisted OpenBMC IPMI OEM commands for OpenPOWER based systems"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
inherit phosphor-ipmi-host-whitelist
inherit native
@@ -0,0 +1,3 @@
#<NetFn>:<Command>
0x3A:0x5A //<OpenPower IBM OEM>:<Host IO Mapping Protocol (HIOMAP)>
0x3A:0xF0 //<OpenPower IBM OEM>:<Add Partial eSEL command>
@@ -0,0 +1,10 @@
SUMMARY = "openpower-ipmi-oem: install phosphor-logging yaml"
PR = "r1"
PV = "1.0+git${SRCPV}"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
inherit phosphor-logging-yaml-provider
require openpower-ipmi-oem.inc
S = "${WORKDIR}/git"
@@ -0,0 +1,5 @@
HOMEPAGE = "https://github.com/openbmc/openpower-host-ipmi-oem"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc"
SRC_URI += "git://github.com/openbmc/openpower-host-ipmi-oem;branch=master;protocol=https"
SRCREV = "490126f9ad350b9503e52942ac450a2e831bf3f0"
@@ -0,0 +1,36 @@
SUMMARY = "Phosphor IPMI plugin for OpenPOWER OEM Commands"
DESCRIPTION = "Phosphor IPMI plugin for OpenPOWER OEM Commands"
PR = "r1"
PV = "1.0+git${SRCPV}"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
inherit autotools pkgconfig
inherit obmc-phosphor-ipmiprovider-symlink
inherit python3native
require ${BPN}.inc
DEPENDS += "phosphor-ipmi-host"
DEPENDS += "autoconf-archive-native"
DEPENDS += "sdbusplus"
DEPENDS += "${PYTHON_PN}-sdbus++-native"
DEPENDS += "${PYTHON_PN}-mako-native"
DEPENDS += "${PYTHON_PN}-pyyaml-native"
DEPENDS += "phosphor-logging"
DEPENDS += "phosphor-dbus-interfaces"
DEPENDS += "virtual/phosphor-ipmi-inventory-sel"
TARGET_CFLAGS += "-fpic"
HOSTIPMI_PROVIDER_LIBRARY += "liboemhandler.so"
EXTRA_OECONF = " \
INVSENSOR_YAML_GEN=${STAGING_DIR_NATIVE}${datadir}/phosphor-ipmi-host/sensor/invsensor.yaml \
"
S = "${WORKDIR}/git"
FILES:${PN}:append = " ${libdir}/ipmid-providers/lib*${SOLIBS}"
FILES:${PN}:append = " ${libdir}/host-ipmid/lib*${SOLIBS}"
FILES:${PN}-dev:append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la"
@@ -0,0 +1 @@
OBMC_IPMI_SENSORS_PROVIDERS:append:df-openpower = " openpower-ipmi-oem-sensor-inventory-mrw-native"