diff options
Diffstat (limited to 'recipes/fbset')
-rw-r--r-- | recipes/fbset/fbset-init.bb | 19 | ||||
-rw-r--r-- | recipes/fbset/fbset-init/default-fbset | 3 | ||||
-rwxr-xr-x | recipes/fbset/fbset-init/fbset.sh | 4 | ||||
-rw-r--r-- | recipes/fbset/fbset-modes.bb | 14 | ||||
-rw-r--r-- | recipes/fbset/fbset-modes/fb.modes | 3 | ||||
-rw-r--r-- | recipes/fbset/fbset-modes/om-gta01/fb.modes | 29 | ||||
-rw-r--r-- | recipes/fbset/fbset-modes/qemuarm/fb.modes | 17 | ||||
-rw-r--r-- | recipes/fbset/fbset_2.1.bb | 33 | ||||
-rw-r--r-- | recipes/fbset/files/makefile.patch | 11 |
9 files changed, 133 insertions, 0 deletions
diff --git a/recipes/fbset/fbset-init.bb b/recipes/fbset/fbset-init.bb new file mode 100644 index 0000000000..f04691d793 --- /dev/null +++ b/recipes/fbset/fbset-init.bb @@ -0,0 +1,19 @@ +DESCRIPTION = "Set framebuffer mode during boot" +PR = "r1" + +SRC_URI = "file://fbset.sh file://default-fbset" + +inherit update-rc.d + +INITSCRIPT_NAME = "fbset.sh" +INITSCRIPT_PARAMS = "start 0 S ." + +do_install() { + install -d ${D}${sysconfdir}/init.d + install -d ${D}${sysconfdir}/default + install -m 0755 ${WORKDIR}/fbset.sh ${D}${sysconfdir}/init.d/ + install -m 0644 ${WORKDIR}/default-fbset ${D}${sysconfdir}/default/fbset +} + +PACKAGE_ARCH = "all" +CONFFILES_${PN} = "${sysconfdir}/default/fbset" diff --git a/recipes/fbset/fbset-init/default-fbset b/recipes/fbset/fbset-init/default-fbset new file mode 100644 index 0000000000..5c163a7f7c --- /dev/null +++ b/recipes/fbset/fbset-init/default-fbset @@ -0,0 +1,3 @@ +# Uncomment and set value below to one of modes from /etc/fb.modes +# or alternatively to "-xres <width> -yres <height>" +#FBSET_MODE="vga" diff --git a/recipes/fbset/fbset-init/fbset.sh b/recipes/fbset/fbset-init/fbset.sh new file mode 100755 index 0000000000..900a1d4182 --- /dev/null +++ b/recipes/fbset/fbset-init/fbset.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +. /etc/default/fbset +[ -n "$FBSET_MODE" ] && fbset -n $FBSET_MODE diff --git a/recipes/fbset/fbset-modes.bb b/recipes/fbset/fbset-modes.bb new file mode 100644 index 0000000000..403751c90a --- /dev/null +++ b/recipes/fbset/fbset-modes.bb @@ -0,0 +1,14 @@ +DESCRIPTION = "Default display timings and resolutions for fbset" +PV = "0.1.0" +PR = "r3" + +SRC_URI = "file://fb.modes" + +do_install() { + install -d ${D}${sysconfdir} + install -m 0644 ${WORKDIR}/fb.modes ${D}${sysconfdir} +} + +PACKAGE_ARCH = "all" +CONFFILES_${PN} = "${sysconfdir}/fb.modes" + diff --git a/recipes/fbset/fbset-modes/fb.modes b/recipes/fbset/fbset-modes/fb.modes new file mode 100644 index 0000000000..ba5e6ed719 --- /dev/null +++ b/recipes/fbset/fbset-modes/fb.modes @@ -0,0 +1,3 @@ +# By default there is nothing in this file just a reminder to define some +# modes in OE + diff --git a/recipes/fbset/fbset-modes/om-gta01/fb.modes b/recipes/fbset/fbset-modes/om-gta01/fb.modes new file mode 100644 index 0000000000..446d23dd8e --- /dev/null +++ b/recipes/fbset/fbset-modes/om-gta01/fb.modes @@ -0,0 +1,29 @@ +# Timings for GTA01 VGA and QVGA mode + +mode "480x640" + # D: 26.000 MHz, H: 43.334 kHz, V: 65.657 Hz + geometry 480 640 480 640 16 + timings 38461 104 8 2 16 8 2 + accel false +endmode + +mode "vga" + # D: 26.000 MHz, H: 43.334 kHz, V: 65.657 Hz + geometry 480 640 480 640 16 + timings 38461 104 8 2 16 8 2 + accel false +endmode + +mode "240x320" + # D: 8.475 MHz, H: 24.635 kHz, V: 75.569 Hz + geometry 240 320 240 320 16 + timings 118000 88 8 2 2 8 2 + accel false +endmode + +mode "qvga" + # D: 8.475 MHz, H: 24.635 kHz, V: 75.569 Hz + geometry 240 320 240 320 16 + timings 118000 88 8 2 2 8 2 + accel false +endmode diff --git a/recipes/fbset/fbset-modes/qemuarm/fb.modes b/recipes/fbset/fbset-modes/qemuarm/fb.modes new file mode 100644 index 0000000000..1114564797 --- /dev/null +++ b/recipes/fbset/fbset-modes/qemuarm/fb.modes @@ -0,0 +1,17 @@ +# QEMU versatilepb machine, qemuarm in OE + +mode "vga" "640x480" + geometry 640 480 640 480 16 +endmode + +mode "vga-portrait" "480x640" + geometry 480 640 480 640 16 +endmode + +mode "qvga" "320x240" + geometry 320 240 320 240 16 +endmode + +mode "qvga-portrait" "240x320" + geometry 240 320 240 320 16 +endmode diff --git a/recipes/fbset/fbset_2.1.bb b/recipes/fbset/fbset_2.1.bb new file mode 100644 index 0000000000..9037350bad --- /dev/null +++ b/recipes/fbset/fbset_2.1.bb @@ -0,0 +1,33 @@ +# +# Copyright Matthias Hentges <devel@hentges.net> (c) 2006 +# License: MIT (see http://www.opensource.org/licenses/mit-license.php for a copy of the license) +# +# Filename: fbset_2.1.bb +# Date: 28-May-06 + +DESCRIPTION = "The fbset console tool" +LICENSE = "GPL" +RRECOMMENDS = "fbset-modes" + +PR = "r2" + +SRC_URI = "http://ftp.debian.org/debian/pool/main/f/fbset/fbset_2.1.orig.tar.gz \ + file://makefile.patch;patch=1" + +inherit autotools update-alternatives + +PARALLEL_MAKE = "" + +do_install() { + install -d ${D}/usr/sbin ${D}/usr/share/man/man8 ${D}/usr/share/man/man5 + install -m 0755 ${WORKDIR}/${P}/fbset ${D}/usr/sbin/fbset.real + install -m 0644 ${WORKDIR}/${P}/*.5 ${D}/usr/share/man/man5 + install -m 0644 ${WORKDIR}/${P}/*.8 ${D}/usr/share/man/man8 +} + +ALTERNATIVE_NAME = "fbset" +ALTERNATIVE_LINK = "${sbindir}/${ALTERNATIVE_NAME}" +ALTERNATIVE_PATH = "${sbindir}/fbset.real" +ALTERNATIVE_PRIORITY = "55" + + diff --git a/recipes/fbset/files/makefile.patch b/recipes/fbset/files/makefile.patch new file mode 100644 index 0000000000..82b1c61e9c --- /dev/null +++ b/recipes/fbset/files/makefile.patch @@ -0,0 +1,11 @@ +--- fbset-2.1/Makefile.orig 2006-05-28 04:04:27.412095480 +0200 ++++ fbset-2.1/Makefile 2006-05-28 04:14:05.379231120 +0200 +@@ -2,7 +2,7 @@ + # Linux Frame Buffer Device Configuration + # + +-CC = gcc -Wall -O2 -I. ++CFLAGS = -Wall -O2 -I. + BISON = bison -d + FLEX = flex + INSTALL = install |