[Buildroot] [PATCH] package/tslib: enable statically linked building
Martin Kepplinger
martin.kepplinger at ginzinger.com
Wed Jun 7 06:47:12 UTC 2017
On 2017-06-06 20:38, Baruch Siach wrote:
> Hi Martin,
>
> On Tue, Jun 06, 2017 at 06:00:08PM +0200, Martin Kepplinger wrote:
>> From: Martin Kepplinger <martink at posteo.de>
>>
>> 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.
>> 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 at ginzinger.com>
>> ---
>>
>> 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(-)
>>
>> diff --git a/package/tslib/Config.in b/package/tslib/Config.in
>> index f1de56c12..a2e1e7ff7 100644
>> --- a/package/tslib/Config.in
>> +++ b/package/tslib/Config.in
>> @@ -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
>> diff --git a/package/tslib/tslib.mk b/package/tslib/tslib.mk
>> index 87eb5b734..a4e045a32 100644
>> --- a/package/tslib/tslib.mk
>> +++ b/package/tslib/tslib.mk
>> @@ -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))
>
More information about the buildroot
mailing list