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
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Command line debug tools like pdbg and ecmd requires
# PDBG_DTB environment variable.
# attributes tool required PDBG_DTB, PDATA_INFODB and PDATA_ATTR_OVERRIDE
export PDBG_DTB=/var/lib/phosphor-software-manager/pnor/rw/DEVTREE
export PDATA_INFODB=/usr/share/pdata/attributes_info.db
export PDATA_ATTR_OVERRIDE=/tmp/devtree_attr_override
@@ -0,0 +1,28 @@
HOMEPAGE = "https://github.com/open-power/pdata/"
SUMMARY = "POWER Host data management"
DESCRIPTION = "Devicetree based POWER host data management"
PR = "r1"
PV = "1.0+git${SRCPV}"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
S = "${WORKDIR}/git"
inherit autotools \
perlnative
SRC_URI = "git://git@github.com/open-power/pdata;branch="main";protocol=https"
SRCREV = "298b7970fb2268ea1e2de7bfc7db338243dc7fc3"
DEPENDS = "pdbg \
libxml-simple-perl-native \
libxml-libxml-perl-native \
ekb-native \
autoconf-archive \
dtc-native"
PDATA_CONFARG = "CHIP=p10"
EXTRA_OECONF = "--enable-gen_attrsinfo ${PDATA_CONFARG}"
EXTRA_OEMAKE = "EKB=${STAGING_DATADIR_NATIVE}/ekb/"
@@ -0,0 +1,22 @@
SUMMARY = "Tools and libraries to manage the phal devicetree"
DESCRIPTION = "phal(power hardware abstraction layer) devicetree data \
modelling mainly includes the host hardware topology and attributes, \
which includes the configuration data"
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
PDATA_DTB_PATH="${datadir}/pdata"
FILES:${PN} += "${PDATA_DTB_PATH}"
do_install() {
DTB_FILE_ENV=power-target.sh
DTB_FILE_CONF_PATH=${D}${PDATA_DTB_PATH}
install -d ${DTB_FILE_CONF_PATH}
install -m 744 ${THISDIR}/files/${DTB_FILE_ENV} ${DTB_FILE_CONF_PATH}/${DTB_FILE_ENV}
install -d ${D}${sysconfdir}/profile.d
ln -s ${PDATA_DTB_PATH}/${DTB_FILE_ENV} ${D}${sysconfdir}/profile.d/${DTB_FILE_ENV}
}