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 | |
parent | 4f39594c895095732d251888e3376be2724935f9 (diff) | |
download | openembedded-core-fbea27134575b28ef28b70a1d66e5c2814df3249.tar.gz openembedded-core-fbea27134575b28ef28b70a1d66e5c2814df3249.tar.bz2 openembedded-core-fbea27134575b28ef28b70a1d66e5c2814df3249.tar.xz openembedded-core-fbea27134575b28ef28b70a1d66e5c2814df3249.zip |
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')
-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 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 +} |