diff options
Diffstat (limited to 'meta/recipes-bsp/formfactor/files/config')
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/config | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-bsp/formfactor/files/config b/meta/recipes-bsp/formfactor/files/config new file mode 100755 index 0000000000..ed15d9e031 --- /dev/null +++ b/meta/recipes-bsp/formfactor/files/config | |||
@@ -0,0 +1,48 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -e /etc/formfactor/machconfig ]; then | ||
4 | . /etc/formfactor/machconfig | ||
5 | fi | ||
6 | |||
7 | if [ -z "$HAVE_TOUCHSCREEN" ]; then | ||
8 | HAVE_TOUCHSCREEN=1 | ||
9 | fi | ||
10 | |||
11 | if [ -z "$HAVE_KEYBOARD" ]; then | ||
12 | HAVE_KEYBOARD=0 | ||
13 | fi | ||
14 | |||
15 | if [ -z "$HAVE_KEYBOARD_PORTRAIT" ]; then | ||
16 | HAVE_KEYBOARD_PORTRAIT=0 | ||
17 | fi | ||
18 | |||
19 | if [ -z "$HAVE_KEYBOARD_LANDSCAPE" ]; then | ||
20 | HAVE_KEYBOARD_LANDSCAPE=0 | ||
21 | fi | ||
22 | |||
23 | if [ -z "$DISPLAY_CAN_ROTATE" ]; then | ||
24 | DISPLAY_CAN_ROTATE=0 | ||
25 | fi | ||
26 | |||
27 | if [ -z "$DISPLAY_ORIENTATION" ]; then | ||
28 | DISPLAY_ORIENTATION=0 | ||
29 | fi | ||
30 | |||
31 | if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then | ||
32 | DISPLAY_WIDTH_PIXELS=`fbset | grep geometry | awk '{ print $2 }'` | ||
33 | fi | ||
34 | |||
35 | if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then | ||
36 | DISPLAY_HEIGHT_PIXELS=`fbset | grep geometry | awk '{ print $3 }'` | ||
37 | fi | ||
38 | |||
39 | if [ -z "$DISPLAY_BPP" ]; then | ||
40 | DISPLAY_BPP=`fbset | grep geometry | awk '{ print $6 }'` | ||
41 | fi | ||
42 | |||
43 | # | ||
44 | # No way to guess these or have any defaults | ||
45 | # | ||
46 | #DISPLAY_WIDTH_MM | ||
47 | #DISPLAY_HEIGHT_MM | ||
48 | #DISPLAY_SUBPIXEL_ORDER= | ||