diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-20 16:44:36 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-21 12:15:30 +0100 |
commit | ec102f50704dff85db11a808a10a3ff5bcb76041 (patch) | |
tree | 167b2a20b4e79b678552f87a5e0aa58810eb6a2e /meta/recipes-bsp | |
parent | 48619958d53cbec888a0a6806c5e494291e9e227 (diff) | |
download | poky-ec102f50704dff85db11a808a10a3ff5bcb76041.tar.gz |
formfactor: Clean up errors on machines without framebuffers
If fbset can't find a framebuffer we end up with a mess on the console.
We might as well avoid doing this on machines without a framebuffer.
(From OE-Core rev: f5c39ea822b440ae4bdd38be94fcf8a2814d2229)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/config | 22 | ||||
-rw-r--r-- | meta/recipes-bsp/formfactor/formfactor_0.0.bb | 2 |
2 files changed, 13 insertions, 11 deletions
diff --git a/meta/recipes-bsp/formfactor/files/config b/meta/recipes-bsp/formfactor/files/config index a3f762a0f1..41066def97 100755 --- a/meta/recipes-bsp/formfactor/files/config +++ b/meta/recipes-bsp/formfactor/files/config | |||
@@ -28,16 +28,18 @@ if [ -z "$DISPLAY_ORIENTATION" ]; then | |||
28 | DISPLAY_ORIENTATION=0 | 28 | DISPLAY_ORIENTATION=0 |
29 | fi | 29 | fi |
30 | 30 | ||
31 | if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then | 31 | if [ -e "/dev/fb" ]; then |
32 | DISPLAY_WIDTH_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $2 }'` | 32 | if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then |
33 | fi | 33 | DISPLAY_WIDTH_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $2 }'` |
34 | 34 | fi | |
35 | if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then | 35 | |
36 | DISPLAY_HEIGHT_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $3 }'` | 36 | if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then |
37 | fi | 37 | DISPLAY_HEIGHT_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $3 }'` |
38 | 38 | fi | |
39 | if [ -z "$DISPLAY_BPP" ]; then | 39 | |
40 | DISPLAY_BPP=`/usr/sbin/fbset | grep geometry | awk '{ print $6 }'` | 40 | if [ -z "$DISPLAY_BPP" ]; then |
41 | DISPLAY_BPP=`/usr/sbin/fbset | grep geometry | awk '{ print $6 }'` | ||
42 | fi | ||
41 | fi | 43 | fi |
42 | 44 | ||
43 | # | 45 | # |
diff --git a/meta/recipes-bsp/formfactor/formfactor_0.0.bb b/meta/recipes-bsp/formfactor/formfactor_0.0.bb index 31b4490d15..69c58f22e9 100644 --- a/meta/recipes-bsp/formfactor/formfactor_0.0.bb +++ b/meta/recipes-bsp/formfactor/formfactor_0.0.bb | |||
@@ -3,7 +3,7 @@ SECTION = "base" | |||
3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ | 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ |
5 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 5 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
6 | PR = "r20" | 6 | PR = "r21" |
7 | 7 | ||
8 | SRC_URI = "file://config file://machconfig" | 8 | SRC_URI = "file://config file://machconfig" |
9 | S = "${WORKDIR}" | 9 | S = "${WORKDIR}" |