Adriana Kobylak | 15a8b0e | 2020-06-02 13:18:36 -0500 | [diff] [blame] | 1 | SUMMARY = "Miscellaneous OpenBMC functions" |
| 2 | HOMEPAGE = "https://github.com/openbmc/phosphor-misc" |
| 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 5 | DEPENDS = "systemd" |
Andrew Geissler | 606d925 | 2022-12-12 09:50:22 -0600 | [diff] [blame^] | 6 | SRCREV = "37c76da7c277f3531f35ec726ac690e53ab4915a" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 7 | PACKAGECONFIG ??= " \ |
| 8 | first-boot-set-hostname \ |
| 9 | first-boot-set-mac \ |
| 10 | http-redirect-awk \ |
| 11 | usb-ctrl \ |
| 12 | " |
| 13 | PACKAGECONFIG[first-boot-set-hostname] = "-Dfirst-boot-set-hostname=enabled, -Dfirst-boot-set-hostname=disabled" |
| 14 | PACKAGECONFIG[first-boot-set-mac] = "-Dfirst-boot-set-mac=enabled, -Dfirst-boot-set-mac=disabled" |
| 15 | PACKAGECONFIG[http-redirect-awk] = "-Dhttp-redirect=enabled, -Dhttp-redirect=disabled" |
| 16 | PACKAGECONFIG[usb-ctrl] = "-Dusb-ctrl=enabled, -Dusb-ctrl=disabled" |
Adriana Kobylak | 15a8b0e | 2020-06-02 13:18:36 -0500 | [diff] [blame] | 17 | PV = "1.0+git${SRCPV}" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 18 | PR = "r1" |
Adriana Kobylak | 15a8b0e | 2020-06-02 13:18:36 -0500 | [diff] [blame] | 19 | |
Patrick Williams | bb99d22 | 2022-01-24 15:55:09 -0600 | [diff] [blame] | 20 | SRC_URI = "git://github.com/openbmc/phosphor-misc;branch=master;protocol=https" |
Adriana Kobylak | 15a8b0e | 2020-06-02 13:18:36 -0500 | [diff] [blame] | 21 | |
| 22 | S = "${WORKDIR}/git" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 23 | SYSTEMD_PACKAGES = "${PHOSPHOR_MISC_PACKAGES}" |
| 24 | SYSTEMD_SERVICE:${PN}-first-boot-set-hostname = "first-boot-set-hostname.service" |
| 25 | SYSTEMD_SERVICE:${PN}-first-boot-set-mac = "first-boot-set-mac@.service" |
| 26 | SYSTEMD_SERVICE:${PN}-http-redirect-awk = " \ |
| 27 | http-redirect@.service \ |
| 28 | http-redirect.socket \ |
| 29 | " |
Adriana Kobylak | 15a8b0e | 2020-06-02 13:18:36 -0500 | [diff] [blame] | 30 | |
| 31 | inherit meson |
| 32 | inherit pkgconfig |
| 33 | inherit systemd |
| 34 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 35 | PACKAGES = "${PHOSPHOR_MISC_PACKAGES}" |
| 36 | |
| 37 | RDEPENDS:${PN}-http-redirect-awk = "${VIRTUAL-RUNTIME_base-utils}" |
| 38 | |
| 39 | # first-boot-set-hostname |
| 40 | FILES:${PN}-first-boot-set-hostname = "${bindir}/first-boot-set-hostname.sh" |
| 41 | # first-boot-set-mac |
| 42 | FILES:${PN}-first-boot-set-mac = "${bindir}/first-boot-set-mac.sh" |
| 43 | # http-redirect-awk |
| 44 | FILES:${PN}-http-redirect-awk = "${bindir}/http-redirect.awk" |
| 45 | # usb-ctrl |
| 46 | FILES:${PN}-usb-ctrl = "${bindir}/usb-ctrl" |
Adriana Kobylak | 15a8b0e | 2020-06-02 13:18:36 -0500 | [diff] [blame] | 47 | |
| 48 | PHOSPHOR_MISC_PACKAGES = " \ |
| 49 | ${@bb.utils.contains('PACKAGECONFIG', 'first-boot-set-hostname', '${PN}-first-boot-set-hostname', '', d)} \ |
| 50 | ${@bb.utils.contains('PACKAGECONFIG', 'first-boot-set-mac', '${PN}-first-boot-set-mac', '', d)} \ |
| 51 | ${@bb.utils.contains('PACKAGECONFIG', 'http-redirect-awk', '${PN}-http-redirect-awk', '', d)} \ |
| 52 | ${@bb.utils.contains('PACKAGECONFIG', 'usb-ctrl', '${PN}-usb-ctrl', '', d)} \ |
| 53 | " |
Adriana Kobylak | 15a8b0e | 2020-06-02 13:18:36 -0500 | [diff] [blame] | 54 | PACKAGE_BEFORE_PN += "${PHOSPHOR_MISC_PACKAGES}" |