diff options
author | Richard Purdie <richard@openedhand.com> | 2007-05-23 09:51:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-05-23 09:51:31 +0000 |
commit | fbea27134575b28ef28b70a1d66e5c2814df3249 (patch) | |
tree | 7c5f647403dab01de6951fcf0d2ae540e7d9e804 /meta/packages/formfactor | |
parent | 4f39594c895095732d251888e3376be2724935f9 (diff) | |
download | poky-fbea27134575b28ef28b70a1d66e5c2814df3249.tar.gz |
Add formfactor package
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1762 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/formfactor')
-rwxr-xr-x | meta/packages/formfactor/files/akita/machconfig | 15 | ||||
-rwxr-xr-x | meta/packages/formfactor/files/c7x0/machconfig | 15 | ||||
-rwxr-xr-x | meta/packages/formfactor/files/config | 48 | ||||
-rwxr-xr-x | meta/packages/formfactor/files/machconfig | 0 | ||||
-rwxr-xr-x | meta/packages/formfactor/files/nokia800/machconfig | 13 | ||||
-rwxr-xr-x | meta/packages/formfactor/files/qemuarm/machconfig | 9 | ||||
-rwxr-xr-x | meta/packages/formfactor/files/spitz/machconfig | 15 | ||||
-rw-r--r-- | meta/packages/formfactor/formfactor_0.0.bb | 17 |
8 files changed, 132 insertions, 0 deletions
diff --git a/meta/packages/formfactor/files/akita/machconfig b/meta/packages/formfactor/files/akita/machconfig new file mode 100755 index 0000000000..a9649e03bc --- /dev/null +++ b/meta/packages/formfactor/files/akita/machconfig | |||
@@ -0,0 +1,15 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=1 | ||
3 | HAVE_KEYBOARD_PORTRAIT=0 | ||
4 | HAVE_KEYBOARD_LANDSCAPE=1 | ||
5 | |||
6 | DISPLAY_CAN_ROTATE=1 | ||
7 | DISPLAY_ORIENTATION=270 | ||
8 | DISPLAY_WIDTH_PIXELS=480 | ||
9 | DISPLAY_WIDTH_MM=56 | ||
10 | DISPLAY_HEIGHT_PIXELS=640 | ||
11 | DISPLAY_HEIGHT_MM=74 | ||
12 | DISPLAY_BPP=16 | ||
13 | #DISPLAY_DPI=220 | ||
14 | DISPLAY_DPI=150 | ||
15 | DISPLAY_SUBPIXEL_ORDER=rgb | ||
diff --git a/meta/packages/formfactor/files/c7x0/machconfig b/meta/packages/formfactor/files/c7x0/machconfig new file mode 100755 index 0000000000..ad3620f8fb --- /dev/null +++ b/meta/packages/formfactor/files/c7x0/machconfig | |||
@@ -0,0 +1,15 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=1 | ||
3 | HAVE_KEYBOARD_PORTRAIT=0 | ||
4 | HAVE_KEYBOARD_LANDSCAPE=1 | ||
5 | |||
6 | DISPLAY_CAN_ROTATE=1 | ||
7 | DISPLAY_ORIENTATION=0 | ||
8 | DISPLAY_WIDTH_PIXELS=640 | ||
9 | DISPLAY_WIDTH_MM=74 | ||
10 | DISPLAY_HEIGHT_PIXELS=480 | ||
11 | DISPLAY_HEIGHT_MM=56 | ||
12 | DISPLAY_BPP=16 | ||
13 | #DISPLAY_DPI=220 | ||
14 | DISPLAY_DPI=150 | ||
15 | DISPLAY_SUBPIXEL_ORDER=rgb | ||
diff --git a/meta/packages/formfactor/files/config b/meta/packages/formfactor/files/config new file mode 100755 index 0000000000..ed15d9e031 --- /dev/null +++ b/meta/packages/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= | ||
diff --git a/meta/packages/formfactor/files/machconfig b/meta/packages/formfactor/files/machconfig new file mode 100755 index 0000000000..e69de29bb2 --- /dev/null +++ b/meta/packages/formfactor/files/machconfig | |||
diff --git a/meta/packages/formfactor/files/nokia800/machconfig b/meta/packages/formfactor/files/nokia800/machconfig new file mode 100755 index 0000000000..ebe626c305 --- /dev/null +++ b/meta/packages/formfactor/files/nokia800/machconfig | |||
@@ -0,0 +1,13 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=0 | ||
3 | |||
4 | DISPLAY_CAN_ROTATE=0 | ||
5 | DISPLAY_ORIENTATION=0 | ||
6 | DISPLAY_WIDTH_PIXELS=800 | ||
7 | DISPLAY_WIDTH_MM=90 | ||
8 | DISPLAY_HEIGHT_PIXELS=480 | ||
9 | DISPLAY_HEIGHT_MM=54 | ||
10 | DISPLAY_BPP=16 | ||
11 | #DISPLAY_DPI=220 | ||
12 | DISPLAY_DPI=150 | ||
13 | #DISPLAY_SUBPIXEL_ORDER= | ||
diff --git a/meta/packages/formfactor/files/qemuarm/machconfig b/meta/packages/formfactor/files/qemuarm/machconfig new file mode 100755 index 0000000000..e60572af96 --- /dev/null +++ b/meta/packages/formfactor/files/qemuarm/machconfig | |||
@@ -0,0 +1,9 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=0 | ||
3 | |||
4 | DISPLAY_CAN_ROTATE=0 | ||
5 | DISPLAY_ORIENTATION=0 | ||
6 | DISPLAY_WIDTH_PIXELS=640 | ||
7 | DISPLAY_HEIGHT_PIXELS=480 | ||
8 | DISPLAY_BPP=16 | ||
9 | DISPLAY_SUBPIXEL_ORDER=vrgb | ||
diff --git a/meta/packages/formfactor/files/spitz/machconfig b/meta/packages/formfactor/files/spitz/machconfig new file mode 100755 index 0000000000..a9649e03bc --- /dev/null +++ b/meta/packages/formfactor/files/spitz/machconfig | |||
@@ -0,0 +1,15 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=1 | ||
3 | HAVE_KEYBOARD_PORTRAIT=0 | ||
4 | HAVE_KEYBOARD_LANDSCAPE=1 | ||
5 | |||
6 | DISPLAY_CAN_ROTATE=1 | ||
7 | DISPLAY_ORIENTATION=270 | ||
8 | DISPLAY_WIDTH_PIXELS=480 | ||
9 | DISPLAY_WIDTH_MM=56 | ||
10 | DISPLAY_HEIGHT_PIXELS=640 | ||
11 | DISPLAY_HEIGHT_MM=74 | ||
12 | DISPLAY_BPP=16 | ||
13 | #DISPLAY_DPI=220 | ||
14 | DISPLAY_DPI=150 | ||
15 | DISPLAY_SUBPIXEL_ORDER=rgb | ||
diff --git a/meta/packages/formfactor/formfactor_0.0.bb b/meta/packages/formfactor/formfactor_0.0.bb new file mode 100644 index 0000000000..f6d596e05f --- /dev/null +++ b/meta/packages/formfactor/formfactor_0.0.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | DESCRIPTION = "Device formfactor information" | ||
2 | SECTION = "base" | ||
3 | PR = "r0" | ||
4 | |||
5 | SRC_URI = "file://config file://machconfig" | ||
6 | S = "${WORKDIR}" | ||
7 | |||
8 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
9 | |||
10 | do_install() { | ||
11 | # Only install file if it has a contents | ||
12 | install -d ${D}${sysconfdir}/formfactor/ | ||
13 | install -m 0644 ${S}/config ${D}${sysconfdir}/formfactor/ | ||
14 | if [ -s "${S}/machconfig" ]; then | ||
15 | install -m 0644 ${S}/machconfig ${D}${sysconfdir}/formfactor/ | ||
16 | fi | ||
17 | } | ||