diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-bsp/formfactor | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-bsp/formfactor')
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/config | 50 | ||||
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/machconfig | 0 | ||||
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/qemuarm/machconfig | 10 | ||||
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/qemuarmv6/machconfig | 10 | ||||
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/qemuarmv7/machconfig | 10 | ||||
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/qemumips/machconfig | 10 | ||||
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/qemuppc/machconfig | 10 | ||||
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/qemux86-64/machconfig | 10 | ||||
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/qemux86/machconfig | 10 | ||||
-rw-r--r-- | meta/recipes-bsp/formfactor/formfactor_0.0.bb | 21 |
10 files changed, 141 insertions, 0 deletions
diff --git a/meta/recipes-bsp/formfactor/files/config b/meta/recipes-bsp/formfactor/files/config new file mode 100755 index 0000000000..41066def97 --- /dev/null +++ b/meta/recipes-bsp/formfactor/files/config | |||
@@ -0,0 +1,50 @@ | |||
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=0 | ||
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 [ -e "/dev/fb" ]; then | ||
32 | if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then | ||
33 | DISPLAY_WIDTH_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $2 }'` | ||
34 | fi | ||
35 | |||
36 | if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then | ||
37 | DISPLAY_HEIGHT_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $3 }'` | ||
38 | fi | ||
39 | |||
40 | if [ -z "$DISPLAY_BPP" ]; then | ||
41 | DISPLAY_BPP=`/usr/sbin/fbset | grep geometry | awk '{ print $6 }'` | ||
42 | fi | ||
43 | fi | ||
44 | |||
45 | # | ||
46 | # No way to guess these or have any defaults | ||
47 | # | ||
48 | #DISPLAY_WIDTH_MM | ||
49 | #DISPLAY_HEIGHT_MM | ||
50 | #DISPLAY_SUBPIXEL_ORDER= | ||
diff --git a/meta/recipes-bsp/formfactor/files/machconfig b/meta/recipes-bsp/formfactor/files/machconfig new file mode 100755 index 0000000000..e69de29bb2 --- /dev/null +++ b/meta/recipes-bsp/formfactor/files/machconfig | |||
diff --git a/meta/recipes-bsp/formfactor/files/qemuarm/machconfig b/meta/recipes-bsp/formfactor/files/qemuarm/machconfig new file mode 100755 index 0000000000..56a2ae2e3c --- /dev/null +++ b/meta/recipes-bsp/formfactor/files/qemuarm/machconfig | |||
@@ -0,0 +1,10 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=1 | ||
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_DPI=150 | ||
10 | DISPLAY_SUBPIXEL_ORDER=vrgb | ||
diff --git a/meta/recipes-bsp/formfactor/files/qemuarmv6/machconfig b/meta/recipes-bsp/formfactor/files/qemuarmv6/machconfig new file mode 100755 index 0000000000..56a2ae2e3c --- /dev/null +++ b/meta/recipes-bsp/formfactor/files/qemuarmv6/machconfig | |||
@@ -0,0 +1,10 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=1 | ||
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_DPI=150 | ||
10 | DISPLAY_SUBPIXEL_ORDER=vrgb | ||
diff --git a/meta/recipes-bsp/formfactor/files/qemuarmv7/machconfig b/meta/recipes-bsp/formfactor/files/qemuarmv7/machconfig new file mode 100755 index 0000000000..56a2ae2e3c --- /dev/null +++ b/meta/recipes-bsp/formfactor/files/qemuarmv7/machconfig | |||
@@ -0,0 +1,10 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=1 | ||
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_DPI=150 | ||
10 | DISPLAY_SUBPIXEL_ORDER=vrgb | ||
diff --git a/meta/recipes-bsp/formfactor/files/qemumips/machconfig b/meta/recipes-bsp/formfactor/files/qemumips/machconfig new file mode 100755 index 0000000000..56777b6e2e --- /dev/null +++ b/meta/recipes-bsp/formfactor/files/qemumips/machconfig | |||
@@ -0,0 +1,10 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=1 | ||
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_DPI=150 | ||
10 | #DISPLAY_SUBPIXEL_ORDER=vrgb | ||
diff --git a/meta/recipes-bsp/formfactor/files/qemuppc/machconfig b/meta/recipes-bsp/formfactor/files/qemuppc/machconfig new file mode 100755 index 0000000000..5ea2270cd8 --- /dev/null +++ b/meta/recipes-bsp/formfactor/files/qemuppc/machconfig | |||
@@ -0,0 +1,10 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=1 | ||
3 | |||
4 | DISPLAY_CAN_ROTATE=0 | ||
5 | DISPLAY_ORIENTATION=0 | ||
6 | DISPLAY_WIDTH_PIXELS=800 | ||
7 | DISPLAY_HEIGHT_PIXELS=600 | ||
8 | DISPLAY_BPP=16 | ||
9 | DISPLAY_DPI=150 | ||
10 | DISPLAY_SUBPIXEL_ORDER=vrgb | ||
diff --git a/meta/recipes-bsp/formfactor/files/qemux86-64/machconfig b/meta/recipes-bsp/formfactor/files/qemux86-64/machconfig new file mode 100755 index 0000000000..56a2ae2e3c --- /dev/null +++ b/meta/recipes-bsp/formfactor/files/qemux86-64/machconfig | |||
@@ -0,0 +1,10 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=1 | ||
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_DPI=150 | ||
10 | DISPLAY_SUBPIXEL_ORDER=vrgb | ||
diff --git a/meta/recipes-bsp/formfactor/files/qemux86/machconfig b/meta/recipes-bsp/formfactor/files/qemux86/machconfig new file mode 100755 index 0000000000..56a2ae2e3c --- /dev/null +++ b/meta/recipes-bsp/formfactor/files/qemux86/machconfig | |||
@@ -0,0 +1,10 @@ | |||
1 | HAVE_TOUCHSCREEN=1 | ||
2 | HAVE_KEYBOARD=1 | ||
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_DPI=150 | ||
10 | DISPLAY_SUBPIXEL_ORDER=vrgb | ||
diff --git a/meta/recipes-bsp/formfactor/formfactor_0.0.bb b/meta/recipes-bsp/formfactor/formfactor_0.0.bb new file mode 100644 index 0000000000..5c30bd510d --- /dev/null +++ b/meta/recipes-bsp/formfactor/formfactor_0.0.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | SUMMARY = "Device formfactor information" | ||
2 | SECTION = "base" | ||
3 | LICENSE = "MIT" | ||
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | ||
5 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
6 | PR = "r45" | ||
7 | |||
8 | SRC_URI = "file://config file://machconfig" | ||
9 | S = "${WORKDIR}" | ||
10 | |||
11 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
12 | INHIBIT_DEFAULT_DEPS = "1" | ||
13 | |||
14 | do_install() { | ||
15 | # Install file only if it has contents | ||
16 | install -d ${D}${sysconfdir}/formfactor/ | ||
17 | install -m 0644 ${S}/config ${D}${sysconfdir}/formfactor/ | ||
18 | if [ -s "${S}/machconfig" ]; then | ||
19 | install -m 0644 ${S}/machconfig ${D}${sysconfdir}/formfactor/ | ||
20 | fi | ||
21 | } | ||