summaryrefslogtreecommitdiff
path: root/meta/packages
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages')
-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 000000000..a9649e03b
--- /dev/null
+++ b/meta/packages/formfactor/files/akita/machconfig
@@ -0,0 +1,15 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+HAVE_KEYBOARD_PORTRAIT=0
+HAVE_KEYBOARD_LANDSCAPE=1
+
+DISPLAY_CAN_ROTATE=1
+DISPLAY_ORIENTATION=270
+DISPLAY_WIDTH_PIXELS=480
+DISPLAY_WIDTH_MM=56
+DISPLAY_HEIGHT_PIXELS=640
+DISPLAY_HEIGHT_MM=74
+DISPLAY_BPP=16
+#DISPLAY_DPI=220
+DISPLAY_DPI=150
+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 000000000..ad3620f8f
--- /dev/null
+++ b/meta/packages/formfactor/files/c7x0/machconfig
@@ -0,0 +1,15 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+HAVE_KEYBOARD_PORTRAIT=0
+HAVE_KEYBOARD_LANDSCAPE=1
+
+DISPLAY_CAN_ROTATE=1
+DISPLAY_ORIENTATION=0
+DISPLAY_WIDTH_PIXELS=640
+DISPLAY_WIDTH_MM=74
+DISPLAY_HEIGHT_PIXELS=480
+DISPLAY_HEIGHT_MM=56
+DISPLAY_BPP=16
+#DISPLAY_DPI=220
+DISPLAY_DPI=150
+DISPLAY_SUBPIXEL_ORDER=rgb
diff --git a/meta/packages/formfactor/files/config b/meta/packages/formfactor/files/config
new file mode 100755
index 000000000..ed15d9e03
--- /dev/null
+++ b/meta/packages/formfactor/files/config
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+if [ -e /etc/formfactor/machconfig ]; then
+ . /etc/formfactor/machconfig
+fi
+
+if [ -z "$HAVE_TOUCHSCREEN" ]; then
+ HAVE_TOUCHSCREEN=1
+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=
diff --git a/meta/packages/formfactor/files/machconfig b/meta/packages/formfactor/files/machconfig
new file mode 100755
index 000000000..e69de29bb
--- /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 000000000..ebe626c30
--- /dev/null
+++ b/meta/packages/formfactor/files/nokia800/machconfig
@@ -0,0 +1,13 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=0
+
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+DISPLAY_WIDTH_PIXELS=800
+DISPLAY_WIDTH_MM=90
+DISPLAY_HEIGHT_PIXELS=480
+DISPLAY_HEIGHT_MM=54
+DISPLAY_BPP=16
+#DISPLAY_DPI=220
+DISPLAY_DPI=150
+#DISPLAY_SUBPIXEL_ORDER=
diff --git a/meta/packages/formfactor/files/qemuarm/machconfig b/meta/packages/formfactor/files/qemuarm/machconfig
new file mode 100755
index 000000000..e60572af9
--- /dev/null
+++ b/meta/packages/formfactor/files/qemuarm/machconfig
@@ -0,0 +1,9 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=0
+
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+DISPLAY_WIDTH_PIXELS=640
+DISPLAY_HEIGHT_PIXELS=480
+DISPLAY_BPP=16
+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 000000000..a9649e03b
--- /dev/null
+++ b/meta/packages/formfactor/files/spitz/machconfig
@@ -0,0 +1,15 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+HAVE_KEYBOARD_PORTRAIT=0
+HAVE_KEYBOARD_LANDSCAPE=1
+
+DISPLAY_CAN_ROTATE=1
+DISPLAY_ORIENTATION=270
+DISPLAY_WIDTH_PIXELS=480
+DISPLAY_WIDTH_MM=56
+DISPLAY_HEIGHT_PIXELS=640
+DISPLAY_HEIGHT_MM=74
+DISPLAY_BPP=16
+#DISPLAY_DPI=220
+DISPLAY_DPI=150
+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 000000000..f6d596e05
--- /dev/null
+++ b/meta/packages/formfactor/formfactor_0.0.bb
@@ -0,0 +1,17 @@
+DESCRIPTION = "Device formfactor information"
+SECTION = "base"
+PR = "r0"
+
+SRC_URI = "file://config file://machconfig"
+S = "${WORKDIR}"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+do_install() {
+ # Only install file if it has a contents
+ install -d ${D}${sysconfdir}/formfactor/
+ install -m 0644 ${S}/config ${D}${sysconfdir}/formfactor/
+ if [ -s "${S}/machconfig" ]; then
+ install -m 0644 ${S}/machconfig ${D}${sysconfdir}/formfactor/
+ fi
+}