blob: 12a5c09a6d347a1cdc0dcc4040f62ec1e0144184 [file] [log] [blame]
Chanh Nguyen2fc68eb2022-04-28 09:11:28 +00001SUMMARY = "Phosphor OpenBMC Platform Init Service"
2DESCRIPTION = "Phosphor OpenBMC 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.service \
17 file://ampere-bmc-heartbeat.service \
18 file://ampere_platform_init.sh \
19 file://ampere_bmc_heartbeat.sh \
20 file://${MACHINE}_platform_gpios_init.sh \
21 file://gpio-lib.sh \
Chau Lyb10e6e72023-04-13 04:40:02 +000022 file://ampere_uart_console_setup.sh \
23 file://ampere_uartmux_ctrl.sh \
Chanh Nguyen2fc68eb2022-04-28 09:11:28 +000024 "
25SYSTEMD_PACKAGES = "${PN}"
26SYSTEMD_SERVICE:${PN} = "ampere-platform-init.service ampere-bmc-heartbeat.service"
27
28do_install () {
29 install -d ${D}${sbindir}
30 install -m 0755 ${WORKDIR}/gpio-lib.sh ${D}${sbindir}/
31 install -m 0755 ${WORKDIR}/ampere_platform_init.sh ${D}${sbindir}/
32 install -m 0755 ${WORKDIR}/ampere_bmc_heartbeat.sh ${D}${sbindir}/
33 install -m 0755 ${WORKDIR}/${MACHINE}_platform_gpios_init.sh ${D}${sbindir}/platform_gpios_init.sh
Chau Lyb10e6e72023-04-13 04:40:02 +000034 install -m 0755 ${WORKDIR}/ampere_uart_console_setup.sh ${D}${sbindir}/
35 install -m 0755 ${WORKDIR}/ampere_uartmux_ctrl.sh ${D}/${sbindir}/
Chanh Nguyen2fc68eb2022-04-28 09:11:28 +000036 install -d ${D}${systemd_unitdir}/system/
37 install -m 0644 ${WORKDIR}/ampere-platform-init.service ${D}${systemd_unitdir}/system
38}
39