summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmeta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-bi14
-rw-r--r--meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-static-background.pngbin0 -> 22524 bytes
-rw-r--r--meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm.service8
-rw-r--r--meta-rcs/meta-common/recipes-phosphor/video/fbterm_git.bbappend19
-rw-r--r--meta-rcs/meta-common/recipes-phosphor/video/fbv_git.bb31
5 files changed, 72 insertions, 0 deletions
diff --git a/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-bi b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-bi
new file mode 100755
index 000000000..8bb3c4728
--- /dev/null
+++ b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-bi
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+# fbterm-bi: a wrapper script to enable background image with fbterm
+# usage: fbterm-bi /path/to/image fbterm-options
+
+echo -ne "\e[?25l" # hide cursor
+
+fbv -ciuker "$1" << EOF
+q
+EOF
+
+shift
+export FBTERM_BACKGROUND_IMAGE=1
+exec fbterm "$@"
diff --git a/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-static-background.png b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-static-background.png
new file mode 100644
index 000000000..d4388590a
--- /dev/null
+++ b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm-static-background.png
Binary files differ
diff --git a/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm.service b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm.service
new file mode 100644
index 000000000..efcc02046
--- /dev/null
+++ b/meta-rcs/meta-common/recipes-phosphor/video/fbterm/fbterm.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=UART renderer
+Requires=obmc-console@ttyVUART0.service
+
+[Service]
+EnvironmentFile={envfiledir}/fbterm
+ExecStartPre=/usr/sbin/fbset $FB_MODE
+ExecStart=/usr/bin/fbterm-bi /usr/share/images/fbterm-static-background.png --write-only obmc-console-client --color-foreground=0 --color-background=7 --font-names=mono
diff --git a/meta-rcs/meta-common/recipes-phosphor/video/fbterm_git.bbappend b/meta-rcs/meta-common/recipes-phosphor/video/fbterm_git.bbappend
new file mode 100644
index 000000000..1b2b3bf21
--- /dev/null
+++ b/meta-rcs/meta-common/recipes-phosphor/video/fbterm_git.bbappend
@@ -0,0 +1,19 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/fbterm:"
+SRC_URI += "file://fbterm-static-background.png"
+SRC_URI += "file://fbterm.service"
+SRC_URI += "file://fbterm-bi"
+
+do_install_append() {
+ install -d ${D}${systemd_system_unitdir}
+ install -m 0644 ${WORKDIR}/fbterm.service ${D}${systemd_system_unitdir}
+
+ install -d ${D}/usr/share/images/
+ install -m 0644 ${WORKDIR}/fbterm-static-background.png ${D}/usr/share/images/
+
+ install -d ${D}/usr/bin/
+ install -m 0755 ${WORKDIR}/fbterm-bi ${D}/usr/bin/
+}
+
+FILES_${PN} += " /usr/share/images/* /usr/bin/*"
+
+RDEPENDS_${PN} += "bash fbv"
diff --git a/meta-rcs/meta-common/recipes-phosphor/video/fbv_git.bb b/meta-rcs/meta-common/recipes-phosphor/video/fbv_git.bb
new file mode 100644
index 000000000..1dd268a39
--- /dev/null
+++ b/meta-rcs/meta-common/recipes-phosphor/video/fbv_git.bb
@@ -0,0 +1,31 @@
+DESCRIPTION = "Frame Buffer Viewer"
+LICENSE = "GPL"
+LIC_FILES_CHKSUM = "file://COPYING;md5=130f9d9dddfebd2c6ff59165f066e41c"
+DEPENDS = "libpng jpeg"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/fbv_git:"
+
+SRC_URI += "git://scm.raptorcs.com/scm/git/fbv;protocol=https"
+SRCREV = "e0bfd6744c82dd0fd0fea9aa80fb0aafc361c327"
+
+CFLAGS += "-D_GNU_SOURCE -D__KERNEL_STRICT_NAMES"
+LDFLAGS += "-lpng"
+
+S = "${WORKDIR}/git"
+
+do_configure() {
+ CC="${CC}" ./configure
+}
+
+do_compile() {
+ oe_runmake CC="${CC}"
+}
+
+do_install() {
+ install -d ${D}${bindir}
+ install -m 0755 fbv ${D}${bindir}
+
+# man
+ install -d ${D}${mandir}/man1/
+ install -m 0644 fbv.1 ${D}${mandir}/man1/fbv.1
+}
OpenPOWER on IntegriCloud