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 |
Ratan Gupta | 653779c | 2016-10-01 14:57:15 -0500 | [diff] [blame] | 9 | inherit obmc-phosphor-discovery-service |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 10 | |
| 11 | TARGET_CFLAGS += "-fpic -O2" |
| 12 | |
Matthew Barth | 3cc6f40 | 2016-09-26 16:26:27 -0500 | [diff] [blame] | 13 | DEPENDS += "autoconf-archive-native" |
| 14 | |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 15 | SRC_URI += "git://github.com/openbmc/obmc-console" |
Brad Bishop | 530eb73 | 2016-08-30 14:14:24 -0400 | [diff] [blame] | 16 | SRC_URI += "file://${PN}.conf" |
Jeremy Kerr | ed9fafd | 2016-04-12 13:10:12 +0800 | [diff] [blame] | 17 | |
Andrew Geissler | 142f2e3 | 2018-07-25 21:00:03 -0500 | [diff] [blame^] | 18 | SRCREV = "3c89b263484128071343bdaf0b5f3a8dace32799" |
Brad Bishop | bd6ae76 | 2018-04-12 11:11:49 -0400 | [diff] [blame] | 19 | PV = "1.0+git${SRCPV}" |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 20 | |
Ratan Gupta | 653779c | 2016-10-01 14:57:15 -0500 | [diff] [blame] | 21 | REGISTERED_SERVICES_${PN} += "obmc_console:tcp:2200" |
Vishwanatha Subbanna | 5f3a19b | 2016-10-01 11:34:42 -0500 | [diff] [blame] | 22 | OBMC_CONSOLE_HOST_TTY ?= "ttyVUART0" |
| 23 | SYSTEMD_SUBSTITUTIONS += "OBMC_CONSOLE_HOST_TTY:${OBMC_CONSOLE_HOST_TTY}:${PN}-ssh@.service" |
Yi Li | 75ff3b9 | 2016-10-21 12:08:47 +0800 | [diff] [blame] | 24 | SYSTEMD_SUBSTITUTIONS += "OBMC_CONSOLE_HOST_TTY:${OBMC_CONSOLE_HOST_TTY}:${PN}-ssh.socket" |
Ratan Gupta | 653779c | 2016-10-01 14:57:15 -0500 | [diff] [blame] | 25 | |
Brad Bishop | 530eb73 | 2016-08-30 14:14:24 -0400 | [diff] [blame] | 26 | SYSTEMD_SERVICE_${PN} = " \ |
Vishwanatha Subbanna | 5f3a19b | 2016-10-01 11:34:42 -0500 | [diff] [blame] | 27 | ${PN}@.service \ |
| 28 | ${PN}@${OBMC_CONSOLE_HOST_TTY}.service \ |
Brad Bishop | 530eb73 | 2016-08-30 14:14:24 -0400 | [diff] [blame] | 29 | ${PN}-ssh.socket \ |
| 30 | ${PN}-ssh@.service \ |
| 31 | " |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 32 | do_install_append() { |
| 33 | install -m 0755 -d ${D}${sysconfdir} |
| 34 | install -m 0644 ${WORKDIR}/${PN}.conf ${D}${sysconfdir}/${PN}.conf |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 35 | } |
| 36 | |
| 37 | S = "${WORKDIR}/git" |