소스 검색

package/tslib: enable statically linked building

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>
Martin Kepplinger 8 년 전
부모
커밋
05fadfea1d
2개의 변경된 파일12개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      package/tslib/Config.in
  2. 12 0
      package/tslib/tslib.mk

+ 0 - 4
package/tslib/Config.in

@@ -1,10 +1,6 @@
 config BR2_PACKAGE_TSLIB
 config BR2_PACKAGE_TSLIB
 	bool "tslib"
 	bool "tslib"
-	depends on !BR2_STATIC_LIBS # dlopen
 	help
 	help
 	  Tslib is a filtering layer for touchscreen panel events.
 	  Tslib is a filtering layer for touchscreen panel events.
 
 
 	  http://tslib.org
 	  http://tslib.org
-
-comment "tslib needs a toolchain w/ dynamic library"
-	depends on BR2_STATIC_LIBS

+ 12 - 0
package/tslib/tslib.mk

@@ -17,4 +17,16 @@ ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6),)
 TSLIB_CONF_OPTS += --disable-tools
 TSLIB_CONF_OPTS += --disable-tools
 endif
 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))
 $(eval $(autotools-package))