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,209 @@
SUMMARY = "OpenBMC - Applications"
PR = "r1"
inherit packagegroup
PROVIDES = "${PACKAGES}"
PACKAGES = " \
${PN}-bmc-state-mgmt \
${PN}-bmcweb \
${PN}-chassis-state-mgmt \
${PN}-console \
${PN}-dbus-monitor \
${PN}-extras \
${PN}-devtools \
${PN}-fan-control \
${PN}-fru-ipmi \
${PN}-health-monitor \
${PN}-host-state-mgmt \
${PN}-ikvm \
${PN}-inventory \
${PN}-leds \
${PN}-logging \
${PN}-remote-logging \
${PN}-rng \
${PN}-sensors \
${PN}-software \
${PN}-host-check-mgmt \
${PN}-debug-collector \
${PN}-settings \
${PN}-network \
${PN}-telemetry \
${PN}-user-mgmt \
${PN}-user-mgmt-ldap \
${PN}-dmtf-pmci \
"
SUMMARY:${PN}-bmc-state-mgmt = "BMC state management"
RDEPENDS:${PN}-bmc-state-mgmt = " \
${VIRTUAL-RUNTIME_obmc-bmc-state-manager} \
phosphor-state-manager-systemd-target-monitor \
"
SUMMARY:${PN}-bmcweb = "bmcweb support"
RDEPENDS:${PN}-bmcweb = " \
bmcweb \
phosphor-certificate-manager \
"
SUMMARY:${PN}-chassis-state-mgmt = "Chassis state management"
RDEPENDS:${PN}-chassis-state-mgmt = " \
${VIRTUAL-RUNTIME_obmc-chassis-state-manager} \
obmc-phosphor-power \
"
SUMMARY:${PN}-console = "Serial over LAN support"
RDEPENDS:${PN}-console = " \
obmc-console \
"
# Deprecated - add new packages to an existing packagegroup or create a new one.
SUMMARY:${PN}-extras = "Extra features"
RDEPENDS:${PN}-extras = ""
SUMMARY:${PN}-devtools = "Development tools"
RDEPENDS:${PN}-devtools = " \
bash \
ffdc \
i2c-tools \
libgpiod-tools \
lrzsz \
rsync \
trace-enable \
"
EXTRA_DEV_DEBUG_TOOLS = "gdbserver strace opkg curl"
RDEPENDS:${PN}-devtools:append = " \
${@bb.utils.contains('DISTRO_FEATURES', 'extra-dev-debug-tools', '${EXTRA_DEV_DEBUG_TOOLS}', '', d)} \
"
SUMMARY:${PN}-dbus-monitor = "Support for dbus monitoring"
RDEPENDS:${PN}-dbus-monitor = " \
phosphor-dbus-monitor \
"
# Use the fan control package group for applications
# implementing fan control or system fan policy only.
# Applications that create inventory or sensors should
# be added those respective package groups instead.
SUMMARY:${PN}-fan-control = "Fan control"
RDEPENDS:${PN}-fan-control = " \
${VIRTUAL-RUNTIME_obmc-fan-control} \
phosphor-fan-monitor \
"
SUMMARY:${PN}-fru-ipmi = "Support for EEPROMS with IPMI FRU"
RDEPENDS:${PN}-fru-ipmi = " \
fru-device \
"
SUMMARY:${PN}-health-monitor = "Support for health monitoring"
RDEPENDS:${PN}-health-monitor = " \
phosphor-health-monitor \
"
SUMMARY:${PN}-host-state-mgmt = "Host state management"
RDEPENDS:${PN}-host-state-mgmt = " \
${VIRTUAL-RUNTIME_obmc-host-state-manager} \
${VIRTUAL-RUNTIME_obmc-discover-system-state} \
"
SUMMARY:${PN}-ikvm = "KVM over IP support"
RDEPENDS:${PN}-ikvm = " \
obmc-ikvm \
"
SUMMARY:${PN}-inventory = "Inventory applications"
RDEPENDS:${PN}-inventory = " \
${VIRTUAL-RUNTIME_obmc-inventory-manager} \
${VIRTUAL-RUNTIME_obmc-fan-presence} \
"
SUMMARY:${PN}-leds = "LED applications"
RDEPENDS:${PN}-leds = " \
phosphor-led-manager \
phosphor-led-sysfs \
phosphor-led-manager-faultmonitor \
"
SUMMARY:${PN}-logging = "Logging applications"
RDEPENDS:${PN}-logging = " \
phosphor-logging \
"
SUMMARY:${PN}-remote-logging = "Remote logging applications"
RDEPENDS:${PN}-remote-logging = " \
rsyslog \
phosphor-rsyslog-config \
"
SUMMARY:${PN}-rng = "Random Number Generator support"
RDEPENDS:${PN}-rng = " \
rng-tools \
"
SUMMARY:${PN}-sensors = "Sensor applications"
RDEPENDS:${PN}-sensors = " \
${VIRTUAL-RUNTIME_obmc-sensors-hwmon} \
"
${PN}-software-extras = ""
${PN}-software-extras:df-obmc-ubi-fs = " \
phosphor-software-manager-updater-ubi \
"
${PN}-software-extras:df-phosphor-mmc = " \
phosphor-software-manager-updater-mmc \
"
SUMMARY:${PN}-software = "Software applications"
RDEPENDS:${PN}-software = " \
phosphor-software-manager-download-mgr \
phosphor-software-manager-updater \
phosphor-software-manager-version \
${${PN}-software-extras} \
"
SUMMARY:${PN}-debug-collector = "BMC debug collector"
RDEPENDS:${PN}-debug-collector = " \
phosphor-debug-collector-manager \
phosphor-debug-collector-monitor \
phosphor-debug-collector-dreport \
phosphor-debug-collector-scripts \
"
SUMMARY:${PN}-settings = "Settings applications"
RDEPENDS:${PN}-settings = " \
phosphor-settings-manager \
"
SUMMARY:${PN}-network = "BMC Network Manager"
RDEPENDS:${PN}-network = " \
phosphor-network \
"
SUMMARY:${PN}-telemetry = "Telemetry solution"
RDEPENDS:${PN}-telemetry = " \
telemetry \
"
SUMMARY:${PN}-user-mgmt = "User management applications"
RDEPENDS:${PN}-user-mgmt = " \
phosphor-user-manager \
"
RRECOMMENDS:${PN}-user-mgmt = " \
pam-plugin-access \
"
SUMMARY:${PN}-user-mgmt-ldap = "LDAP users and groups support"
RDEPENDS:${PN}-user-mgmt-ldap = " \
${PN}-user-mgmt \
nss-pam-ldapd \
phosphor-ldap \
"
SUMMARY:${PN}-dmtf-pmci = "DMTF PMCI Protocol Implementations"
RDEPENDS:${PN}-dmtf-pmci = " \
${@bb.utils.contains('DISTRO_FEATURES', 'mctp', 'mctp', '', d)} \
"
@@ -0,0 +1,13 @@
# Warning. Add additional providers with whitelists to distro or machine
# configuration and not in recipe context (bbappend) otherwise ipmid will not
# know about your whitelist.
SUMMARY = "OpenBMC - IPMI providers"
SUMMARY:${PN}-libs = "Extra providers for ipmid."
PROVIDES = "${PACKAGES}"
PR = "r1"
inherit packagegroup
PACKAGES = "${PN}-libs"
RDEPENDS:${PN}-libs = "${VIRTUAL-RUNTIME_phosphor-ipmi-providers}"
@@ -0,0 +1,21 @@
SUMMARY = "Phosphor OpenBMC - Debug Tools"
PR = "r1"
inherit packagegroup
RDEPENDS:${PN} = " \
strace \
ldd \
ethtool \
net-tools \
phosphor-logging-test \
lmsensors-sensors \
tcpdump \
screen \
valgrind \
iperf3 \
"
# Some older arm architectures don't support valgrind, so explicitly remove
# it as a dependency from them, but keep it by default in anything newer.
RDEPENDS:${PN}:remove:armv5 = "valgrind"
RDEPENDS:${PN}:remove:armv6 = "valgrind"
@@ -0,0 +1,18 @@
# This is a packagegroup in name and principle but we do not want to inherit
# from packagegroup.bbclass. The point of this packagegroup is to get the
# sysroot populated with YAML files from the DEPENDS packages and if we inherit
# the packagegroup bbclass this doesn't happen, because that bbclass `deltask`
# a number that are required.
# inherit packagegroup
SUMMARY = "Phosphor OpenBMC - YAML Providers"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
DEPENDS = "${OBMC_YAML_PROVIDER_RECIPES}"
PR = "r1"
RDEPENDS:${PN} = "${OBMC_YAML_PROVIDER_RECIPES}"
OBMC_YAML_PROVIDER_RECIPES += " \
phosphor-led-manager-yaml-provider \
phosphor-software-manager-yaml-provider \
"