Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-tslib: Commit

external/tslib


Commit MetaInfo

Revisionde814c9dfb25457fec572c4ddea87f3ae6d964e2 (tree)
Time2012-02-22 19:27:16
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

android: update for ics-x86

A target that needs tslib should just inherit tslib.mk.

Change Summary

Incremental Difference

--- a/Android.mk
+++ b/Android.mk
@@ -1,3 +1 @@
1-ifeq ($(BOARD_USES_TSLIB),true)
21 include $(call all-subdir-makefiles)
3-endif
--- /dev/null
+++ b/ts.conf
@@ -0,0 +1,31 @@
1+# Uncomment if you wish to use the linux input layer event interface
2+module_raw input-raw
3+
4+# Uncomment if you're using a Sharp Zaurus SL-5500/SL-5000d
5+# module_raw collie
6+
7+# Uncomment if you're using a Sharp Zaurus SL-C700/C750/C760/C860
8+# module_raw corgi
9+
10+# Uncomment if you're using a device with a UCB1200/1300/1400 TS interface
11+# module_raw ucb1x00
12+
13+# Uncomment if you're using an HP iPaq h3600 or similar
14+# module_raw h3600
15+
16+# Uncomment if you're using a Hitachi Webpad
17+# module_raw mk712
18+
19+# Uncomment if you're using an IBM Arctic II
20+# module_raw arctic2
21+
22+# Uncomment if you're using a Samsung Q1U
23+# module_raw galax
24+
25+# Uncomment if you're using a touchkit device
26+# module_raw touchkit
27+
28+module pthres pmin=1
29+module variance delta=30
30+module dejitter delta=100
31+module linear
--- /dev/null
+++ b/ts.env
@@ -0,0 +1,6 @@
1+TSLIB_CONSOLEDEVICE=none
2+TSLIB_FBDEVICE=/dev/graphics/fb0
3+TSLIB_TSDEVICE=/dev/input/event5
4+TSLIB_CALIBFILE=/data/system/tslib/pointercal
5+TSLIB_CONFFILE=/system/etc/ts.conf
6+TSLIB_PLUGINDIR=/system/lib/ts
--- a/tslib.mk
+++ b/tslib.mk
@@ -1,5 +1,5 @@
11 #
2-# Copyright (C) 2011 The Android-x86 Open Source Project
2+# Copyright (C) 2011-2012 The Android-x86 Open Source Project
33 #
44 # Licensed under the Apache License, Version 2.0 (the "License");
55 # you may not use this file except in compliance with the License.
@@ -8,6 +8,14 @@
88 # http://www.apache.org/licenses/LICENSE-2.0
99 #
1010
11+
12+PRODUCT_DIR := $(dir $(lastword $(filter-out device/common/%,$(filter device/%,$(ALL_PRODUCTS)))))
13+
14+PRODUCT_COPY_FILES := \
15+ $(if $(wildcard $(PRODUCT_DIR)ts.env),$(PRODUCT_DIR),$(LOCAL_PATH)/)ts.env:system/etc/ts.env \
16+ $(if $(wildcard $(PRODUCT_DIR)ts.conf),$(PRODUCT_DIR),$(LOCAL_PATH)/)ts.conf:system/etc/ts.conf \
17+ $(if $(wildcard $(PRODUCT_DIR)pointercal),$(PRODUCT_DIR)pointercal:system/etc/pointercal) \
18+
1119 # for touchscreen calibration
1220 PRODUCT_PACKAGES := \
1321 ts_calibrate \
Show on old repository browser