blob: 006f9418e579edcc5e11fee4323d9db6b0e0f3b0 [file] [log] [blame]
Jeremy Kerr882199e2016-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"
Brad Bishop75f03872018-11-03 09:41:57 -07005LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc"
Jeremy Kerr882199e2016-03-17 17:35:27 +08007
Jeremy Kerr882199e2016-03-17 17:35:27 +08008inherit obmc-phosphor-systemd
Cheng C Yangfac98702019-01-30 14:31:56 +08009inherit autotools pkgconfig
Ratan Guptadf7dfd42016-10-01 14:57:15 -050010inherit obmc-phosphor-discovery-service
Jeremy Kerr882199e2016-03-17 17:35:27 +080011
12TARGET_CFLAGS += "-fpic -O2"
13
Cheng C Yangfac98702019-01-30 14:31:56 +080014DEPENDS += "autoconf-archive-native \
15 systemd \
16 "
Matthew Barth3e20a722016-09-26 16:26:27 -050017
Jeremy Kerr882199e2016-03-17 17:35:27 +080018SRC_URI += "git://github.com/openbmc/obmc-console"
Brad Bishopf75c9602016-08-30 14:14:24 -040019SRC_URI += "file://${PN}.conf"
Jeremy Kerr2a9a9d72016-04-12 13:10:12 +080020
Andrew Geissler3b286022019-03-25 02:01:45 +000021SRCREV = "1cecc5deeae236e9886f624ea7168e075f057047"
Brad Bishop586e2262018-04-12 11:11:49 -040022PV = "1.0+git${SRCPV}"
Jeremy Kerr882199e2016-03-17 17:35:27 +080023
Ratan Guptadf7dfd42016-10-01 14:57:15 -050024REGISTERED_SERVICES_${PN} += "obmc_console:tcp:2200"
Vishwanatha Subbannae4bfd682016-10-01 11:34:42 -050025OBMC_CONSOLE_HOST_TTY ?= "ttyVUART0"
26SYSTEMD_SUBSTITUTIONS += "OBMC_CONSOLE_HOST_TTY:${OBMC_CONSOLE_HOST_TTY}:${PN}-ssh@.service"
Yi Lif1c10dd2016-10-21 12:08:47 +080027SYSTEMD_SUBSTITUTIONS += "OBMC_CONSOLE_HOST_TTY:${OBMC_CONSOLE_HOST_TTY}:${PN}-ssh.socket"
Ratan Guptadf7dfd42016-10-01 14:57:15 -050028
Brad Bishopf75c9602016-08-30 14:14:24 -040029SYSTEMD_SERVICE_${PN} = " \
Vishwanatha Subbannae4bfd682016-10-01 11:34:42 -050030 ${PN}@.service \
31 ${PN}@${OBMC_CONSOLE_HOST_TTY}.service \
Brad Bishopf75c9602016-08-30 14:14:24 -040032 ${PN}-ssh.socket \
33 ${PN}-ssh@.service \
34 "
Jeremy Kerr882199e2016-03-17 17:35:27 +080035do_install_append() {
36 install -m 0755 -d ${D}${sysconfdir}
37 install -m 0644 ${WORKDIR}/${PN}.conf ${D}${sysconfdir}/${PN}.conf
Jeremy Kerr882199e2016-03-17 17:35:27 +080038}
39
40S = "${WORKDIR}/git"