summaryrefslogtreecommitdiffstats
path: root/meta/packages/formfactor
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-05-23 09:51:31 +0000
committerRichard Purdie <richard@openedhand.com>2007-05-23 09:51:31 +0000
commitfbea27134575b28ef28b70a1d66e5c2814df3249 (patch)
tree7c5f647403dab01de6951fcf0d2ae540e7d9e804 /meta/packages/formfactor
parent4f39594c895095732d251888e3376be2724935f9 (diff)
downloadpoky-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-xmeta/packages/formfactor/files/akita/machconfig15
-rwxr-xr-xmeta/packages/formfactor/files/c7x0/machconfig15
-rwxr-xr-xmeta/packages/formfactor/files/config48
-rwxr-xr-xmeta/packages/formfactor/files/machconfig0
-rwxr-xr-xmeta/packages/formfactor/files/nokia800/machconfig13
-rwxr-xr-xmeta/packages/formfactor/files/qemuarm/machconfig9
-rwxr-xr-xmeta/packages/formfactor/files/spitz/machconfig15
-rw-r--r--meta/packages/formfactor/formfactor_0.0.bb17
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 @@
1HAVE_TOUCHSCREEN=1
2HAVE_KEYBOARD=1
3HAVE_KEYBOARD_PORTRAIT=0
4HAVE_KEYBOARD_LANDSCAPE=1
5
6DISPLAY_CAN_ROTATE=1
7DISPLAY_ORIENTATION=270
8DISPLAY_WIDTH_PIXELS=480
9DISPLAY_WIDTH_MM=56
10DISPLAY_HEIGHT_PIXELS=640
11DISPLAY_HEIGHT_MM=74
12DISPLAY_BPP=16
13#DISPLAY_DPI=220
14DISPLAY_DPI=150
15DISPLAY_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 @@
1HAVE_TOUCHSCREEN=1
2HAVE_KEYBOARD=1
3HAVE_KEYBOARD_PORTRAIT=0
4HAVE_KEYBOARD_LANDSCAPE=1
5
6DISPLAY_CAN_ROTATE=1
7DISPLAY_ORIENTATION=0
8DISPLAY_WIDTH_PIXELS=640
9DISPLAY_WIDTH_MM=74
10DISPLAY_HEIGHT_PIXELS=480
11DISPLAY_HEIGHT_MM=56
12DISPLAY_BPP=16
13#DISPLAY_DPI=220
14DISPLAY_DPI=150
15DISPLAY_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
3if [ -e /etc/formfactor/machconfig ]; then
4 . /etc/formfactor/machconfig
5fi
6
7if [ -z "$HAVE_TOUCHSCREEN" ]; then
8 HAVE_TOUCHSCREEN=1
9fi
10
11if [ -z "$HAVE_KEYBOARD" ]; then
12 HAVE_KEYBOARD=0
13fi
14
15if [ -z "$HAVE_KEYBOARD_PORTRAIT" ]; then
16 HAVE_KEYBOARD_PORTRAIT=0
17fi
18
19if [ -z "$HAVE_KEYBOARD_LANDSCAPE" ]; then
20 HAVE_KEYBOARD_LANDSCAPE=0
21fi
22
23if [ -z "$DISPLAY_CAN_ROTATE" ]; then
24 DISPLAY_CAN_ROTATE=0
25fi
26
27if [ -z "$DISPLAY_ORIENTATION" ]; then
28 DISPLAY_ORIENTATION=0
29fi
30
31if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then
32 DISPLAY_WIDTH_PIXELS=`fbset | grep geometry | awk '{ print $2 }'`
33fi
34
35if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then
36 DISPLAY_HEIGHT_PIXELS=`fbset | grep geometry | awk '{ print $3 }'`
37fi
38
39if [ -z "$DISPLAY_BPP" ]; then
40 DISPLAY_BPP=`fbset | grep geometry | awk '{ print $6 }'`
41fi
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 @@
1HAVE_TOUCHSCREEN=1
2HAVE_KEYBOARD=0
3
4DISPLAY_CAN_ROTATE=0
5DISPLAY_ORIENTATION=0
6DISPLAY_WIDTH_PIXELS=800
7DISPLAY_WIDTH_MM=90
8DISPLAY_HEIGHT_PIXELS=480
9DISPLAY_HEIGHT_MM=54
10DISPLAY_BPP=16
11#DISPLAY_DPI=220
12DISPLAY_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 @@
1HAVE_TOUCHSCREEN=1
2HAVE_KEYBOARD=0
3
4DISPLAY_CAN_ROTATE=0
5DISPLAY_ORIENTATION=0
6DISPLAY_WIDTH_PIXELS=640
7DISPLAY_HEIGHT_PIXELS=480
8DISPLAY_BPP=16
9DISPLAY_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 @@
1HAVE_TOUCHSCREEN=1
2HAVE_KEYBOARD=1
3HAVE_KEYBOARD_PORTRAIT=0
4HAVE_KEYBOARD_LANDSCAPE=1
5
6DISPLAY_CAN_ROTATE=1
7DISPLAY_ORIENTATION=270
8DISPLAY_WIDTH_PIXELS=480
9DISPLAY_WIDTH_MM=56
10DISPLAY_HEIGHT_PIXELS=640
11DISPLAY_HEIGHT_MM=74
12DISPLAY_BPP=16
13#DISPLAY_DPI=220
14DISPLAY_DPI=150
15DISPLAY_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 @@
1DESCRIPTION = "Device formfactor information"
2SECTION = "base"
3PR = "r0"
4
5SRC_URI = "file://config file://machconfig"
6S = "${WORKDIR}"
7
8PACKAGE_ARCH = "${MACHINE_ARCH}"
9
10do_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}