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" |
Patrick Venture | e7a76eb | 2018-11-03 09:41:57 -0700 | [diff] [blame] | 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc" |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 7 | |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 8 | inherit obmc-phosphor-systemd |
Cheng C Yang | 5e9d339 | 2019-01-30 14:31:56 +0800 | [diff] [blame] | 9 | inherit autotools pkgconfig |
Ratan Gupta | 653779c | 2016-10-01 14:57:15 -0500 | [diff] [blame] | 10 | inherit obmc-phosphor-discovery-service |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 11 | |
| 12 | TARGET_CFLAGS += "-fpic -O2" |
| 13 | |
Cheng C Yang | 5e9d339 | 2019-01-30 14:31:56 +0800 | [diff] [blame] | 14 | DEPENDS += "autoconf-archive-native \ |
| 15 | systemd \ |
| 16 | " |
Matthew Barth | 3cc6f40 | 2016-09-26 16:26:27 -0500 | [diff] [blame] | 17 | |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 18 | SRC_URI += "git://github.com/openbmc/obmc-console" |
Brad Bishop | 530eb73 | 2016-08-30 14:14:24 -0400 | [diff] [blame] | 19 | SRC_URI += "file://${PN}.conf" |
Jeremy Kerr | ed9fafd | 2016-04-12 13:10:12 +0800 | [diff] [blame] | 20 | |
Andrew Geissler | 78289c2 | 2019-03-05 01:31:41 +0000 | [diff] [blame^] | 21 | SRCREV = "f9c8f6ca864a44c78daa0e5c79896d1c7fd4ad07" |
Brad Bishop | bd6ae76 | 2018-04-12 11:11:49 -0400 | [diff] [blame] | 22 | PV = "1.0+git${SRCPV}" |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 23 | |
Ratan Gupta | 653779c | 2016-10-01 14:57:15 -0500 | [diff] [blame] | 24 | REGISTERED_SERVICES_${PN} += "obmc_console:tcp:2200" |
Vishwanatha Subbanna | 5f3a19b | 2016-10-01 11:34:42 -0500 | [diff] [blame] | 25 | OBMC_CONSOLE_HOST_TTY ?= "ttyVUART0" |
| 26 | 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] | 27 | 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] | 28 | |
Brad Bishop | 530eb73 | 2016-08-30 14:14:24 -0400 | [diff] [blame] | 29 | SYSTEMD_SERVICE_${PN} = " \ |
Vishwanatha Subbanna | 5f3a19b | 2016-10-01 11:34:42 -0500 | [diff] [blame] | 30 | ${PN}@.service \ |
| 31 | ${PN}@${OBMC_CONSOLE_HOST_TTY}.service \ |
Brad Bishop | 530eb73 | 2016-08-30 14:14:24 -0400 | [diff] [blame] | 32 | ${PN}-ssh.socket \ |
| 33 | ${PN}-ssh@.service \ |
| 34 | " |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 35 | do_install_append() { |
| 36 | install -m 0755 -d ${D}${sysconfdir} |
| 37 | install -m 0644 ${WORKDIR}/${PN}.conf ${D}${sysconfdir}/${PN}.conf |
Jeremy Kerr | 49208ee | 2016-03-17 17:35:27 +0800 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | S = "${WORKDIR}/git" |