blob: 2131774d15bef137596ed4f72d630c950d2e391f [file] [log] [blame]
Artem Senichev8574e7e2020-05-08 12:33:35 +03001SUMMARY = "Command-line interface"
2DESCRIPTION = "YADRO OpenBMC Command Line Interface for end users"
3HOMEPAGE = "https://github.com/YADRO-KNS/obmc-yadro-cli"
4PR = "r1"
5PV = "1.0+git${SRCPV}"
6
7# License info
8LICENSE = "Apache-2.0"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
10
11# Dependencies
12DEPENDS = "phosphor-user-manager"
Andrei Kartashev0f66db42021-08-17 21:47:15 +030013RDEPENDS:${PN} = " \
Alexander Filippov69f2c782020-10-27 16:01:14 +030014 ${VIRTUAL-RUNTIME_base-utils} \
15 bash \
Alexander Filippov69f2c782020-10-27 16:01:14 +030016 obmc-yadro-fwupdate \
Andrei Kartashev4e4ce6f2021-12-09 12:46:49 +030017 obmc-yadro-lsinventory \
Alexander Filippov69f2c782020-10-27 16:01:14 +030018 obmc-yadro-lssensors \
19 obmc-yadro-netconfig \
Alexander Filippov069dc592021-07-21 11:40:06 +030020 phosphor-debug-collector-dreport \
21 phosphor-debug-collector-scripts \
Alexander Filippov69f2c782020-10-27 16:01:14 +030022 sudo \
23 systemd \
24"
25# Some platforms also require some additional packages like
26# ipmitool, obmc-yadro-lsinventory, obmc-yadro-backup ...
27# They should be appended by bbappend file in their layers
Artem Senichev8574e7e2020-05-08 12:33:35 +030028
Alexander Filippovad7324a2020-09-30 12:59:16 +030029# Directory with command handlers
Andrei Kartashev0f66db42021-08-17 21:47:15 +030030FILES:${PN} += "${datadir}/cli"
Artem Senichev8574e7e2020-05-08 12:33:35 +030031
Alexander Filippov069dc592021-07-21 11:40:06 +030032MACHINE_NAME ?= "${MACHINE}"
Artem Senichev8574e7e2020-05-08 12:33:35 +030033# Custom installation procedure
34do_install() {
35 ${B}/install.sh \
36 --dir ${D} \
Alexander Filippov069dc592021-07-21 11:40:06 +030037 --machine ${@'${MACHINE_NAME}'.split('-')[0]} \
Artem Senichev8574e7e2020-05-08 12:33:35 +030038 --admin priv-admin \
39 --operator priv-operator \
40 --user priv-user
41}
42
43# Source code repository
44S = "${WORKDIR}/git"
45SRC_URI = "git://github.com/YADRO-KNS/obmc-yadro-cli"
Andrei Kartashev4e4ce6f2021-12-09 12:46:49 +030046SRCREV = "ce70f4f732114b1989c63792907b84a3f6e91f84"