The SDL configure stage guesses if the tslib is available. So, if touchscreen support is available at runtime or not depends on the build order. This patch fixes the build order on demand.
Reported-by: Wingston Sharon <[email protected]> Signed-off-by: Juergen Beisert <[email protected]> diff --git a/rules/sdl.in b/rules/sdl.in index 1dbb2ab..9a6b4ad 100644 --- a/rules/sdl.in +++ b/rules/sdl.in @@ -17,6 +17,7 @@ menuconfig SDL select ALSA_LIB if SDL_ALSA select DIRECTFB if SDL_DIRECTFB select CROSS_NASM if SDL_NASM + select TSLIB if SDL_TSLIB help Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, @@ -252,4 +253,10 @@ config SDL_PTH help Turn on support for GNU Portable Threads +config SDL_TSLIB + bool + prompt "tslib Support" + help + Turn on support for the touchscreen library 'tslib' + endif diff --git a/rules/sdl.make b/rules/sdl.make index 17f2e68..d96b279 100644 --- a/rules/sdl.make +++ b/rules/sdl.make @@ -43,7 +43,9 @@ SDL_ENV := $(CROSS_ENV) # # autoconf # -SDL_AUTOCONF := $(CROSS_AUTOCONF_USR) +SDL_AUTOCONF := \ + $(CROSS_AUTOCONF_USR) \ + --$(call ptx/endis,PTXCONF_SDL_TSLIB)-input-tslib \ ifdef PTXCONF_SDL_SHARED SDL_AUTOCONF += --enable-shared -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list [email protected]
