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,22 @@
SUMMARY = "Phosphor OpenBMC machine readable workbook API modules"
DESCRIPTION = "The API for the MRW XML generated by the Serverwiz tool"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=d2794c0df5b907fdace235a619d80314"
DEPENDS += "libxml-simple-perl-native libjson-perl-native"
SRCREV = "${MRW_API_SRCREV}"
PR = "r1"
SRC_URI += "${MRW_API_SRC_URI}"
S = "${WORKDIR}/git"
inherit cpan-base
inherit mrw-rev
inherit perlnative
inherit native
do_install() {
perl_version="${@get_perl_version(d)}"
install -d ${D}${PERLLIBDIRS:class-native}/site_perl/${perl_version}/mrw
install -m 0755 scripts/Targets.pm ${D}${PERLLIBDIRS:class-native}/site_perl/${perl_version}/mrw/Targets.pm
}
@@ -0,0 +1,24 @@
SUMMARY = "Phosphor OpenBMC machine readable workbook"
DESCRIPTION = "Pulls down system specific data"
LICENSE = "${PHOSPHOR_MRW_LICENSE}"
LIC_FILES_CHKSUM = "${PHOSPHOR_MRW_LIC_FILES_CHKSUM}"
SRCREV = "${PHOSPHOR_MRW_REV}"
PV = "1.0+git${SRCPV}"
PR = "r1"
SRC_URI += "${PHOSPHOR_MRW_URI}"
S = "${WORKDIR}/git"
inherit obmc-xmlpatch
inherit mrw-xml
inherit native
do_install() {
install -d ${D}/${mrw_datadir}
install -m 0644 ${MRW_XML} ${D}/${mrw_datadir}
}
PHOSPHOR_MRW_LICENSE ?= "Apache-2.0"
PHOSPHOR_MRW_LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
PHOSPHOR_MRW_URI ?= "http://missing-mrw-uri"
@@ -0,0 +1,20 @@
SUMMARY = "Phosphor machine readable workbook patching script"
DESCRIPTION = "Retrieve the script that can patch the MRW XML"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
DEPENDS += "python3-native python3-lxml-native"
SRCREV = "${MRW_TOOLS_SRCREV}"
PV = "1.0+git${SRCPV}"
PR = "r1"
SRC_URI += "${MRW_TOOLS_SRC_URI}"
S = "${WORKDIR}/git"
inherit mrw-rev
inherit native
do_install() {
install -d ${D}${bindir}/obmc-mrw
install -m 0755 patchxml.py ${D}${bindir}/obmc-mrw
}
@@ -0,0 +1,16 @@
SUMMARY = "OpenBMC MRW Perl Tools"
DESCRIPTION = "OpenBMC Perl tools for the machine readable workbook"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
DEPENDS += "libmodule-build-perl-native mrw-api-native yaml-tiny-native"
SRCREV = "${MRW_TOOLS_SRCREV}"
PV = "1.0+git${SRCPV}"
PR = "r1"
SRC_URI += "${MRW_TOOLS_SRC_URI}"
S = "${WORKDIR}/git"
inherit cpan_build
inherit mrw-rev
inherit native