aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 29 insertions, 2 deletions
diff --git a/configure b/configure
index 7c4c87e3af..a5bb1e6e93 100755
--- a/configure
+++ b/configure
@@ -824,7 +824,7 @@ Configuration:
-h, --help display this help and exit
--backend=BACKEND backend to build (android, tizen, dc, dingux, ds, gcw0,
gph, iphone, linuxmoto, maemo, n64, null, openpandora,
- ps2, psp, samsungtv, sdl, webos, wii, wince) [sdl]
+ ps2, psp, raspberrypi, samsungtv, sdl, webos, wii, wince) [sdl]
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
@@ -2980,6 +2980,33 @@ case $_backend in
LIBS="$LIBS -lpng"
LIBS="$LIBS -Wl,-Map,mapfile.txt"
;;
+ raspberrypi)
+ _use_dispmanx=no
+ DISPMANX_CXXFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux/ -I/opt/vc/include/interface/vcos/pthreads -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s"
+ DISPMANX_LIBS="-L/opt/vc/lib -lbcm_host -lvcos -lvchiq_arm"
+ cat > $TMPC << EOF
+#include <bcm_host.h>
+
+ int main(int argc, char *argv[]) {
+ bcm_host_init();
+}
+EOF
+ cc_check $DISPMANX_CXXFLAGS $DISPMANX_LIBS && _use_dispmanx=yes
+ if test "$_use_dispmanx" = "yes"; then
+ echo "Activating Raspberry Pi DispmanX graphics backend"
+ CXXFLAGS="$CXXFLAGS $DISPMANX_CXXFLAGS"
+ LIBS="$LIBS $DISPMANX_LIBS"
+ MODULES="$MODULES backends/platform/sdl"
+ DEFINES="$DEFINES -DRASPBERRYPI"
+ add_line_to_config_mk 'RASPBERRYPI = 1'
+ _build_scalers=no
+ _build_hq_scalers=no
+ _opengl=no
+ _default_optimization_level=-O3
+ else
+ echo "Can't activate DispmanX context (missing headers?)."
+ fi
+ ;;
samsungtv)
DEFINES="$DEFINES -DSAMSUNGTV"
LDFLAGS="$LDFLAGS -shared"
@@ -3046,7 +3073,7 @@ MODULES="$MODULES backends/platform/$_backend"
# Setup SDL specifics for SDL based backends
#
case $_backend in
- dingux | gph | linuxmoto | maemo | openpandora | samsungtv | sdl)
+ dingux | gph | linuxmoto | maemo | openpandora | raspberrypi | samsungtv | sdl)
find_sdlconfig
INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`"
LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`"