]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/tslib: enable statically linked building
authorMartin Kepplinger <martink@posteo.de>
Wed, 7 Jun 2017 07:01:00 +0000 (09:01 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 7 Jun 2017 19:50:10 +0000 (21:50 +0200)
tslib can be configured to be built statically linked. So let's add this option.

tslib is quite configurable and each module can be selected to be built into
the static build. This configuration includes the hardware independent filter
modules (obviously), and the Linux evdev input module.

This results in a configuration that fully supports multitouch in any
combination.

Signed-off-by: Martin Kepplinger <martin.kepplinger@ginzinger.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/tslib/Config.in
package/tslib/tslib.mk

index f1de56c121a721933f9550de83f540b01fa6f222..a2e1e7ff7af994176050c0d0175e2bcb971948f8 100644 (file)
@@ -1,10 +1,6 @@
 config BR2_PACKAGE_TSLIB
        bool "tslib"
-       depends on !BR2_STATIC_LIBS # dlopen
        help
          Tslib is a filtering layer for touchscreen panel events.
 
          http://tslib.org
-
-comment "tslib needs a toolchain w/ dynamic library"
-       depends on BR2_STATIC_LIBS
index 87eb5b734fd69cd2663187e6fa4a2724bcd0c93a..91ba9db39a5d29369a1b1994054b9765713cc5c3 100644 (file)
@@ -17,4 +17,16 @@ ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6),)
 TSLIB_CONF_OPTS += --disable-tools
 endif
 
+ifeq ($(BR2_STATIC_LIBS),y)
+TSLIB_CONF_OPTS += \
+       --enable-input=static \
+       --enable-linear=static \
+       --enable-median=static \
+       --enable-pthres=static \
+       --enable-iir=static \
+       --enable-dejitter=static \
+       --enable-debounce=static \
+       --enable-skip=static
+endif
+
 $(eval $(autotools-package))