Skip to contentSkip to conversation

package/tslib: enable statically linked building

PATCH New Martin Kepplinger 4 participants 8 messages Jun 6, 2017 – Jun 7, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/tslib: enable statically linked building

From: Martin Kepplinger <[email protected]>

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.

---

so strictly speaking this is a first idea of what static config to offer. It is an upgrade in any case, so almost any configuration should be safe to do now; but tslib includes old userspace driver modules that aren't really encouraged to use (evdev kernel drivers is the way to go) and they are not included in the build here.

 package/tslib/Config.in |  4 ----
 package/tslib/tslib.mk  | 12 ++++++++++++
 2 files changed, 12 insertions(+), 4 deletions(-)
package/tslib/Config.in +0 -4
index f1de56c12..a2e1e7ff7 100644
@@ -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
package/tslib/tslib.mk +12 -0
index 87eb5b734..a4e045a32 100644
@@ -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 += --disable-shared --enable-static \
+		   --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))
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/tslib: enable statically linked building

Hi Martin,

Quoted 3 lines · Martin Kepplinger

From: Martin Kepplinger <[email protected]>

tslib can be configured to be built statically linked. So let's add this option.

Packages that select BR2_PACKAGE_TSLIB might now support static build as well.

baruch

Quoted 57 lines

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.

---

so strictly speaking this is a first idea of what static config to offer. It is an upgrade in any case, so almost any configuration should be safe to do now; but tslib includes old userspace driver modules that aren't really encouraged to use (evdev kernel drivers is the way to go) and they are not included in the build here.

 package/tslib/Config.in |  4 ----
 package/tslib/tslib.mk  | 12 ++++++++++++
 2 files changed, 12 insertions(+), 4 deletions(-)
package/tslib/Config.in +0 -4
index f1de56c12..a2e1e7ff7 100644
@@ -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
package/tslib/tslib.mk +12 -0
index 87eb5b734..a4e045a32 100644
@@ -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 += --disable-shared --enable-static \
+		   --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))
Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
#2 lore raw

PATCH 1/1 package/tslib: enable statically linked building

Quoted 11 lines · Baruch Siach

Hi Martin,

Quoted 3 lines · Martin Kepplinger

From: Martin Kepplinger <[email protected]>

tslib can be configured to be built statically linked. So let's add this option.

Packages that select BR2_PACKAGE_TSLIB might now support static build as well.

baruch

Yes. I'll have a look.

Quoted 58 lines
Quoted 57 lines

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.

---

so strictly speaking this is a first idea of what static config to offer. It is an upgrade in any case, so almost any configuration should be safe to do now; but tslib includes old userspace driver modules that aren't really encouraged to use (evdev kernel drivers is the way to go) and they are not included in the build here.

 package/tslib/Config.in |  4 ----
 package/tslib/tslib.mk  | 12 ++++++++++++
 2 files changed, 12 insertions(+), 4 deletions(-)
package/tslib/Config.in +0 -4
index f1de56c12..a2e1e7ff7 100644
@@ -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
package/tslib/tslib.mk +12 -0
index 87eb5b734..a4e045a32 100644
@@ -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 += --disable-shared --enable-static \
+		   --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))
#3 lore raw

PATCH 1/1 package/tslib: enable statically linked building

In reply to Martin Kepplinger

Hello,

package/tslib/tslib.mk ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6),) · line 21

Quoted 2 lines · Martin Kepplinger
package/tslib/tslib.mk +2 -0
+ifeq ($(BR2_STATIC_LIBS),y)
+TSLIB_CONF_OPTS += --disable-shared --enable-static \

These are not needed, and in fact wrong, because they don't do the right thing for BR2_SHARED_STATIC_LIBS.

--{enable,disable}-{shared,static} is already automartically passed by the package infrastructure.

package/tslib/tslib.mk ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6),) · line 29

Quoted 8 lines
package/tslib/tslib.mk +8 -0
+		   --enable-input=static \
+		   --enable-linear=static \
+		   --enable-median=static \
+		   --enable-pthres=static \
+		   --enable-iir=static \
+		   --enable-dejitter=static \
+		   --enable-debounce=static \
+		   --enable-skip=static

OK, for these, but please use just one tab for the indentation.

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

PATCH v2 1/1 package/tslib: enable statically linked building

From: Martin Kepplinger <[email protected]>

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.

---

Thanks for reviewing!

 package/tslib/Config.in |  4 ----
 package/tslib/tslib.mk  | 12 ++++++++++++
 2 files changed, 12 insertions(+), 4 deletions(-)
package/tslib/Config.in +0 -4
index f1de56c12..a2e1e7ff7 100644
@@ -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
package/tslib/tslib.mk +12 -0
index 87eb5b734..91ba9db39 100644
@@ -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))
Signature · 1 line
2.11.0
#5 lore raw

PATCH 1/1 package/xf86-input-tslib: enable static build

since tslib now supports static builds the dependency on !BR2_STATIC_LIBS can be removed from xf86-input-tslib too.

---

I'll look at the rest of the possible candidates later

 package/x11r7/xdriver_xf86-input-tslib/Config.in | 4 ----
 1 file changed, 4 deletions(-)
package/x11r7/xdriver_xf86-input-tslib/Config.in +0 -4
index 08d790ca4..4e77abcb1 100644
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_XDRIVER_XF86_INPUT_TSLIB
 	bool "xf86-input-tslib"
-	depends on !BR2_STATIC_LIBS # tslib
 	select BR2_PACKAGE_XPROTO_INPUTPROTO
 	select BR2_PACKAGE_XPROTO_RANDRPROTO
 	select BR2_PACKAGE_XPROTO_XPROTO
@@ -9,6 +8,3 @@ config BR2_PACKAGE_XDRIVER_XF86_INPUT_TSLIB
 	  Touch screen library input driver
 
 	  https://github.com/merge/xf86-input-tslib
-
-comment "xf86-input-tslib needs a toolchain w/ dynamic library"
-	depends on BR2_STATIC_LIBS
Signature · 1 line
2.11.0
#6 lore raw

PATCH 1/1 package/xf86-input-tslib: enable static build

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Martin" == Martin Kepplinger <[email protected]> writes:

since tslib now supports static builds the dependency on !BR2_STATIC_LIBS can be removed from xf86-input-tslib too.

---

I'll look at the rest of the possible candidates later

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#7 lore raw

PATCH v2 1/1 package/tslib: enable statically linked building

In reply to Martin Kepplinger
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Martin" == Martin Kepplinger <[email protected]> writes:

From: Martin Kepplinger <[email protected]>
tslib can be configured to be built statically linked. So let's add this option.

Quoted 8 lines

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.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard