blob: 131c6c71d0384a45471fa01efd52d06065702400 [file] [log] [blame]
Jeremy Kerr49208ee2016-03-17 17:35:27 +08001SUMMARY = "OpenBMC console daemon"
2DESCRIPTION = "Daemon to handle UART console connections"
3HOMEPAGE = "http://github.com/openbmc/obmc-console"
4PR = "r1"
5
6inherit obmc-phosphor-license
7inherit obmc-phosphor-systemd
8inherit autotools
9
10TARGET_CFLAGS += "-fpic -O2"
11
12SRC_URI += "git://github.com/openbmc/obmc-console"
Jeremy Kerred9fafd2016-04-12 13:10:12 +080013SRC_URI += "file://${PN}.conf \
14 file://obmc-console-ssh.socket \
15 file://obmc-console-ssh@.service"
16
Patrick Williams02d6f492016-08-31 09:40:02 -050017SRCREV = "87e344cd6bd848f886e226c8d58ffe4da77ce4bc"
Jeremy Kerr49208ee2016-03-17 17:35:27 +080018
Jeremy Kerred9fafd2016-04-12 13:10:12 +080019FILES_${PN} += "${systemd_unitdir}/system/obmc-console-ssh@.service \
20 ${systemd_unitdir}/system/obmc-console-ssh.socket"
21
22SYSTEMD_SERVICE_${PN} = "${BPN}.service ${BPN}-ssh.socket"
23
Jeremy Kerr49208ee2016-03-17 17:35:27 +080024do_install_append() {
25 install -m 0755 -d ${D}${sysconfdir}
26 install -m 0644 ${WORKDIR}/${PN}.conf ${D}${sysconfdir}/${PN}.conf
Jeremy Kerred9fafd2016-04-12 13:10:12 +080027
28 # add additional unit files for ssh-based console server
29 install -d ${D}${systemd_unitdir}/system
30 install -m 0644 ${WORKDIR}/obmc-console-ssh@.service ${D}${systemd_unitdir}/system
31 install -m 0644 ${WORKDIR}/obmc-console-ssh.socket ${D}${systemd_unitdir}/system
32 sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
33 -e 's,@BINDIR@,${bindir},g' \
34 -e 's,@SBINDIR@,${sbindir},g' \
35 ${D}${systemd_unitdir}/system/obmc-console-ssh@.service \
36 ${D}${systemd_unitdir}/system/obmc-console-ssh.socket
Jeremy Kerr49208ee2016-03-17 17:35:27 +080037}
38
39S = "${WORKDIR}/git"