Artem Senichev | 8574e7e | 2020-05-08 12:33:35 +0300 | [diff] [blame] | 1 | SUMMARY = "Command-line interface" |
| 2 | DESCRIPTION = "YADRO OpenBMC Command Line Interface for end users" |
| 3 | HOMEPAGE = "https://github.com/YADRO-KNS/obmc-yadro-cli" |
| 4 | PR = "r1" |
| 5 | PV = "1.0+git${SRCPV}" |
| 6 | |
| 7 | # License info |
| 8 | LICENSE = "Apache-2.0" |
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" |
| 10 | |
| 11 | # Dependencies |
| 12 | DEPENDS = "phosphor-user-manager" |
Andrei Kartashev | 0f66db4 | 2021-08-17 21:47:15 +0300 | [diff] [blame] | 13 | RDEPENDS:${PN} = " \ |
Alexander Filippov | 69f2c78 | 2020-10-27 16:01:14 +0300 | [diff] [blame] | 14 | ${VIRTUAL-RUNTIME_base-utils} \ |
| 15 | bash \ |
Alexander Filippov | 69f2c78 | 2020-10-27 16:01:14 +0300 | [diff] [blame] | 16 | obmc-yadro-fwupdate \ |
| 17 | obmc-yadro-lssensors \ |
| 18 | obmc-yadro-netconfig \ |
Alexander Filippov | 069dc59 | 2021-07-21 11:40:06 +0300 | [diff] [blame] | 19 | phosphor-debug-collector-dreport \ |
| 20 | phosphor-debug-collector-scripts \ |
Alexander Filippov | 69f2c78 | 2020-10-27 16:01:14 +0300 | [diff] [blame] | 21 | sudo \ |
| 22 | systemd \ |
| 23 | " |
| 24 | # Some platforms also require some additional packages like |
| 25 | # ipmitool, obmc-yadro-lsinventory, obmc-yadro-backup ... |
| 26 | # They should be appended by bbappend file in their layers |
Artem Senichev | 8574e7e | 2020-05-08 12:33:35 +0300 | [diff] [blame] | 27 | |
Alexander Filippov | ad7324a | 2020-09-30 12:59:16 +0300 | [diff] [blame] | 28 | # Directory with command handlers |
Andrei Kartashev | 0f66db4 | 2021-08-17 21:47:15 +0300 | [diff] [blame] | 29 | FILES:${PN} += "${datadir}/cli" |
Artem Senichev | 8574e7e | 2020-05-08 12:33:35 +0300 | [diff] [blame] | 30 | |
Alexander Filippov | 069dc59 | 2021-07-21 11:40:06 +0300 | [diff] [blame] | 31 | MACHINE_NAME ?= "${MACHINE}" |
Artem Senichev | 8574e7e | 2020-05-08 12:33:35 +0300 | [diff] [blame] | 32 | # Custom installation procedure |
| 33 | do_install() { |
| 34 | ${B}/install.sh \ |
| 35 | --dir ${D} \ |
Alexander Filippov | 069dc59 | 2021-07-21 11:40:06 +0300 | [diff] [blame] | 36 | --machine ${@'${MACHINE_NAME}'.split('-')[0]} \ |
Artem Senichev | 8574e7e | 2020-05-08 12:33:35 +0300 | [diff] [blame] | 37 | --admin priv-admin \ |
| 38 | --operator priv-operator \ |
| 39 | --user priv-user |
| 40 | } |
| 41 | |
| 42 | # Source code repository |
| 43 | S = "${WORKDIR}/git" |
| 44 | SRC_URI = "git://github.com/YADRO-KNS/obmc-yadro-cli" |
Alexander Filippov | 069dc59 | 2021-07-21 11:40:06 +0300 | [diff] [blame] | 45 | SRCREV = "76743c3706516bae6b2bb8749706b4ea673e9358" |