blob: e5553fe4373e871e070512430e4ca463f60a82fd [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
Jeremy Kerr8c940192016-04-12 15:59:52 +080017SRCREV = "2eacda524e98c7964e542e01aabf82360cf60344"
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"