diff options
Diffstat (limited to 'meta-yadro/recipes-phosphor/cli')
6 files changed, 143 insertions, 0 deletions
diff --git a/meta-yadro/recipes-phosphor/cli/obmc-yadro-backup_git.bb b/meta-yadro/recipes-phosphor/cli/obmc-yadro-backup_git.bb new file mode 100644 index 000000000..c101d837c --- /dev/null +++ b/meta-yadro/recipes-phosphor/cli/obmc-yadro-backup_git.bb @@ -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 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" +SRCREV = "dd29c8bdc222de004284faba37d278f8c443b531" diff --git a/meta-yadro/recipes-phosphor/cli/obmc-yadro-cli_git.bb b/meta-yadro/recipes-phosphor/cli/obmc-yadro-cli_git.bb new file mode 100644 index 000000000..1cdecb07c --- /dev/null +++ b/meta-yadro/recipes-phosphor/cli/obmc-yadro-cli_git.bb @@ -0,0 +1,43 @@ +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-console \ + obmc-yadro-fwupdate \ + obmc-yadro-lssensors \ + obmc-yadro-netconfig \ + 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" + +# Custom installation procedure +do_install() { + ${B}/install.sh \ + --dir ${D} \ + --machine ${@'${MACHINE}'.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" +SRCREV = "9457a085c86722214d6c450397ccecd6db4a1071" diff --git a/meta-yadro/recipes-phosphor/cli/obmc-yadro-fwupdate_git.bb b/meta-yadro/recipes-phosphor/cli/obmc-yadro-fwupdate_git.bb new file mode 100644 index 000000000..90f377bbe --- /dev/null +++ b/meta-yadro/recipes-phosphor/cli/obmc-yadro-fwupdate_git.bb @@ -0,0 +1,27 @@ +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 meson +inherit pkgconfig + +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" +SRCREV = "f141bdf92f92971caa4e8e5eb0727821241416e8" +S = "${WORKDIR}/git" diff --git a/meta-yadro/recipes-phosphor/cli/obmc-yadro-lsinventory_git.bb b/meta-yadro/recipes-phosphor/cli/obmc-yadro-lsinventory_git.bb new file mode 100644 index 000000000..89ceb1ee1 --- /dev/null +++ b/meta-yadro/recipes-phosphor/cli/obmc-yadro-lsinventory_git.bb @@ -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 meson + +# License info +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" + +# Dependencies +DEPENDS += " \ + json-c \ + sdbusplus \ + " + +# Source code repository +S = "${WORKDIR}/git" +SRC_URI = "git://github.com/YADRO-KNS/obmc-yadro-lsinventory.git" +SRCREV = "d0bdf0ddd192b9d41c5c5d4af9385122b08c7608" diff --git a/meta-yadro/recipes-phosphor/cli/obmc-yadro-lssensors_git.bb b/meta-yadro/recipes-phosphor/cli/obmc-yadro-lssensors_git.bb new file mode 100644 index 000000000..234d3cdad --- /dev/null +++ b/meta-yadro/recipes-phosphor/cli/obmc-yadro-lssensors_git.bb @@ -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 meson + +DEPENDS += "sdbusplus" + +S = "${WORKDIR}/git" +SRC_URI = "git://github.com/YADRO-KNS/obmc-yadro-lssensors.git" +SRCREV = "f76bf429d212d803cff7e4f1e3ca21097c65f18f" diff --git a/meta-yadro/recipes-phosphor/cli/obmc-yadro-netconfig_git.bb b/meta-yadro/recipes-phosphor/cli/obmc-yadro-netconfig_git.bb new file mode 100644 index 000000000..e868bbfb4 --- /dev/null +++ b/meta-yadro/recipes-phosphor/cli/obmc-yadro-netconfig_git.bb @@ -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 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" +SRCREV = "b300465732616c6d456bdc2df2cce9d1246636a8" |