Potin Lai | 3f1e637 | 2024-06-03 16:44:45 +0800 | [diff] [blame] | 1 | LICENSE = "Apache-2.0" |
| 2 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 3 | |
| 4 | inherit allarch systemd obmc-phosphor-systemd |
| 5 | |
| 6 | RDEPENDS:${PN} += "bash" |
| 7 | RDEPENDS:${PN} += "libgpiod-tools" |
| 8 | RDEPENDS:${PN} += "fb-common-functions" |
| 9 | |
| 10 | SRC_URI += " \ |
| 11 | file://catalina-sys-init.service \ |
| 12 | file://catalina-early-sys-init \ |
| 13 | file://standby-power-enable \ |
| 14 | " |
| 15 | |
| 16 | SYSTEMD_PACKAGES = "${PN}" |
| 17 | SYSTEMD_SERVICE:${PN}:append = " \ |
| 18 | catalina-sys-init.service \ |
| 19 | " |
| 20 | |
| 21 | do_install() { |
| 22 | CATALINA_LIBEXECDIR="${D}${libexecdir}/catalina" |
| 23 | install -d ${CATALINA_LIBEXECDIR} |
| 24 | install -m 0755 ${WORKDIR}/catalina-early-sys-init ${CATALINA_LIBEXECDIR} |
| 25 | install -m 0755 ${WORKDIR}/standby-power-enable ${CATALINA_LIBEXECDIR} |
| 26 | } |