Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 1 | SUMMARY = "OpenBMC console daemon" |
| 2 | DESCRIPTION = "Daemon to handle UART console connections" |
| 3 | HOMEPAGE = "http://github.com/openbmc/obmc-console" |
| 4 | PR = "r1" |
| 5 | |
| 6 | inherit obmc-phosphor-license |
| 7 | inherit obmc-phosphor-systemd |
| 8 | inherit autotools |
| 9 | |
| 10 | TARGET_CFLAGS += "-fpic -O2" |
| 11 | |
| 12 | SRC_URI += "git://github.com/openbmc/obmc-console" |
Jeremy Kerr | ed9fafd | 2016-04-12 13:10:12 +0800 | [diff] [blame] | 13 | SRC_URI += "file://${PN}.conf \ |
| 14 | file://obmc-console-ssh.socket \ |
| 15 | file://obmc-console-ssh@.service" |
| 16 | |
Jeremy Kerr | 8c94019 | 2016-04-12 15:59:52 +0800 | [diff] [blame] | 17 | SRCREV = "2eacda524e98c7964e542e01aabf82360cf60344" |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 18 | |
Jeremy Kerr | ed9fafd | 2016-04-12 13:10:12 +0800 | [diff] [blame] | 19 | FILES_${PN} += "${systemd_unitdir}/system/obmc-console-ssh@.service \ |
| 20 | ${systemd_unitdir}/system/obmc-console-ssh.socket" |
| 21 | |
| 22 | SYSTEMD_SERVICE_${PN} = "${BPN}.service ${BPN}-ssh.socket" |
| 23 | |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 24 | do_install_append() { |
| 25 | install -m 0755 -d ${D}${sysconfdir} |
| 26 | install -m 0644 ${WORKDIR}/${PN}.conf ${D}${sysconfdir}/${PN}.conf |
Jeremy Kerr | ed9fafd | 2016-04-12 13:10:12 +0800 | [diff] [blame] | 27 | |
| 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 Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | S = "${WORKDIR}/git" |