summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/formfactor/files/config
blob: e936916b43b2a18848ddc774159155323f56b408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh

if [ -e /etc/formfactor/machconfig ]; then
    . /etc/formfactor/machconfig
fi

if [ -z "$HAVE_TOUCHSCREEN" ]; then
    HAVE_TOUCHSCREEN=0
fi

if [ -z "$HAVE_KEYBOARD" ]; then
    HAVE_KEYBOARD=0
fi

if [ -z "$HAVE_KEYBOARD_PORTRAIT" ]; then
    HAVE_KEYBOARD_PORTRAIT=0
fi

if [ -z "$HAVE_KEYBOARD_LANDSCAPE" ]; then
    HAVE_KEYBOARD_LANDSCAPE=0
fi

if [ -z "$DISPLAY_CAN_ROTATE" ]; then
    DISPLAY_CAN_ROTATE=0
fi

if [ -z "$DISPLAY_ORIENTATION" ]; then
    DISPLAY_ORIENTATION=0
fi

if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then
    DISPLAY_WIDTH_PIXELS=`fbset | grep geometry | awk '{ print $2 }'`
fi

if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then
    DISPLAY_HEIGHT_PIXELS=`fbset | grep geometry | awk '{ print $3 }'`
fi

if [ -z "$DISPLAY_BPP" ]; then
    DISPLAY_BPP=`fbset | grep geometry | awk '{ print $6 }'`
fi

# 
# No way to guess these or have any defaults
#
#DISPLAY_WIDTH_MM
#DISPLAY_HEIGHT_MM
#DISPLAY_SUBPIXEL_ORDER=