1SUMMARY = "Phosphor OpenBMC Mt.Jade Platform Init Service"
2DESCRIPTION = "Phosphor OpenBMC Mt.Jade Platform Init Daemon"
3
4PR = "r1"
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
7
8inherit systemd
9inherit obmc-phosphor-systemd
10
11DEPENDS += "systemd"
12RDEPENDS:${PN} += "libsystemd"
13RDEPENDS:${PN} += "bash"
14
15SRC_URI = " \
16    file://ampere_platform_init.sh \
17    file://mtjade_platform_gpios_init.sh \
18    file://ampere-platform-init.service \
19    "
20
21SYSTEMD_PACKAGES = "${PN}"
22SYSTEMD_SERVICE:${PN} = "ampere-platform-init.service"
23
24do_install () {
25    install -d ${D}${sbindir}
26    install -m 0755 ${WORKDIR}/ampere_platform_init.sh ${D}${sbindir}/
27    install -d ${D}${systemd_unitdir}/system/
28    install -m 0644 ${WORKDIR}/ampere-platform-init.service ${D}${systemd_unitdir}/system
29    install -m 0755 ${WORKDIR}/mtjade_platform_gpios_init.sh ${D}${sbindir}/platform_gpios_init.sh
30}
31