package/tslib: enable statically linked building
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
@@ -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
@@ -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
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.
Signed-off-by Martin Kepplinger <[email protected]>---
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@@ -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_LIBSpackage/tslib/tslib.mk +12
-0@@ -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 -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_TSLIBmight 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.
Signed-off-by Martin Kepplinger <[email protected]>---
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@@ -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_LIBSpackage/tslib/tslib.mk +12
-0@@ -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))
PATCH 1/1 package/tslib: enable statically linked building
In reply to Martin KepplingerHello,
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
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
@@ -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
@@ -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
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
@@ -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
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.
Signed-off-by Martin Kepplinger <[email protected]>---
I'll look at the rest of the possible candidates later
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 1/1 package/tslib: enable statically linked building
In reply to Martin KepplingerQuoted 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.
Signed-off-by Martin Kepplinger <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard