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 \ |
Andrei Kartashev | 4e4ce6f | 2021-12-09 12:46:49 +0300 | [diff] [blame] | 17 | obmc-yadro-lsinventory \ |
Alexander Filippov | 69f2c78 | 2020-10-27 16:01:14 +0300 | [diff] [blame] | 18 | obmc-yadro-lssensors \ |
| 19 | obmc-yadro-netconfig \ |
Alexander Filippov | 069dc59 | 2021-07-21 11:40:06 +0300 | [diff] [blame] | 20 | phosphor-debug-collector-dreport \ |
| 21 | phosphor-debug-collector-scripts \ |
Alexander Filippov | 69f2c78 | 2020-10-27 16:01:14 +0300 | [diff] [blame] | 22 | 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 Senichev | 8574e7e | 2020-05-08 12:33:35 +0300 | [diff] [blame] | 28 | |
Alexander Filippov | ad7324a | 2020-09-30 12:59:16 +0300 | [diff] [blame] | 29 | # Directory with command handlers |
Andrei Kartashev | 0f66db4 | 2021-08-17 21:47:15 +0300 | [diff] [blame] | 30 | FILES:${PN} += "${datadir}/cli" |
Artem Senichev | 8574e7e | 2020-05-08 12:33:35 +0300 | [diff] [blame] | 31 | |
Alexander Filippov | 069dc59 | 2021-07-21 11:40:06 +0300 | [diff] [blame] | 32 | MACHINE_NAME ?= "${MACHINE}" |
Artem Senichev | 8574e7e | 2020-05-08 12:33:35 +0300 | [diff] [blame] | 33 | # Custom installation procedure |
| 34 | do_install() { |
| 35 | ${B}/install.sh \ |
| 36 | --dir ${D} \ |
Alexander Filippov | 069dc59 | 2021-07-21 11:40:06 +0300 | [diff] [blame] | 37 | --machine ${@'${MACHINE_NAME}'.split('-')[0]} \ |
Artem Senichev | 8574e7e | 2020-05-08 12:33:35 +0300 | [diff] [blame] | 38 | --admin priv-admin \ |
| 39 | --operator priv-operator \ |
| 40 | --user priv-user |
| 41 | } |
| 42 | |
| 43 | # Source code repository |
| 44 | S = "${WORKDIR}/git" |
| 45 | SRC_URI = "git://github.com/YADRO-KNS/obmc-yadro-cli" |
Andrei Kartashev | 4e4ce6f | 2021-12-09 12:46:49 +0300 | [diff] [blame] | 46 | SRCREV = "ce70f4f732114b1989c63792907b84a3f6e91f84" |