diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-bsp/formfactor/files/config | |
download | poky-c527fd1f14c27855a37f2e8ac5346ce8d940ced2.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-bsp/formfactor/files/config')
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/config | 50 |
1 files changed, 50 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..41066def97 --- /dev/null +++ b/meta/recipes-bsp/formfactor/files/config | |||
@@ -0,0 +1,50 @@ | |||
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=0 | ||
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 [ -e "/dev/fb" ]; then | ||
32 | if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then | ||
33 | DISPLAY_WIDTH_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $2 }'` | ||
34 | fi | ||
35 | |||
36 | if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then | ||
37 | DISPLAY_HEIGHT_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $3 }'` | ||
38 | fi | ||
39 | |||
40 | if [ -z "$DISPLAY_BPP" ]; then | ||
41 | DISPLAY_BPP=`/usr/sbin/fbset | grep geometry | awk '{ print $6 }'` | ||
42 | fi | ||
43 | fi | ||
44 | |||
45 | # | ||
46 | # No way to guess these or have any defaults | ||
47 | # | ||
48 | #DISPLAY_WIDTH_MM | ||
49 | #DISPLAY_HEIGHT_MM | ||
50 | #DISPLAY_SUBPIXEL_ORDER= | ||