summaryrefslogtreecommitdiffstats
path: root/external/poky/meta/recipes-bsp/formfactor
diff options
context:
space:
mode:
authorToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp>2020-03-30 09:24:26 +0900
committerToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp>2020-03-30 09:24:26 +0900
commit5b80bfd7bffd4c20d80b7c70a7130529e9a755dd (patch)
treeb4bb18dcd1487dbf1ea8127e5671b7bb2eded033 /external/poky/meta/recipes-bsp/formfactor
parent706ad73eb02caf8532deaf5d38995bd258725cb8 (diff)
agl-basesystem
Diffstat (limited to 'external/poky/meta/recipes-bsp/formfactor')
-rwxr-xr-xexternal/poky/meta/recipes-bsp/formfactor/files/config50
-rwxr-xr-xexternal/poky/meta/recipes-bsp/formfactor/files/machconfig0
-rwxr-xr-xexternal/poky/meta/recipes-bsp/formfactor/files/qemuarm/machconfig10
-rwxr-xr-xexternal/poky/meta/recipes-bsp/formfactor/files/qemuarmv6/machconfig10
-rwxr-xr-xexternal/poky/meta/recipes-bsp/formfactor/files/qemuarmv7/machconfig10
-rwxr-xr-xexternal/poky/meta/recipes-bsp/formfactor/files/qemumips/machconfig10
-rwxr-xr-xexternal/poky/meta/recipes-bsp/formfactor/files/qemumips64/machconfig10
-rwxr-xr-xexternal/poky/meta/recipes-bsp/formfactor/files/qemuppc/machconfig10
-rwxr-xr-xexternal/poky/meta/recipes-bsp/formfactor/files/qemux86-64/machconfig10
-rwxr-xr-xexternal/poky/meta/recipes-bsp/formfactor/files/qemux86/machconfig10
-rw-r--r--external/poky/meta/recipes-bsp/formfactor/formfactor_0.0.bb20
11 files changed, 150 insertions, 0 deletions
diff --git a/external/poky/meta/recipes-bsp/formfactor/files/config b/external/poky/meta/recipes-bsp/formfactor/files/config
new file mode 100755
index 00000000..ecfdf26e
--- /dev/null
+++ b/external/poky/meta/recipes-bsp/formfactor/files/config
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+if [ -e /etc/formfactor/machconfig ]; then
+ . /etc/formfactor/machconfig
+fi
+
+if [ -z "$HAVE_TOUCHSCREEN" ]; then
+ HAVE_TOUCHSCREEN=0
+fi
+
+if [ -z "$HAVE_KEYBOARD" ]; then
+ HAVE_KEYBOARD=1
+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 [ -e "/dev/fb" ]; then
+ if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then
+ DISPLAY_WIDTH_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $2 }'`
+ fi
+
+ if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then
+ DISPLAY_HEIGHT_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $3 }'`
+ fi
+
+ if [ -z "$DISPLAY_BPP" ]; then
+ DISPLAY_BPP=`/usr/sbin/fbset | grep geometry | awk '{ print $6 }'`
+ fi
+fi
+
+#
+# No way to guess these or have any defaults
+#
+#DISPLAY_WIDTH_MM
+#DISPLAY_HEIGHT_MM
+#DISPLAY_SUBPIXEL_ORDER=
diff --git a/external/poky/meta/recipes-bsp/formfactor/files/machconfig b/external/poky/meta/recipes-bsp/formfactor/files/machconfig
new file mode 100755
index 00000000..e69de29b
--- /dev/null
+++ b/external/poky/meta/recipes-bsp/formfactor/files/machconfig
diff --git a/external/poky/meta/recipes-bsp/formfactor/files/qemuarm/machconfig b/external/poky/meta/recipes-bsp/formfactor/files/qemuarm/machconfig
new file mode 100755
index 00000000..56a2ae2e
--- /dev/null
+++ b/external/poky/meta/recipes-bsp/formfactor/files/qemuarm/machconfig
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+#DISPLAY_WIDTH_PIXELS=640
+#DISPLAY_HEIGHT_PIXELS=480
+#DISPLAY_BPP=16
+DISPLAY_DPI=150
+DISPLAY_SUBPIXEL_ORDER=vrgb
diff --git a/external/poky/meta/recipes-bsp/formfactor/files/qemuarmv6/machconfig b/external/poky/meta/recipes-bsp/formfactor/files/qemuarmv6/machconfig
new file mode 100755
index 00000000..56a2ae2e
--- /dev/null
+++ b/external/poky/meta/recipes-bsp/formfactor/files/qemuarmv6/machconfig
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+#DISPLAY_WIDTH_PIXELS=640
+#DISPLAY_HEIGHT_PIXELS=480
+#DISPLAY_BPP=16
+DISPLAY_DPI=150
+DISPLAY_SUBPIXEL_ORDER=vrgb
diff --git a/external/poky/meta/recipes-bsp/formfactor/files/qemuarmv7/machconfig b/external/poky/meta/recipes-bsp/formfactor/files/qemuarmv7/machconfig
new file mode 100755
index 00000000..56a2ae2e
--- /dev/null
+++ b/external/poky/meta/recipes-bsp/formfactor/files/qemuarmv7/machconfig
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+#DISPLAY_WIDTH_PIXELS=640
+#DISPLAY_HEIGHT_PIXELS=480
+#DISPLAY_BPP=16
+DISPLAY_DPI=150
+DISPLAY_SUBPIXEL_ORDER=vrgb
diff --git a/external/poky/meta/recipes-bsp/formfactor/files/qemumips/machconfig b/external/poky/meta/recipes-bsp/formfactor/files/qemumips/machconfig
new file mode 100755
index 00000000..56777b6e
--- /dev/null
+++ b/external/poky/meta/recipes-bsp/formfactor/files/qemumips/machconfig
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+DISPLAY_WIDTH_PIXELS=640
+DISPLAY_HEIGHT_PIXELS=480
+DISPLAY_BPP=16
+DISPLAY_DPI=150
+#DISPLAY_SUBPIXEL_ORDER=vrgb
diff --git a/external/poky/meta/recipes-bsp/formfactor/files/qemumips64/machconfig b/external/poky/meta/recipes-bsp/formfactor/files/qemumips64/machconfig
new file mode 100755
index 00000000..56777b6e
--- /dev/null
+++ b/external/poky/meta/recipes-bsp/formfactor/files/qemumips64/machconfig
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+DISPLAY_WIDTH_PIXELS=640
+DISPLAY_HEIGHT_PIXELS=480
+DISPLAY_BPP=16
+DISPLAY_DPI=150
+#DISPLAY_SUBPIXEL_ORDER=vrgb
diff --git a/external/poky/meta/recipes-bsp/formfactor/files/qemuppc/machconfig b/external/poky/meta/recipes-bsp/formfactor/files/qemuppc/machconfig
new file mode 100755
index 00000000..5ea2270c
--- /dev/null
+++ b/external/poky/meta/recipes-bsp/formfactor/files/qemuppc/machconfig
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+DISPLAY_WIDTH_PIXELS=800
+DISPLAY_HEIGHT_PIXELS=600
+DISPLAY_BPP=16
+DISPLAY_DPI=150
+DISPLAY_SUBPIXEL_ORDER=vrgb
diff --git a/external/poky/meta/recipes-bsp/formfactor/files/qemux86-64/machconfig b/external/poky/meta/recipes-bsp/formfactor/files/qemux86-64/machconfig
new file mode 100755
index 00000000..56a2ae2e
--- /dev/null
+++ b/external/poky/meta/recipes-bsp/formfactor/files/qemux86-64/machconfig
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+#DISPLAY_WIDTH_PIXELS=640
+#DISPLAY_HEIGHT_PIXELS=480
+#DISPLAY_BPP=16
+DISPLAY_DPI=150
+DISPLAY_SUBPIXEL_ORDER=vrgb
diff --git a/external/poky/meta/recipes-bsp/formfactor/files/qemux86/machconfig b/external/poky/meta/recipes-bsp/formfactor/files/qemux86/machconfig
new file mode 100755
index 00000000..56a2ae2e
--- /dev/null
+++ b/external/poky/meta/recipes-bsp/formfactor/files/qemux86/machconfig
@@ -0,0 +1,10 @@
+HAVE_TOUCHSCREEN=1
+HAVE_KEYBOARD=1
+
+DISPLAY_CAN_ROTATE=0
+DISPLAY_ORIENTATION=0
+#DISPLAY_WIDTH_PIXELS=640
+#DISPLAY_HEIGHT_PIXELS=480
+#DISPLAY_BPP=16
+DISPLAY_DPI=150
+DISPLAY_SUBPIXEL_ORDER=vrgb
diff --git a/external/poky/meta/recipes-bsp/formfactor/formfactor_0.0.bb b/external/poky/meta/recipes-bsp/formfactor/formfactor_0.0.bb
new file mode 100644
index 00000000..53cf1cf7
--- /dev/null
+++ b/external/poky/meta/recipes-bsp/formfactor/formfactor_0.0.bb
@@ -0,0 +1,20 @@
+SUMMARY = "Device formfactor information"
+SECTION = "base"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+PR = "r45"
+
+SRC_URI = "file://config file://machconfig"
+S = "${WORKDIR}"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+INHIBIT_DEFAULT_DEPS = "1"
+
+do_install() {
+ # Install file only if it has 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
+}