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,16 @@
SUMMARY = "Command line tool for backup configuration"
DESCRIPTION = "YADRO OpenBMC command line tool for backup and restore configuration"
HOMEPAGE = "https://github.com/YADRO-KNS/obmc-yadro-backup"
PR = "r1"
PV = "1.0+git${SRCPV}"
inherit pkgconfig meson
# License info
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
# Source code repository
S = "${WORKDIR}/git"
SRC_URI = "git://github.com/YADRO-KNS/obmc-yadro-backup.git;branch=master;protocol=https"
SRCREV = "1cb990bb16708ad488980d907387bd3e4d37eb3a"
@@ -0,0 +1,46 @@
SUMMARY = "Command-line interface"
DESCRIPTION = "YADRO OpenBMC Command Line Interface for end users"
HOMEPAGE = "https://github.com/YADRO-KNS/obmc-yadro-cli"
PR = "r1"
PV = "1.0+git${SRCPV}"
# License info
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
# Dependencies
DEPENDS = "phosphor-user-manager"
RDEPENDS:${PN} = " \
${VIRTUAL-RUNTIME_base-utils} \
bash \
obmc-yadro-fwupdate \
obmc-yadro-lsinventory \
obmc-yadro-lssensors \
obmc-yadro-netconfig \
phosphor-debug-collector-dreport \
phosphor-debug-collector-scripts \
sudo \
systemd \
"
# Some platforms also require some additional packages like
# ipmitool, obmc-yadro-lsinventory, obmc-yadro-backup ...
# They should be appended by bbappend file in their layers
# Directory with command handlers
FILES:${PN} += "${datadir}/cli"
MACHINE_NAME ?= "${MACHINE}"
# Custom installation procedure
do_install() {
${B}/install.sh \
--dir ${D} \
--machine ${@'${MACHINE_NAME}'.split('-')[0]} \
--admin priv-admin \
--operator priv-operator \
--user priv-user
}
# Source code repository
S = "${WORKDIR}/git"
SRC_URI = "git://github.com/YADRO-KNS/obmc-yadro-cli;branch=master;protocol=https"
SRCREV = "ce70f4f732114b1989c63792907b84a3f6e91f84"
@@ -0,0 +1,26 @@
SUMMARY = "YADRO Firmware update tool"
DESCRIPTION = "Command line tool for update firmware"
HOMEPAGE = "https://github.com/YADRO-KNS/obmc-yadro-fwupdate"
PR = "r1"
PV = "1.0+git${SRCPV}"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
inherit pkgconfig meson
DEPENDS += " \
sdbusplus \
openssl \
"
PACKAGECONFIG[obmc-phosphor-image] = "-Dbmc-image-type=obmc-phosphor-image,,,,,intel-platforms"
PACKAGECONFIG[intel-platforms] = "-Dbmc-image-type=intel-platforms,,,,,obmc-phosphor-image"
PACKAGECONFIG[reboot-guard-support] = "-Dreboot-guard-support=true,-Dreboot-guard-support=false"
PACKAGECONFIG[openpower-support] = "-Dopenpower-support=true,-Dopenpower-support=false"
PACKAGECONFIG ??= " obmc-phosphor-image reboot-guard-support "
PACKAGECONFIG:append_df-openpower = "openpower-support"
SRC_URI = "git://github.com/YADRO-KNS/obmc-yadro-fwupdate;branch=master;protocol=https"
SRCREV = "eea7cadf0a5b49b3b9eb304b67494516469e96af"
S = "${WORKDIR}/git"
@@ -0,0 +1,22 @@
SUMMARY = "Command line tool for printing inventory"
DESCRIPTION = "YADRO OpenBMC command line tool for printing inventory list"
HOMEPAGE = "https://github.com/YADRO-KNS/obmc-yadro-lsinventory"
PR = "r1"
PV = "1.0+git${SRCPV}"
inherit pkgconfig meson
# License info
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
# Dependencies
DEPENDS += " \
nlohmann-json \
sdbusplus \
"
# Source code repository
S = "${WORKDIR}/git"
SRC_URI = "git://github.com/YADRO-KNS/obmc-yadro-lsinventory.git;branch=master;protocol=https"
SRCREV = "d8e25f82ff29c7b2c6d1888e9fe28307f173b078"
@@ -0,0 +1,16 @@
SUMMARY = "OpenBMC YADRO list sensors tool"
DESCRIPTION = "The command line tool to show detailed information about \
all available sensors"
HOMEPAGE = "https://github.com/YADRO-KNS/obmc-yadro-lssensors"
PR = "r1"
PV = "1.0+git${SRCPV}"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
inherit pkgconfig meson
DEPENDS += "sdbusplus"
S = "${WORKDIR}/git"
SRC_URI = "git://github.com/YADRO-KNS/obmc-yadro-lssensors.git;branch=master;protocol=https"
SRCREV = "dcaac17c62c9dd21499c4c5e9eb8070f10786560"
@@ -0,0 +1,19 @@
SUMMARY = "Command line tool for configuring network"
DESCRIPTION = "YADRO OpenBMC command line tool for configuring network"
HOMEPAGE = "https://github.com/YADRO-KNS/obmc-yadro-netconfig"
PR = "r1"
PV = "1.0+git${SRCPV}"
inherit pkgconfig meson
# License info
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
# Dependencies
DEPENDS = "sdbusplus"
# Source code repository
S = "${WORKDIR}/git"
SRC_URI = "git://github.com/YADRO-KNS/obmc-yadro-netconfig.git;branch=master;protocol=https"
SRCREV = "1d991868023b80a9361a7a46c6e6b8058b482f01"