summaryrefslogtreecommitdiffstats
path: root/bsp/meta-intel/recipes-bsp/formfactor/formfactor/machconfig
diff options
context:
space:
mode:
authortakeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp>2020-11-02 11:07:33 +0900
committertakeshi_hoshina <takeshi_hoshina@mail.toyota.co.jp>2020-11-02 11:07:33 +0900
commit1c7d6584a7811b7785ae5c1e378f14b5ba0971cf (patch)
treecd70a267a5ef105ba32f200aa088e281fbd85747 /bsp/meta-intel/recipes-bsp/formfactor/formfactor/machconfig
parent4204309872da5cb401cbb2729d9e2d4869a87f42 (diff)
recipes
Diffstat (limited to 'bsp/meta-intel/recipes-bsp/formfactor/formfactor/machconfig')
-rw-r--r--bsp/meta-intel/recipes-bsp/formfactor/formfactor/machconfig39
1 files changed, 0 insertions, 39 deletions
diff --git a/bsp/meta-intel/recipes-bsp/formfactor/formfactor/machconfig b/bsp/meta-intel/recipes-bsp/formfactor/formfactor/machconfig
deleted file mode 100644
index 73695fac..00000000
--- a/bsp/meta-intel/recipes-bsp/formfactor/formfactor/machconfig
+++ /dev/null
@@ -1,39 +0,0 @@
-# Note: superuser permission is required to run usbhid-dump
-# successfully.
-
-# HEX keys are according to the USB HID spec and USB HID usage table
-# We can add more keys as needed in the future.
-
-# This test may not be very accurate, as we only look for the first
-# two lines of a descriptor section. Example:
-#
-# 001:003:000:DESCRIPTOR 1460501386.337809
-# 05 01 09 02 A1 01 09 01 A1 00 05 09 19 01 29 03
-# 15 00 25 01 95 03 75 01 81 02 .. .. .. .. .. ..
-# .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
-#
-# By doing so we eliminate false matches when HEX keys are in the lines
-# in the middle of the whole descriptor section.
-
-if type usbhid-dump &>/dev/null; then
- if USBHID_DUMP_OUTPUT=$(usbhid-dump -e descriptor 2>/dev/null|grep -A1 DESCRIPTOR); then
- # checker for generic USB HID keyboard
- USBHID_KBD_CMD="grep -E '^ 05 01 09 06'"
-
- # checker for touch screen
- USBHID_TS_CMD="grep -E '^ 05 0D 09 04'"
-
- if echo "$USBHID_DUMP_OUTPUT"|eval $USBHID_TS_CMD &>/dev/null; then
- HAVE_TOUCHSCREEN=1
- fi
-
- if echo "$USBHID_DUMP_OUTPUT"|eval $USBHID_KBD_CMD &>/dev/null; then
- HAVE_KEYBOARD=1
- else
- # config script in OE will set HAVE_KEYBOARD=1
- # if we don't set any value. We have to explicitly
- # tell it when keyboard is not detected.
- HAVE_KEYBOARD=0
- fi
- fi
-fi