diff options
Diffstat (limited to 'meta-phosphor')
4 files changed, 34 insertions, 0 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-image.bbclass b/meta-phosphor/classes/obmc-phosphor-image.bbclass index 164da33183..ce54777bc9 100644 --- a/meta-phosphor/classes/obmc-phosphor-image.bbclass +++ b/meta-phosphor/classes/obmc-phosphor-image.bbclass @@ -42,6 +42,7 @@ IMAGE_INSTALL += " \ i2c-tools \ screen \ inarp \ + obmc-console \ " def build_overlay(d): diff --git a/meta-phosphor/common/recipes-phosphor/obmc-console/obmc-console.bb b/meta-phosphor/common/recipes-phosphor/obmc-console/obmc-console.bb new file mode 100644 index 0000000000..6fe3bdee1f --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/obmc-console/obmc-console.bb @@ -0,0 +1,21 @@ +SUMMARY = "OpenBMC console daemon" +DESCRIPTION = "Daemon to handle UART console connections" +HOMEPAGE = "http://github.com/openbmc/obmc-console" +PR = "r1" + +inherit obmc-phosphor-license +inherit obmc-phosphor-systemd +inherit autotools + +TARGET_CFLAGS += "-fpic -O2" + +SRC_URI += "git://github.com/openbmc/obmc-console" +SRC_URI += "file://${PN}.conf" +SRCREV = "54e9569d14b127806e45e1c17ec4a1f5f7271d3f" + +do_install_append() { + install -m 0755 -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/${PN}.conf ${D}${sysconfdir}/${PN}.conf +} + +S = "${WORKDIR}/git" diff --git a/meta-phosphor/common/recipes-phosphor/obmc-console/obmc-console/obmc-console.conf b/meta-phosphor/common/recipes-phosphor/obmc-console/obmc-console/obmc-console.conf new file mode 100644 index 0000000000..d324efce5b --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/obmc-console/obmc-console/obmc-console.conf @@ -0,0 +1,3 @@ +device = ttyS5 +lpc-address = 0x3f8 +sirq = 4 diff --git a/meta-phosphor/common/recipes-phosphor/obmc-console/obmc-console/obmc-console.service b/meta-phosphor/common/recipes-phosphor/obmc-console/obmc-console/obmc-console.service new file mode 100644 index 0000000000..4e08541987 --- /dev/null +++ b/meta-phosphor/common/recipes-phosphor/obmc-console/obmc-console/obmc-console.service @@ -0,0 +1,9 @@ +[Unit] +Description=OpenBMC console daemon + +[Service] +ExecStart=/usr/sbin/obmc-console-server +Restart=always + +[Install] +WantedBy=multi-user.target |