From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from gallifrey.ext.pengutronix.de ([2001:6f8:1178:4:5054:ff:fe8d:eefb] helo=localhost) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RpfES-0001hT-Cb for ptxdist@pengutronix.de; Tue, 24 Jan 2012 13:12:12 +0100 From: Juergen Beisert Date: Tue, 24 Jan 2012 13:10:46 +0100 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201201241310.47377.jbe@pengutronix.de> Subject: [ptxdist] [PATCH] Add tslib dependency to SDL Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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 Signed-off-by: Juergen Beisert 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 ptxdist@pengutronix.de