blob: 0f2dc8d40ee86ece3cf257016240505db160ccfe [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 Williamsb7d30152016-08-13 09:04:13 -050017SRCREV = "6221ce9483f9431061223f635a4dbd82e44dc75b"
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"