build configure options to select framebuffer and lcd device
authorMirakels <mirakels@openpli.org>
Fri, 18 Dec 2015 09:37:26 +0000 (10:37 +0100)
committerMirakels <mirakels@openpli.org>
Fri, 18 Dec 2015 09:45:05 +0000 (10:45 +0100)
--with-fbdev=devicename
use devicename for framebuffer device, default /dev/fb0
Example: --with-fbdev=/dev/fb10
--with-lcddev=devicename
use devicename for lcd framebuffer device, default /dev/fb1
Example: --with-lcddev=/dev/lcd0

configure.ac

index b8b8353..48d3210 100644 (file)
@@ -173,6 +173,24 @@ if test x"$with_alsamixer" != xno ; then
        AC_DEFINE_UNQUOTED(ALSA_VOLUME_MIXER, "$withval",[Defines which alsa mixer to use for volume control])
 fi
 
+AC_ARG_WITH(fbdev,
+       AC_HELP_STRING([--with-fbdev=devicename], [use devicename for framebuffer device, e.g. /dev/fb0 ]),
+       [[with_fbdev=$withval]],
+       [[with_fbdev=no]]
+)
+if test x"$with_fbdev" != xno ; then
+       AC_DEFINE_UNQUOTED(FB_DEV, "$withval", [Defines which device to use for main framebuffer (e.g. /dev/fb0)])
+fi
+
+AC_ARG_WITH(lcddev,
+       AC_HELP_STRING([--with-lcddev=devicename], [use devicename for lcd framebuffer device, e.g. /dev/fb1 ]),
+       [[with_fbdev=$withval]],
+       [[with_fbdev=no]]
+)
+if test x"$with_lcddev" != xno ; then
+       AC_DEFINE_UNQUOTED(LCD_DEV, "$withval", [Defines which device to use for lcd (e.g. /dev/fb1)])
+fi
+
 ENIGMA2_CFLAGS="-fno-rtti -fno-exceptions"
 AC_SUBST(ENIGMA2_CFLAGS)