Initial commit
This commit is contained in:
+50
@@ -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=
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,10 @@
|
||||
HAVE_TOUCHSCREEN=0
|
||||
HAVE_KEYBOARD=0
|
||||
|
||||
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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "Device formfactor information"
|
||||
DESCRIPTION = "A formfactor configuration file provides information about the \
|
||||
target hardware for which the image is being built and information that the \
|
||||
build system cannot obtain from other sources such as the kernel."
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user