[Scummvm-git-logs] scummvm master -> c59ac26f97138183bbf606e805bb54db9af8b8fb

sev- noreply at scummvm.org
Fri May 10 11:38:36 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c59ac26f97 BACKENDS: Remove obsolete gph/caanoo/gp2x/gp2xwiz port


Commit: c59ac26f97138183bbf606e805bb54db9af8b8fb
    https://github.com/scummvm/scummvm/commit/c59ac26f97138183bbf606e805bb54db9af8b8fb
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-05-10T13:38:20+02:00

Commit Message:
BACKENDS: Remove obsolete gph/caanoo/gp2x/gp2xwiz port

Changed paths:
  R backends/events/gph/gph-events.cpp
  R backends/events/gph/gph-events.h
  R backends/graphics/gph/gph-graphics.cpp
  R backends/graphics/gph/gph-graphics.h
  R backends/platform/gph/build/caanoo-build.sh
  R backends/platform/gph/build/caanoo-bundle-debug.sh
  R backends/platform/gph/build/caanoo-bundle.sh
  R backends/platform/gph/build/caanoo-config-alleng.sh
  R backends/platform/gph/build/caanoo-config.sh
  R backends/platform/gph/build/clean.sh
  R backends/platform/gph/build/gp2x-build.sh
  R backends/platform/gph/build/gp2x-bundle.sh
  R backends/platform/gph/build/gp2x-config-alleng.sh
  R backends/platform/gph/build/gp2x-config.sh
  R backends/platform/gph/build/gp2xwiz-build.sh
  R backends/platform/gph/build/gp2xwiz-bundle-debug.sh
  R backends/platform/gph/build/gp2xwiz-bundle.sh
  R backends/platform/gph/build/gp2xwiz-config-alleng.sh
  R backends/platform/gph/build/gp2xwiz-config.sh
  R backends/platform/gph/caanoo-bundle.mk
  R backends/platform/gph/gp2x-bundle.mk
  R backends/platform/gph/gp2xwiz-bundle.mk
  R backends/platform/gph/gph-backend.cpp
  R backends/platform/gph/gph-hw.cpp
  R backends/platform/gph/gph-hw.h
  R backends/platform/gph/gph-main.cpp
  R backends/platform/gph/gph.h
  R backends/platform/gph/module.mk
  R dists/gph/README-GPH
  R dists/gph/README-GPH.in
  R dists/gph/caanoo/scummvm-gdb.gpe
  R dists/gph/caanoo/scummvm.gpe
  R dists/gph/gp2x/mmuhack/Makefile
  R dists/gph/gp2x/mmuhack/README
  R dists/gph/gp2x/mmuhack/flush_uppermem_cache.h
  R dists/gph/gp2x/mmuhack/flush_uppermem_cache.s
  R dists/gph/gp2x/mmuhack/mmuhack.c
  R dists/gph/gp2x/mmuhack/mmuhack.o
  R dists/gph/gp2x/scummvm.gpe
  R dists/gph/gp2xwiz/scummvm-gdb.gpe
  R dists/gph/gp2xwiz/scummvm.gpe
  R dists/gph/scummvm.ini
  R dists/gph/scummvm.ini.in
  R dists/gph/scummvm.png
  R dists/gph/scummvmb.png
    backends/platform/sdl/posix/posix-main.cpp
    configure


diff --git a/backends/events/gph/gph-events.cpp b/backends/events/gph/gph-events.cpp
deleted file mode 100644
index 85d46d02b9c..00000000000
--- a/backends/events/gph/gph-events.cpp
+++ /dev/null
@@ -1,549 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#include "common/scummsys.h"
-
-/*
- * GPH: Device Specific Event Handling.
- */
-
-#if defined(GPH_DEVICE)
-
-#include "backends/events/gph/gph-events.h"
-#include "backends/graphics/gph/gph-graphics.h"
-#include "backends/platform/gph/gph-hw.h"
-
-#include "common/util.h"
-#include "common/events.h"
-#include "common/translation.h"
-
-#define JOY_DEADZONE 2200
-
-#define JOY_XAXIS 0
-#define JOY_YAXIS 1
-
-#if defined(CAANOO)
-
-/* Caanoo: Main Joystick Button Mappings */
-/*         The Caanoo has an analogue stick so no digital DPAD */
-enum {
-	/* Joystick Buttons */
-	BUTTON_A            = 0,
-	BUTTON_X            = 1,
-	BUTTON_B            = 2,
-	BUTTON_Y            = 3,
-	BUTTON_L            = 4,
-	BUTTON_R            = 5,
-	BUTTON_HOME         = 6,    // Home
-	BUTTON_HOLD         = 7,    // Hold (on Power)
-	BUTTON_HELP         = 8,    // Help I
-	BUTTON_HELP2        = 9,    // Help II
-	BUTTON_CLICK        = 10    // Stick Click
-};
-
-enum {
-	/* Unused Joystick Buttons on the Caanoo */
-	BUTTON_VOLUP        = 51,
-	BUTTON_VOLDOWN      = 52,
-	BUTTON_UP           = 53,
-	BUTTON_UPLEFT       = 54,
-	BUTTON_LEFT         = 55,
-	BUTTON_DOWNLEFT     = 56,
-	BUTTON_DOWN         = 57,
-	BUTTON_DOWNRIGHT    = 58,
-	BUTTON_RIGHT        = 59,
-	BUTTON_UPRIGHT      = 60,
-	BUTTON_MENU         = 61,
-	BUTTON_SELECT       = 62
-};
-
-#elif defined(GP2XWIZ)
-
-/* Wiz: Main Joystick Mappings */
-enum {
-	/* DPAD */
-	BUTTON_UP           = 0,
-	BUTTON_UPLEFT       = 1,
-	BUTTON_LEFT         = 2,
-	BUTTON_DOWNLEFT     = 3,
-	BUTTON_DOWN         = 4,
-	BUTTON_DOWNRIGHT    = 5,
-	BUTTON_RIGHT        = 6,
-	BUTTON_UPRIGHT      = 7,
-	/* Joystick Buttons */
-	BUTTON_MENU         = 8,
-	BUTTON_SELECT       = 9,
-	BUTTON_L            = 10,
-	BUTTON_R            = 11,
-	BUTTON_A            = 12,
-	BUTTON_B            = 13,
-	BUTTON_X            = 14,
-	BUTTON_Y            = 15,
-	BUTTON_VOLUP        = 16,
-	BUTTON_VOLDOWN      = 17
-};
-
-enum {
-	/* Unused Joystick Buttons on the Wiz */
-	BUTTON_HOME         = 51,
-	BUTTON_HOLD         = 52,
-	BUTTON_CLICK        = 53,
-	BUTTON_HELP         = 54,
-	BUTTON_HELP2        = 55
-};
-
-#elif defined(GP2X)
-
-enum {
-	/* DPAD/Stick */
-	BUTTON_UP           = 0,
-	BUTTON_UPLEFT       = 1,
-	BUTTON_LEFT         = 2,
-	BUTTON_DOWNLEFT     = 3,
-	BUTTON_DOWN         = 4,
-	BUTTON_DOWNRIGHT    = 5,
-	BUTTON_RIGHT        = 6,
-	BUTTON_UPRIGHT      = 7,
-	/* Joystick Buttons */
-	BUTTON_MENU         = 8,    // Start on F100 GP2X
-	BUTTON_SELECT       = 9,
-	BUTTON_L            = 10,
-	BUTTON_R            = 11,
-	BUTTON_A            = 12,
-	BUTTON_B            = 13,
-	BUTTON_X            = 14,
-	BUTTON_Y            = 15,
-	BUTTON_VOLUP        = 16,
-	BUTTON_VOLDOWN      = 17,
-	BUTTON_CLICK        = 18
-};
-
-enum {
-	/* Unused Joystick Buttons on the GP2X */
-	BUTTON_HOME         = 51,
-	BUTTON_HOLD         = 52,
-	BUTTON_HELP         = 53,
-	BUTTON_HELP2        = 54
-};
-
-#else
-
-/* Main Joystick Button Mappings */
-enum {
-	/* Joystick Buttons */
-	BUTTON_A            = 0,
-	BUTTON_B            = 1,
-	BUTTON_X            = 2,
-	BUTTON_Y            = 3,
-	BUTTON_L            = 4,
-	BUTTON_R            = 5,
-	BUTTON_SELECT       = 6,
-	BUTTON_MENU         = 7,
-	BUTTON_CLICK        = 8    // Stick Click
-};
-
-enum {
-	/* Unused Joystick Buttons */
-	BUTTON_VOLUP        = 51,
-	BUTTON_VOLDOWN      = 52,
-	BUTTON_UP           = 53,
-	BUTTON_UPLEFT       = 54,
-	BUTTON_LEFT         = 55,
-	BUTTON_DOWNLEFT     = 56,
-	BUTTON_DOWN         = 57,
-	BUTTON_DOWNRIGHT    = 58,
-	BUTTON_RIGHT        = 59,
-	BUTTON_UPRIGHT      = 60,
-	BUTTON_HOME         = 61,    // Home
-	BUTTON_HOLD         = 62,    // Hold (on Power)
-	BUTTON_HELP         = 63,    // Help I
-	BUTTON_HELP2        = 64     // Help II
-};
-
-#endif
-
-enum {
-	/* Touchscreen TapMode */
-	TAPMODE_LEFT        = 0,
-	TAPMODE_RIGHT       = 1,
-	TAPMODE_HOVER       = 2
-};
-
-GPHEventSource::GPHEventSource()
-	: _buttonStateL(false),
-	  _tapmodeLevel(TAPMODE_LEFT) {
-}
-
-void GPHEventSource::ToggleTapMode() {
-	if (_tapmodeLevel == TAPMODE_LEFT) {
-		_tapmodeLevel = TAPMODE_RIGHT;
-	} else if (_tapmodeLevel == TAPMODE_RIGHT) {
-		_tapmodeLevel = TAPMODE_HOVER;
-	} else if (_tapmodeLevel == TAPMODE_HOVER) {
-		_tapmodeLevel = TAPMODE_LEFT;
-	} else {
-		_tapmodeLevel = TAPMODE_LEFT;
-	}
-}
-
-/* Custom handleMouseButtonDown/handleMouseButtonUp to deal with 'Tap Mode' for the touchscreen */
-
-bool GPHEventSource::handleMouseButtonDown(SDL_Event &ev, Common::Event &event) {
-	if (ev.button.button != SDL_BUTTON_LEFT)
-		return SdlEventSource::handleMouseButtonDown(ev, event);
-
-	if (_buttonStateL == true) /* _buttonStateL = Left Trigger Held, force Right Click */
-		event.type = Common::EVENT_RBUTTONDOWN;
-	else if (_tapmodeLevel == TAPMODE_LEFT) /* TAPMODE_LEFT = Left Click Tap Mode */
-		event.type = Common::EVENT_LBUTTONDOWN;
-	else if (_tapmodeLevel == TAPMODE_RIGHT) /* TAPMODE_RIGHT = Right Click Tap Mode */
-		event.type = Common::EVENT_RBUTTONDOWN;
-	else if (_tapmodeLevel == TAPMODE_HOVER) /* TAPMODE_HOVER = Hover (No Click) Tap Mode */
-		event.type = Common::EVENT_MOUSEMOVE;
-	else
-		event.type = Common::EVENT_LBUTTONDOWN; /* For normal mice etc. */
-
-
-	// update KbdMouse
-	_km.x = ev.button.x * MULTIPLIER;
-	_km.y = ev.button.y * MULTIPLIER;
-
-	return processMouseEvent(event, ev.button.x, ev.button.y);
-}
-
-bool GPHEventSource::handleMouseButtonUp(SDL_Event &ev, Common::Event &event) {
-	if (ev.button.button != SDL_BUTTON_LEFT)
-		return SdlEventSource::handleMouseButtonUp(ev, event);
-
-	if (_buttonStateL == true) /* _buttonStateL = Left Trigger Held, force Right Click */
-		event.type = Common::EVENT_RBUTTONUP;
-	else if (_tapmodeLevel == TAPMODE_LEFT) /* TAPMODE_LEFT = Left Click Tap Mode */
-		event.type = Common::EVENT_LBUTTONUP;
-	else if (_tapmodeLevel == TAPMODE_RIGHT) /* TAPMODE_RIGHT = Right Click Tap Mode */
-		event.type = Common::EVENT_RBUTTONUP;
-	else if (_tapmodeLevel == TAPMODE_HOVER) /* TAPMODE_HOVER = Hover (No Click) Tap Mode */
-		event.type = Common::EVENT_MOUSEMOVE;
-	else
-		event.type = Common::EVENT_LBUTTONUP; /* For normal mice etc. */
-
-
-	// update KbdMouse
-	_km.x = ev.button.x * MULTIPLIER;
-	_km.y = ev.button.y * MULTIPLIER;
-
-	return processMouseEvent(event, ev.button.x, ev.button.y);
-}
-
-/* Custom handleJoyButtonDown/handleJoyButtonUp to deal with the joystick buttons on GPH devices */
-
-bool GPHEventSource::handleJoyButtonDown(SDL_Event &ev, Common::Event &event) {
-
-	event.kbd.flags = 0;
-
-	switch (ev.jbutton.button) {
-	case BUTTON_UP:
-		if (_km.y_down_count != 2) {
-			_km.y_vel = -1 * MULTIPLIER;
-			_km.y_down_count = 1;
-		} else {
-			_km.y_vel = -4 * MULTIPLIER;
-		}
-		event.type = Common::EVENT_MOUSEMOVE;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_DOWN:
-		if (_km.y_down_count != 2) {
-			_km.y_vel = 1 * MULTIPLIER;
-			_km.y_down_count = 1;
-		} else {
-			_km.y_vel = 4 * MULTIPLIER;
-		}
-		event.type = Common::EVENT_MOUSEMOVE;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_LEFT:
-		if (_km.x_down_count != 2) {
-			_km.x_vel = -1 * MULTIPLIER;
-			_km.x_down_count = 1;
-		} else {
-			_km.x_vel = -4 * MULTIPLIER;
-		}
-		event.type = Common::EVENT_MOUSEMOVE;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_RIGHT:
-		if (_km.x_down_count != 3) {
-			_km.x_vel = 1 * MULTIPLIER;
-			_km.x_down_count = 1;
-		} else {
-			_km.x_vel = 4 * MULTIPLIER;
-		}
-		event.type = Common::EVENT_MOUSEMOVE;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_UPLEFT:
-		if (_km.x_down_count != 2) {
-			_km.x_vel = -1 * MULTIPLIER;
-			_km.x_down_count = 1;
-		} else {
-				_km.x_vel = -4 * MULTIPLIER;
-		}
-		if (_km.y_down_count != 2) {
-			_km.y_vel = -1 * MULTIPLIER;
-			_km.y_down_count = 1;
-		} else {
-			_km.y_vel = -4 * MULTIPLIER;
-		}
-		event.type = Common::EVENT_MOUSEMOVE;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_UPRIGHT:
-		if (_km.x_down_count != 2) {
-			_km.x_vel = 1 * MULTIPLIER;
-			_km.x_down_count = 1;
-		} else {
-			_km.x_vel = 4 * MULTIPLIER;
-		}
-		if (_km.y_down_count != 2) {
-			_km.y_vel = -1 * MULTIPLIER;
-			_km.y_down_count = 1;
-		} else {
-			_km.y_vel = -4 * MULTIPLIER;
-		}
-		event.type = Common::EVENT_MOUSEMOVE;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_DOWNLEFT:
-		if (_km.x_down_count != 2) {
-			_km.x_vel = -1 * MULTIPLIER;
-			_km.x_down_count = 1;
-		} else {
-			_km.x_vel = -4 * MULTIPLIER;
-		}
-		if (_km.y_down_count != 2) {
-			_km.y_vel = 1 * MULTIPLIER;
-			_km.y_down_count = 1;
-		} else {
-			_km.y_vel = 4 * MULTIPLIER;
-		}
-		event.type = Common::EVENT_MOUSEMOVE;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_DOWNRIGHT:
-		if (_km.x_down_count != 2) {
-			_km.x_vel = 1 * MULTIPLIER;
-			_km.x_down_count = 1;
-		} else {
-			_km.x_vel = 4 * MULTIPLIER;
-		}
-		if (_km.y_down_count != 2) {
-			_km.y_vel = 1 * MULTIPLIER;
-			_km.y_down_count = 1;
-		} else {
-			_km.y_vel = 4 * MULTIPLIER;
-		}
-		event.type = Common::EVENT_MOUSEMOVE;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_B:
-	case BUTTON_CLICK:
-		event.type = Common::EVENT_LBUTTONDOWN;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_X:
-		event.type = Common::EVENT_RBUTTONDOWN;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_L:
-		_buttonStateL = true;
-		break;
-	case BUTTON_R:
-		event.type = Common::EVENT_KEYDOWN;
-		if (_buttonStateL == true) {
-			event.type = Common::EVENT_VIRTUAL_KEYBOARD;
-		} else {
-			event.kbd.keycode = Common::KEYCODE_RETURN;
-			event.kbd.ascii = mapKey(SDLK_RETURN, ev.key.keysym.mod, 0);
-		}
-		break;
-	case BUTTON_SELECT:
-	case BUTTON_HOME:
-		event.type = Common::EVENT_KEYDOWN;
-		if (_buttonStateL == true) {
-			event.type = Common::EVENT_QUIT;
-		} else {
-			event.kbd.keycode = Common::KEYCODE_ESCAPE;
-			event.kbd.ascii = mapKey(SDLK_ESCAPE, ev.key.keysym.mod, 0);
-		}
-		break;
-	case BUTTON_A:
-		event.type = Common::EVENT_KEYDOWN;
-		if (_buttonStateL == true) {
-			event.type = Common::EVENT_PREDICTIVE_DIALOG;
-		} else {
-			event.kbd.keycode = Common::KEYCODE_PERIOD;
-			event.kbd.ascii = mapKey(SDLK_PERIOD, ev.key.keysym.mod, 0);
-		}
-		break;
-	case BUTTON_Y:
-		event.type = Common::EVENT_KEYDOWN;
-		if (_buttonStateL == true) {
-			ToggleTapMode();
-			if (_tapmodeLevel == TAPMODE_LEFT) {
-				g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Left Click"));
-			} else if (_tapmodeLevel == TAPMODE_RIGHT) {
-				g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Right Click"));
-			} else if (_tapmodeLevel == TAPMODE_HOVER) {
-				g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Hover (No Click)"));
-			}
-		} else {
-			event.kbd.keycode = Common::KEYCODE_SPACE;
-			event.kbd.ascii = mapKey(SDLK_SPACE, ev.key.keysym.mod, 0);
-		}
-		break;
-	case BUTTON_MENU:
-	case BUTTON_HELP:
-		event.type = Common::EVENT_KEYDOWN;
-		if (_buttonStateL == true) {
-			event.type = Common::EVENT_MAINMENU;
-		} else {
-			event.kbd.keycode = Common::KEYCODE_F5;
-			event.kbd.ascii = mapKey(SDLK_F5, ev.key.keysym.mod, 0);
-		}
-		break;
-	case BUTTON_VOLUP:
-		WIZ_HW::mixerMoveVolume(2);
-		if (WIZ_HW::volumeLevel == 100) {
-			g_system->displayMessageOnOSD(_("Maximum Volume"));
-		} else {
-			g_system->displayMessageOnOSD(_("Increasing Volume"));
-		}
-		break;
-	case BUTTON_VOLDOWN:
-		WIZ_HW::mixerMoveVolume(1);
-		if (WIZ_HW::volumeLevel == 0) {
-			g_system->displayMessageOnOSD(_("Minimal Volume"));
-		} else {
-			g_system->displayMessageOnOSD(_("Decreasing Volume"));
-		}
-		break;
-	case BUTTON_HOLD:
-		event.type = Common::EVENT_QUIT;
-		break;
-	case BUTTON_HELP2:
-		ToggleTapMode();
-		if (_tapmodeLevel == TAPMODE_LEFT) {
-			g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Left Click"));
-		} else if (_tapmodeLevel == TAPMODE_RIGHT) {
-			g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Right Click"));
-		} else if (_tapmodeLevel == TAPMODE_HOVER) {
-			g_system->displayMessageOnOSD(_("Touchscreen 'Tap Mode' - Hover (No Click)"));
-		}
-		break;
-	}
-	return true;
-}
-
-bool GPHEventSource::handleJoyButtonUp(SDL_Event &ev, Common::Event &event) {
-
-	event.kbd.flags = 0;
-
-	switch (ev.jbutton.button) {
-	case BUTTON_UP:
-	case BUTTON_UPLEFT:
-	case BUTTON_LEFT:
-	case BUTTON_DOWNLEFT:
-	case BUTTON_DOWN:
-	case BUTTON_DOWNRIGHT:
-	case BUTTON_RIGHT:
-	case BUTTON_UPRIGHT:
-		_km.y_vel = 0;
-		_km.y_down_count = 0;
-		_km.x_vel = 0;
-		_km.x_down_count = 0;
-		event.type = Common::EVENT_MOUSEMOVE;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_B:
-	case BUTTON_CLICK:
-		event.type = Common::EVENT_LBUTTONUP;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_X:
-		event.type = Common::EVENT_RBUTTONUP;
-		processMouseEvent(event, _km.x / MULTIPLIER, _km.y / MULTIPLIER);
-		break;
-	case BUTTON_L:
-		_buttonStateL = false;
-		break;
-	case BUTTON_SELECT:
-	case BUTTON_HOME:
-		event.type = Common::EVENT_KEYUP;
-		event.kbd.keycode = Common::KEYCODE_ESCAPE;
-		event.kbd.ascii = mapKey(SDLK_ESCAPE, ev.key.keysym.mod, 0);
-		break;
-	case BUTTON_A:
-		event.type = Common::EVENT_KEYUP;
-		event.kbd.keycode = Common::KEYCODE_PERIOD;
-		event.kbd.ascii = mapKey(SDLK_PERIOD, ev.key.keysym.mod, 0);
-		break;
-	case BUTTON_Y:
-		event.type = Common::EVENT_KEYUP;
-		event.kbd.keycode = Common::KEYCODE_SPACE;
-		event.kbd.ascii = mapKey(SDLK_SPACE, ev.key.keysym.mod, 0);
-		break;
-	case BUTTON_MENU:
-	case BUTTON_HELP:
-		event.type = Common::EVENT_KEYUP;
-		if (_buttonStateL == true) {
-			event.type = Common::EVENT_MAINMENU;
-		} else {
-			event.kbd.keycode = Common::KEYCODE_F5;
-			event.kbd.ascii = mapKey(SDLK_F5, ev.key.keysym.mod, 0);
-		}
-		break;
-	case BUTTON_R:
-		event.type = Common::EVENT_KEYUP;
-		if (_buttonStateL == true) {
-			event.kbd.keycode = Common::KEYCODE_F7;
-			event.kbd.ascii = mapKey(SDLK_F7, ev.key.keysym.mod, 0);
-		} else {
-			event.kbd.keycode = Common::KEYCODE_RETURN;
-			event.kbd.ascii = mapKey(SDLK_RETURN, ev.key.keysym.mod, 0);
-		}
-		break;
-	case BUTTON_VOLUP:
-		break;
-	case BUTTON_VOLDOWN:
-		break;
-	case BUTTON_HOLD:
-		break;
-	case BUTTON_HELP2:
-		break;
-	}
-	return true;
-}
-
-bool GPHEventSource::remapKey(SDL_Event &ev, Common::Event &event) {
-	return false;
-}
-
-#endif
diff --git a/backends/events/gph/gph-events.h b/backends/events/gph/gph-events.h
deleted file mode 100644
index caecabde7f3..00000000000
--- a/backends/events/gph/gph-events.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#if !defined(BACKEND_EVENTS_GPH_H) && !defined(DISABLE_DEFAULT_EVENTMANAGER)
-#define BACKEND_EVENTS_GPH_H
-
-#include "backends/events/sdl/legacy-sdl-events.h"
-
-/*
- * SDL Events manager for GPH devices.
- */
-
-class GPHEventSource : public LegacySdlEventSource {
-public:
-	GPHEventSource();
-
-protected:
-	/**
-	 * Button state for L button modifier
-	 */
-	bool _buttonStateL;
-
-	int _tapmodeLevel;
-
-	void ToggleTapMode();
-
-	bool handleJoyButtonDown(SDL_Event &ev, Common::Event &event);
-	bool handleJoyButtonUp(SDL_Event &ev, Common::Event &event);
-	bool handleMouseButtonDown(SDL_Event &ev, Common::Event &event);
-	bool handleMouseButtonUp(SDL_Event &ev, Common::Event &event);
-	bool remapKey(SDL_Event &ev, Common::Event &event);
-};
-
-#endif /* BACKEND_EVENTS_GPH_H */
diff --git a/backends/graphics/gph/gph-graphics.cpp b/backends/graphics/gph/gph-graphics.cpp
deleted file mode 100644
index 8c13b4211d3..00000000000
--- a/backends/graphics/gph/gph-graphics.cpp
+++ /dev/null
@@ -1,68 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#include "common/scummsys.h"
-
-#if defined(GPH_DEVICE)
-
-#include "backends/graphics/gph/gph-graphics.h"
-
-GPHGraphicsManager::GPHGraphicsManager(SdlEventSource *sdlEventSource, SdlWindow *window)
-	: SurfaceSdlGraphicsManager(sdlEventSource, window) {
-}
-
-void GPHGraphicsManager::initSize(uint w, uint h, const Graphics::PixelFormat *format) {
-	SurfaceSdlGraphicsManager::initSize(w, h, format);
-
-	_videoMode.overlayWidth = 320;
-	_videoMode.overlayHeight = 240;
-}
-
-void GPHGraphicsManager::setupHardwareSize() {
-	// Set the hardware stats to match the LCD.
-	_videoMode.hardwareWidth = 320;
-	_videoMode.hardwareHeight = 240;
-
-	if (_videoMode.screenHeight != 200)
-		_videoMode.aspectRatioCorrection = false;
-
-	if (_videoMode.screenWidth > 320 || _videoMode.screenHeight > 240) {
-		_videoMode.aspectRatioCorrection = false;
-	}
-
-	_videoMode.overlayWidth = _videoMode.screenWidth * _videoMode.scaleFactor;
-	_videoMode.overlayHeight = _videoMode.screenHeight * _videoMode.scaleFactor;
-
-	if (_videoMode.aspectRatioCorrection)
-		_videoMode.overlayHeight = real2Aspect(_videoMode.overlayHeight);
-}
-
-bool GPHGraphicsManager::loadGFXMode() {
-	bool success = SurfaceSdlGraphicsManager::loadGFXMode();
-
-	// The old GP2X hacked SDL needs this after any call to SDL_SetVideoMode
-	// and it does not hurt other devices.
-	SDL_ShowCursor(SDL_DISABLE);
-
-	return success;
-}
-
-#endif
diff --git a/backends/graphics/gph/gph-graphics.h b/backends/graphics/gph/gph-graphics.h
deleted file mode 100644
index 3b6c94fc5a8..00000000000
--- a/backends/graphics/gph/gph-graphics.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#ifndef BACKENDS_GRAPHICS_GPH_H
-#define BACKENDS_GRAPHICS_GPH_H
-
-#include "backends/graphics/surfacesdl/surfacesdl-graphics.h"
-
-class GPHGraphicsManager : public SurfaceSdlGraphicsManager {
-public:
-	GPHGraphicsManager(SdlEventSource *boss, SdlWindow *window);
-
-	void initSize(uint w, uint h, const Graphics::PixelFormat *format = NULL) override;
-	bool loadGFXMode() override;
-
-protected:
-	void setupHardwareSize() override;
-};
-
-#endif /* BACKENDS_GRAPHICS_GPH_H */
diff --git a/backends/platform/gph/build/caanoo-build.sh b/backends/platform/gph/build/caanoo-build.sh
deleted file mode 100644
index 8000d2595d9..00000000000
--- a/backends/platform/gph/build/caanoo-build.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-echo Quick script to make building all the time less painful.
-
-# Set the paths up here to support the build.
-
-cd ../../../..
-
-echo Building ScummVM for GP2X Caanoo.
-make
-
-echo Build for GP2X Caanoo - complete - Please check build logs.
diff --git a/backends/platform/gph/build/caanoo-bundle-debug.sh b/backends/platform/gph/build/caanoo-bundle-debug.sh
deleted file mode 100644
index 2d5cefe80e5..00000000000
--- a/backends/platform/gph/build/caanoo-bundle-debug.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-echo Quick script to make building a distribution of the GP2X Caanoo backend more consistent.
-
-cd ../../../..
-
-echo Building ScummVM for GP2X Caanoo.
-
-make caanoo-bundle-debug
diff --git a/backends/platform/gph/build/caanoo-bundle.sh b/backends/platform/gph/build/caanoo-bundle.sh
deleted file mode 100644
index 76fd31cec61..00000000000
--- a/backends/platform/gph/build/caanoo-bundle.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-echo Quick script to make building a distribution of the GP2X Caanoo backend more consistent.
-
-cd ../../../..
-
-echo Building ScummVM for GP2X Caanoo.
-
-make caanoo-bundle
diff --git a/backends/platform/gph/build/caanoo-config-alleng.sh b/backends/platform/gph/build/caanoo-config-alleng.sh
deleted file mode 100644
index b7836508ed4..00000000000
--- a/backends/platform/gph/build/caanoo-config-alleng.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-echo Quick script to make running configure all the time less painful
-echo and let all the build work be done from the backend/build folder.
-
-# Assume Caanoo toolchain/build env and source it.
-. /opt/arm-caanoo/environment-setup
-
-# Edit the configure line to suit.
-cd ../../../..
-./configure --backend=caanoo --disable-mt32emu --host=caanoo \
-  --disable-alsa --disable-flac \
-  --disable-nasm --disable-vorbis --disable-hq-scalers \
-  --with-sdl-prefix=/opt/arm-caanoo/arm-none-linux-gnueabi/usr/bin \
-  --enable-tremor --with-tremor-prefix=/opt/arm-caanoo/arm-none-linux-gnueabi/usr \
-  --enable-zlib --with-zlib-prefix=/opt/arm-caanoo/arm-none-linux-gnueabi/usr \
-  --enable-mad --with-mad-prefix=/opt/arm-caanoo/arm-none-linux-gnueabi/usr \
-  --enable-png --with-png-prefix=/opt/arm-caanoo/arm-none-linux-gnueabi/usr \
-  --enable-all-engines --enable-vkeybd --enable-plugins --default-dynamic
-
-echo Generating config for Caanoo complete. Check for errors.
diff --git a/backends/platform/gph/build/caanoo-config.sh b/backends/platform/gph/build/caanoo-config.sh
deleted file mode 100644
index fe191647e6c..00000000000
--- a/backends/platform/gph/build/caanoo-config.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-echo Quick script to make running configure all the time less painful
-echo and let all the build work be done from the backend/build folder.
-
-# Assume Caanoo toolchain/build env.
-. /opt/arm-caanoo/environment-setup
-
-# Edit the configure line to suit.
-cd ../../../..
-./configure --backend=caanoo --disable-mt32emu --host=caanoo \
-  --disable-alsa --disable-flac \
-  --disable-nasm --disable-vorbis --disable-hq-scalers \
-  --with-sdl-prefix=/opt/arm-caanoo/arm-none-linux-gnueabi/usr/bin \
-  --enable-tremor --with-tremor-prefix=/opt/arm-caanoo/arm-none-linux-gnueabi/usr \
-  --enable-zlib --with-zlib-prefix=/opt/arm-caanoo/arm-none-linux-gnueabi/usr \
-  --enable-mad --with-mad-prefix=/opt/arm-caanoo/arm-none-linux-gnueabi/usr \
-  --enable-png --with-png-prefix=/opt/arm-caanoo/arm-none-linux-gnueabi/usr \
-  --enable-vkeybd --enable-plugins --default-dynamic
-
-echo Generating config for GP2X Caanoo complete. Check for errors.
diff --git a/backends/platform/gph/build/clean.sh b/backends/platform/gph/build/clean.sh
deleted file mode 100755
index 6d58b7a975d..00000000000
--- a/backends/platform/gph/build/clean.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-echo Quick script to make building all the time less painful.
-
-cd ../../../..
-
-echo Cleaning ScummVM for the GPH devices.
-make clean
diff --git a/backends/platform/gph/build/gp2x-build.sh b/backends/platform/gph/build/gp2x-build.sh
deleted file mode 100644
index 1ea77f49376..00000000000
--- a/backends/platform/gph/build/gp2x-build.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-echo Quick script to make building all the time less painful.
-
-# Set the paths up here to support the build.
-
-export PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/arm-open2x-linux/bin:$PATH
-export PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin:$PATH
-export CXX=arm-open2x-linux-g++
-export CC=arm-open2x-linux-gcc
-export CXXFLAGS=-march=armv4t
-export LDFLAGS=-static
-export ASFLAGS=-mfloat-abi=soft
-
-cd ../../../..
-
-echo Building ScummVM for GP2X.
-make
-
-echo Build for GP2X - SDL - complete - Please check build logs.
diff --git a/backends/platform/gph/build/gp2x-bundle.sh b/backends/platform/gph/build/gp2x-bundle.sh
deleted file mode 100644
index c4fe63ed9e6..00000000000
--- a/backends/platform/gph/build/gp2x-bundle.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-echo Quick script to make building a distribution of the GP2X port more consistent.
-
-# Set the paths up here to support the build.
-
-export PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/arm-open2x-linux/bin:$PATH
-export PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin:$PATH
-export CXX=arm-open2x-linux-g++
-export CC=arm-open2x-linux-gcc
-export CXXFLAGS=-march=armv4t
-export LDFLAGS=-static
-export ASFLAGS=-mfloat-abi=soft
-
-cd ../../../..
-
-echo Building ScummVM for GP2X Wiz.
-
-make gp2x-bundle
diff --git a/backends/platform/gph/build/gp2x-config-alleng.sh b/backends/platform/gph/build/gp2x-config-alleng.sh
deleted file mode 100644
index 83a4fe20462..00000000000
--- a/backends/platform/gph/build/gp2x-config-alleng.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-echo Quick script to make running configure all the time less painful
-echo and let all the build work be done from the backend/build folder.
-
-# Set the paths up here to generate the config.
-
-PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/arm-open2x-linux/bin:$PATH
-PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin:$PATH
-
-# Export the tool names for cross-compiling
-export CXX=arm-open2x-linux-g++
-export CXXFLAGS=-march=armv4t
-export CPPFLAGS=-I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include
-export LDFLAGS=-L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib
-export DEFINES=-DNDEBUG
-
-# Edit the configure line to suit.
-cd ../../../..
-./configure --backend=gp2x --disable-mt32emu --host=gp2x \
-  --disable-flac --disable-nasm --disable-hq-scalers \
-  --with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin \
-  --enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-zlib --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-all-engines --enable-vkeybd
-#--enable-plugins --default-dynamic
-
-echo Generating config for GP2X complete. Check for errors.
diff --git a/backends/platform/gph/build/gp2x-config.sh b/backends/platform/gph/build/gp2x-config.sh
deleted file mode 100644
index 31e1d50e2b3..00000000000
--- a/backends/platform/gph/build/gp2x-config.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-echo Quick script to make running configure all the time less painful
-echo and let all the build work be done from the backend/build folder.
-
-# Set the paths up here to generate the config.
-
-PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/arm-open2x-linux/bin:$PATH
-PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin:$PATH
-
-# Export the tool names for cross-compiling
-export CXX=arm-open2x-linux-g++
-export CXXFLAGS=-march=armv4t
-export CPPFLAGS=-I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include
-export LDFLAGS=-L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib
-export DEFINES=-DNDEBUG
-
-# Edit the configure line to suit.
-cd ../../../..
-./configure --backend=gp2x --disable-mt32emu --host=gp2x \
-  --disable-flac --disable-nasm --disable-hq-scalers \
-  --with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin \
-  --enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-zlib --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-vkeybd
-
-# --enable-plugins --default-dynamic
-# --disable-release --enable-debug
-
-echo Generating config for GP2X complete. Check for errors.
diff --git a/backends/platform/gph/build/gp2xwiz-build.sh b/backends/platform/gph/build/gp2xwiz-build.sh
deleted file mode 100644
index 876c3e378a7..00000000000
--- a/backends/platform/gph/build/gp2xwiz-build.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-echo Quick script to make building all the time less painful.
-
-# Set the paths up here to support the build.
-
-export PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/arm-open2x-linux/bin:$PATH
-export PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin:$PATH
-export CXX=arm-open2x-linux-g++
-export CC=arm-open2x-linux-gcc
-export CXXFLAGS="-mcpu=arm926ej-s -mtune=arm926ej-s"
-export ASFLAGS=-mfloat-abi=soft
-
-cd ../../../..
-
-echo Building ScummVM for GP2X Wiz.
-make
-
-echo Build for GP2X Wiz - complete - Please check build logs.
diff --git a/backends/platform/gph/build/gp2xwiz-bundle-debug.sh b/backends/platform/gph/build/gp2xwiz-bundle-debug.sh
deleted file mode 100644
index cd5145b31d1..00000000000
--- a/backends/platform/gph/build/gp2xwiz-bundle-debug.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-echo Quick script to make building a distribution of the GP2X Wiz backend more consistent.
-
-cd ../../../..
-
-echo Building ScummVM for GP2X Wiz.
-
-make gp2xwiz-bundle-debug
diff --git a/backends/platform/gph/build/gp2xwiz-bundle.sh b/backends/platform/gph/build/gp2xwiz-bundle.sh
deleted file mode 100644
index 2182f207c34..00000000000
--- a/backends/platform/gph/build/gp2xwiz-bundle.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-echo Quick script to make building a distribution of the GP2X Wiz backend more consistent.
-
-# Set the paths up here to support the build.
-
-export PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/arm-open2x-linux/bin:$PATH
-export PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin:$PATH
-export CXX=arm-open2x-linux-g++
-export CC=arm-open2x-linux-gcc
-export CXXFLAGS=-march=armv4t
-export LDFLAGS=-static
-export ASFLAGS=-mfloat-abi=soft
-
-cd ../../../..
-
-echo Building ScummVM for GP2X Wiz.
-
-make gp2xwiz-bundle
diff --git a/backends/platform/gph/build/gp2xwiz-config-alleng.sh b/backends/platform/gph/build/gp2xwiz-config-alleng.sh
deleted file mode 100644
index ff905d05858..00000000000
--- a/backends/platform/gph/build/gp2xwiz-config-alleng.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-
-echo Quick script to make running configure all the time less painful
-echo and let all the build work be done from the backend/build folder.
-
-# Set the paths up here to generate the config.
-
-PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/arm-open2x-linux/bin:$PATH
-PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin:$PATH
-
-# Export the tool names for cross-compiling
-export CXX=arm-open2x-linux-g++
-export CXXFLAGS="-mcpu=arm926ej-s -mtune=arm926ej-s"
-export CPPFLAGS=-I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include
-export LDFLAGS=-L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib
-
-# Edit the configure line to suit.
-cd ../../../..
-./configure --backend=gph --disable-mt32emu --host=gp2xwiz \
-  --disable-flac --disable-nasm --disable-hq-scalers \
-  --with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin \
-  --enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-zlib   --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-png --with-png-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-vkeybd --enable-all-engines --enable-plugins --default-dynamic
-
-echo Generating config for GP2X Wiz complete. Check for errors.
diff --git a/backends/platform/gph/build/gp2xwiz-config.sh b/backends/platform/gph/build/gp2xwiz-config.sh
deleted file mode 100644
index 7be103602b0..00000000000
--- a/backends/platform/gph/build/gp2xwiz-config.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-echo Quick script to make running configure all the time less painful
-echo and let all the build work be done from the backend/build folder.
-
-# Set the paths up here to generate the config.
-
-PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/arm-open2x-linux/bin:$PATH
-PATH=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin:$PATH
-
-# Export the tool names for cross-compiling
-export CXX=arm-open2x-linux-g++
-export CXXFLAGS="-mcpu=arm926ej-s -mtune=arm926ej-s"
-export CPPFLAGS=-I/opt/open2x/gcc-4.1.1-glibc-2.3.6/include
-export LDFLAGS=-L/opt/open2x/gcc-4.1.1-glibc-2.3.6/lib
-
-# Edit the configure line to suit.
-cd ../../../..
-./configure --backend=gph --disable-mt32emu --host=gp2xwiz \
-  --disable-flac --disable-nasm --disable-hq-scalers \
-  --with-sdl-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6/bin \
-  --enable-tremor --with-tremor-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-zlib   --with-zlib-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-mad --with-mad-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-png --with-png-prefix=/opt/open2x/gcc-4.1.1-glibc-2.3.6 \
-  --enable-vkeybd --enable-plugins --default-dynamic
-
-echo Generating config for GP2X Wiz complete. Check for errors.
diff --git a/backends/platform/gph/caanoo-bundle.mk b/backends/platform/gph/caanoo-bundle.mk
deleted file mode 100644
index f6dd5a12044..00000000000
--- a/backends/platform/gph/caanoo-bundle.mk
+++ /dev/null
@@ -1,83 +0,0 @@
-# Special target to create bundles for the GP2X Caanoo.
-
-#bundle_name = release/scummvm-caanoo-`date '+%Y-%m-%d'`
-bundle_name = release/scummvm-caanoo
-f=$(shell which $(STRIP))
-libloc = $(shell dirname $(f))
-
-caanoo-bundle: $(EXECUTABLE)
-	$(MKDIR) "$(bundle_name)"
-	$(MKDIR) "$(bundle_name)/scummvm"
-	$(MKDIR) "$(bundle_name)/scummvm/saves"
-	$(MKDIR) "$(bundle_name)/scummvm/engine-data"
-	$(MKDIR) "$(bundle_name)/scummvm/lib"
-
-	echo "Please put your save games in this dir" >> "$(bundle_name)/scummvm/saves/PUT_SAVES_IN_THIS_DIR"
-
-	$(CP) $(srcdir)/dists/gph/caanoo/scummvm.gpe $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/scummvm.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/scummvmb.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/README-GPH $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/scummvm.ini $(bundle_name)/
-
-	$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) $(bundle_name)/scummvm/
-	$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(bundle_name)/scummvm/
-ifdef DIST_FILES_ENGINEDATA
-	$(INSTALL) -c -m 644 $(DIST_FILES_ENGINEDATA) $(bundle_name)/scummvm/engine-data
-endif
-ifdef DIST_FILES_NETWORKING
-	$(INSTALL) -c -m 644 $(DIST_FILES_NETWORKING) $(bundle_name)/scummvm/
-endif
-ifdef DIST_FILES_VKEYBD
-	$(INSTALL) -c -m 644 $(DIST_FILES_VKEYBD) $(bundle_name)/scummvm/
-endif
-
-	$(STRIP) $(EXECUTABLE) -o $(bundle_name)/scummvm/$(EXECUTABLE)
-
-ifdef DYNAMIC_MODULES
-	$(INSTALL) -d "$(bundle_name)/scummvm/plugins"
-	$(INSTALL) -c -m 644 $(PLUGINS) "$(bundle_name)/scummvm/plugins"
-	$(STRIP) $(bundle_name)/scummvm/plugins/*
-endif
-
-	tar -C $(bundle_name) -cvjf $(bundle_name).tar.bz2 .
-	rm -R ./$(bundle_name)
-
-caanoo-bundle-debug: $(EXECUTABLE)
-	$(MKDIR) "$(bundle_name)"
-	$(MKDIR) "$(bundle_name)/scummvm"
-	$(MKDIR) "$(bundle_name)/scummvm/saves"
-	$(MKDIR) "$(bundle_name)/scummvm/engine-data"
-	$(MKDIR) "$(bundle_name)/scummvm/lib"
-
-	echo "Please put your save games in this dir" >> "$(bundle_name)/scummvm/saves/PUT_SAVES_IN_THIS_DIR"
-
-	$(CP) $(srcdir)/dists/gph/caanoo/scummvm-gdb.gpe $(bundle_name)/scummvm/scummvm.gpe
-	$(CP) $(srcdir)/dists/gph/scummvm.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/scummvmb.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/README-GPH $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/scummvm.ini $(bundle_name)/
-
-	$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) $(bundle_name)/scummvm/
-	$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(bundle_name)/scummvm/
-ifdef DIST_FILES_ENGINEDATA
-	$(INSTALL) -c -m 644 $(DIST_FILES_ENGINEDATA) $(bundle_name)/scummvm/engine-data
-endif
-ifdef DIST_FILES_NETWORKING
-	$(INSTALL) -c -m 644 $(DIST_FILES_NETWORKING) $(bundle_name)/scummvm/
-endif
-ifdef DIST_FILES_VKEYBD
-	$(INSTALL) -c -m 644 $(DIST_FILES_VKEYBD) $(bundle_name)/scummvm/
-endif
-
-	$(INSTALL) -c -m 777 $(srcdir)/$(EXECUTABLE) $(bundle_name)/scummvm/$(EXECUTABLE)
-
-ifdef DYNAMIC_MODULES
-	$(INSTALL) -d "$(bundle_name)/scummvm/plugins"
-	$(INSTALL) -c -m 644 $(PLUGINS) "$(bundle_name)/scummvm/plugins"
-endif
-
-	tar -C $(bundle_name) -cvjf $(bundle_name)-debug.tar.bz2 .
-	rm -R ./$(bundle_name)
-
-.PHONY: caanoo-bundle caanoo-bundle-debug
diff --git a/backends/platform/gph/gp2x-bundle.mk b/backends/platform/gph/gp2x-bundle.mk
deleted file mode 100644
index ea38ae30371..00000000000
--- a/backends/platform/gph/gp2x-bundle.mk
+++ /dev/null
@@ -1,82 +0,0 @@
-# Special target to create bundles for the GP2X.
-
-bundle_name = release/scummvm-gp2x
-f=$(shell which $(STRIP))
-libloc = $(shell dirname $(f))
-
-gp2x-bundle: $(EXECUTABLE)
-	$(MKDIR) "$(bundle_name)"
-	$(MKDIR) "$(bundle_name)/saves"
-	$(MKDIR) "$(bundle_name)/engine-data"
-	$(MKDIR) "$(bundle_name)/lib"
-
-	echo "Please put your save games in this dir" >> "$(bundle_name)/saves/PUT_SAVES_IN_THIS_DIR"
-
-	$(CP) $(srcdir)/dists/gph/gp2x/scummvm.gpe $(bundle_name)
-	$(CP) $(srcdir)/dists/gph/scummvm.png $(bundle_name)
-	$(CP) $(srcdir)/dists/gph/README-GPH $(bundle_name)
-	$(CP) $(srcdir)/dists/gph/gp2x/mmuhack/mmuhack.o $(bundle_name)
-
-	$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) $(bundle_name)
-	$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(bundle_name)
-ifdef DIST_FILES_ENGINEDATA
-	$(INSTALL) -c -m 644 $(DIST_FILES_ENGINEDATA) $(bundle_name)/engine-data
-endif
-ifdef DIST_FILES_NETWORKING
-	$(INSTALL) -c -m 644 $(DIST_FILES_NETWORKING) $(bundle_name)
-endif
-ifdef DIST_FILES_VKEYBD
-	$(INSTALL) -c -m 644 $(DIST_FILES_VKEYBD) $(bundle_name)
-endif
-
-	$(STRIP) $(EXECUTABLE) -o $(bundle_name)/$(EXECUTABLE)
-
-ifdef DYNAMIC_MODULES
-	$(INSTALL) -d "$(bundle_name)/plugins"
-	$(INSTALL) -c -m 644 $(PLUGINS) "$(bundle_name)/plugins"
-	$(STRIP) $(bundle_name)/plugins/*
-endif
-
-	$(CP) $(libloc)/../arm-open2x-linux/lib/libdl.so $(bundle_name)/lib/libdl.so
-
-	tar -C $(bundle_name) -cvjf $(bundle_name).tar.bz2 .
-	rm -R ./$(bundle_name)
-
-gp2x-bundle-debug: $(EXECUTABLE)
-	$(MKDIR) "$(bundle_name)"
-	$(MKDIR) "$(bundle_name)/saves"
-	$(MKDIR) "$(bundle_name)/engine-data"
-	$(MKDIR) "$(bundle_name)/lib"
-
-	echo "Please put your save games in this dir" >> "$(bundle_name)/saves/PUT_SAVES_IN_THIS_DIR"
-
-	$(CP) $(srcdir)/dists/gph/gp2x/scummvm.gpe $(bundle_name)
-	$(CP) $(srcdir)/dists/gph/scummvm.png $(bundle_name)
-	$(CP) $(srcdir)/dists/gph/README-GPH $(bundle_name)
-	$(CP) $(srcdir)/dists/gph/gp2x/mmuhack/mmuhack.o $(bundle_name)
-
-	$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) $(bundle_name)
-	$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(bundle_name)
-ifdef DIST_FILES_ENGINEDATA
-	$(INSTALL) -c -m 644 $(DIST_FILES_ENGINEDATA) $(bundle_name)/engine-data
-endif
-ifdef DIST_FILES_NETWORKING
-	$(INSTALL) -c -m 644 $(DIST_FILES_NETWORKING) $(bundle_name)
-endif
-ifdef DIST_FILES_VKEYBD
-	$(INSTALL) -c -m 644 $(DIST_FILES_VKEYBD) $(bundle_name)
-endif
-
-	$(INSTALL) -c -m 777 $(srcdir)/$(EXECUTABLE) $(bundle_name)/$(EXECUTABLE)
-
-ifdef DYNAMIC_MODULES
-	$(INSTALL) -d "$(bundle_name)/scummvm/plugins"
-	$(INSTALL) -c -m 644 $(PLUGINS) "$(bundle_name)/scummvm/plugins"
-endif
-
-	$(CP) $(libloc)/../arm-open2x-linux/lib/libdl.so $(bundle_name)/lib/libdl.so
-
-	tar -C $(bundle_name) -cvjf $(bundle_name)-debug.tar.bz2 .
-	rm -R ./$(bundle_name)
-
-.PHONY: gp2x-bundle gp2x-bundle-debug
diff --git a/backends/platform/gph/gp2xwiz-bundle.mk b/backends/platform/gph/gp2xwiz-bundle.mk
deleted file mode 100644
index 9d543e3f182..00000000000
--- a/backends/platform/gph/gp2xwiz-bundle.mk
+++ /dev/null
@@ -1,88 +0,0 @@
-# Special target to create bundles for the GP2X Wiz.
-
-bundle_name = release/scummvm-gp2xwiz
-f=$(shell which $(STRIP))
-libloc = $(shell dirname $(f))
-
-gp2xwiz-bundle: $(EXECUTABLE)
-	$(MKDIR) "$(bundle_name)"
-	$(MKDIR) "$(bundle_name)/scummvm"
-	$(MKDIR) "$(bundle_name)/scummvm/saves"
-	$(MKDIR) "$(bundle_name)/scummvm/engine-data"
-	$(MKDIR) "$(bundle_name)/scummvm/lib"
-
-	echo "Please put your save games in this dir" >> "$(bundle_name)/scummvm/saves/PUT_SAVES_IN_THIS_DIR"
-
-	$(CP) $(srcdir)/dists/gph/gp2xwiz/scummvm.gpe $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/scummvm.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/scummvmb.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/README-GPH $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/scummvm.ini $(bundle_name)/
-
-	$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) $(bundle_name)/scummvm/
-	$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(bundle_name)/scummvm/
-ifdef DIST_FILES_ENGINEDATA
-	$(INSTALL) -c -m 644 $(DIST_FILES_ENGINEDATA) $(bundle_name)/scummvm/engine-data
-endif
-ifdef DIST_FILES_NETWORKING
-	$(INSTALL) -c -m 644 $(DIST_FILES_NETWORKING) $(bundle_name)/scummvm/
-endif
-ifdef DIST_FILES_VKEYBD
-	$(INSTALL) -c -m 644 $(DIST_FILES_VKEYBD) $(bundle_name)/scummvm/
-endif
-
-	$(STRIP) $(EXECUTABLE) -o $(bundle_name)/scummvm/$(EXECUTABLE)
-
-ifdef DYNAMIC_MODULES
-	$(INSTALL) -d "$(bundle_name)/scummvm/plugins"
-	$(INSTALL) -c -m 644 $(PLUGINS) "$(bundle_name)/scummvm/plugins"
-	$(STRIP) $(bundle_name)/scummvm/plugins/*
-endif
-
-	$(CP) $(libloc)/../lib/libz.so.1.2.3 $(bundle_name)/scummvm/lib/libz.so.1
-	$(CP) $(libloc)/../lib/libvorbisidec.so.1.0.2 $(bundle_name)/scummvm/lib/libvorbisidec.so.1
-
-	tar -C $(bundle_name) -cvjf $(bundle_name).tar.bz2 .
-	rm -R ./$(bundle_name)
-
-gp2xwiz-bundle-debug: $(EXECUTABLE)
-	$(MKDIR) "$(bundle_name)"
-	$(MKDIR) "$(bundle_name)/scummvm"
-	$(MKDIR) "$(bundle_name)/scummvm/saves"
-	$(MKDIR) "$(bundle_name)/scummvm/engine-data"
-	$(MKDIR) "$(bundle_name)/scummvm/lib"
-
-	echo "Please put your save games in this dir" >> "$(bundle_name)/scummvm/saves/PUT_SAVES_IN_THIS_DIR"
-
-	$(CP) $(srcdir)/dists/gph/gp2xwiz/scummvm-gdb.gpe $(bundle_name)/scummvm/scummvm.gpe
-	$(CP) $(srcdir)/dists/gph/scummvm.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/scummvmb.png $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/README-GPH $(bundle_name)/scummvm/
-	$(CP) $(srcdir)/dists/gph/scummvm.ini $(bundle_name)/
-
-	$(INSTALL) -c -m 644 $(DIST_FILES_DOCS) $(bundle_name)/scummvm/
-	$(INSTALL) -c -m 644 $(DIST_FILES_THEMES) $(bundle_name)/scummvm/
-ifdef DIST_FILES_ENGINEDATA
-	$(INSTALL) -c -m 644 $(DIST_FILES_ENGINEDATA) $(bundle_name)/scummvm/engine-data
-endif
-ifdef DIST_FILES_NETWORKING
-	$(INSTALL) -c -m 644 $(DIST_FILES_NETWORKING) $(bundle_name)/scummvm/
-endif
-ifdef DIST_FILES_VKEYBD
-	$(INSTALL) -c -m 644 $(DIST_FILES_VKEYBD) $(bundle_name)/scummvm/
-endif
-
-	$(INSTALL) -c -m 777 $(srcdir)/$(EXECUTABLE) $(bundle_name)/scummvm/$(EXECUTABLE)
-
-ifdef DYNAMIC_MODULES
-	$(INSTALL) -d "$(bundle_name)/scummvm/plugins"
-	$(INSTALL) -c -m 644 $(PLUGINS) "$(bundle_name)/scummvm/plugins"
-endif
-
-	$(CP) $(libloc)/../lib/libz.so.1.2.3 $(bundle_name)/scummvm/lib/libz.so.1
-	$(CP) $(libloc)/../lib/libvorbisidec.so.1.0.2 $(bundle_name)/scummvm/lib/libvorbisidec.so.1
-
-	tar -C $(bundle_name) -cvjf $(bundle_name)-debug.tar.bz2 .
-	rm -R ./$(bundle_name)
-
-.PHONY: gp2xwiz-bundle gp2xwiz-bundle-debug
diff --git a/backends/platform/gph/gph-backend.cpp b/backends/platform/gph/gph-backend.cpp
deleted file mode 100644
index 3282e8aad41..00000000000
--- a/backends/platform/gph/gph-backend.cpp
+++ /dev/null
@@ -1,219 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#if defined(GPH_DEVICE)
-
-// Disable symbol overrides so that we can use system headers.
-#define FORBIDDEN_SYMBOL_ALLOW_ALL
-
-#include "backends/platform/sdl/sdl-sys.h"
-
-#include "backends/platform/gph/gph-hw.h"
-#include "backends/platform/gph/gph.h"
-#include "backends/plugins/posix/posix-provider.h"
-#include "backends/saves/default/default-saves.h"
-#include "backends/timer/default/default-timer.h"
-
-#include "common/archive.h"
-#include "common/config-manager.h"
-#include "common/debug.h"
-#include "common/events.h"
-#include "common/file.h"
-#include "common/textconsole.h"
-#include "common/util.h"
-
-#include "audio/mixer_intern.h"
-
-#include <unistd.h> // for getcwd()
-
-/* Dump console info to files. */
-#define DUMP_STDOUT
-
-OSystem_GPH::OSystem_GPH()
-	:
-	OSystem_POSIX() {
-}
-
-Common::String OSystem_GPH::getCurrentDirectory() {
-	char cwd[MAXPATHLEN+1];
-	return Common::String(getcwd(cwd, MAXPATHLEN));
-}
-
-void OSystem_GPH::initBackend() {
-
-	assert(!_inited);
-
-	/* Setup default save path to be workingdir/saves */
-
-	Common::String workDirName = getCurrentDirectory();
-	if (workDirName.empty()) {
-		error("Could not obtain current working directory.");
-	} else {
-		printf("Current working directory: %s\n", workDirName.c_str());
-	}
-
-	Common::String savePath = workDirName + "/saves";
-	printf("Current save directory: %s\n", savePath.c_str());
-	_savefileManager = new DefaultSaveFileManager(savePath);
-
-#ifdef DUMP_STDOUT
-	// The GPH devices have a serial console on the breakout board
-	// but most users do not use this so we output all our STDOUT
-	// and STDERR to files for debug purposes.
-	Common::String STDOUT_FILE = workDirName + "/scummvm.stdout.txt";
-	Common::String STDERR_FILE = workDirName + "/scummvm.stderr.txt";
-
-	// Flush the output in case anything is queued
-	fclose(stdout);
-	fclose(stderr);
-
-	// Redirect standard input and standard output
-	FILE *newfp = freopen(STDOUT_FILE.c_str(), "w", stdout);
-	if (newfp == NULL) {
-#if !defined(stdout)
-		stdout = fopen(STDOUT_FILE.c_str(), "w");
-#else
-		newfp = fopen(STDOUT_FILE.c_str(), "w");
-		if (newfp) {
-			*stdout = *newfp;
-		}
-#endif
-	}
-
-	newfp = freopen(STDERR_FILE.c_str(), "w", stderr);
-	if (newfp == NULL) {
-#if !defined(stderr)
-		stderr = fopen(STDERR_FILE.c_str(), "w");
-#else
-		newfp = fopen(STDERR_FILE.c_str(), "w");
-		if (newfp) {
-			*stderr = *newfp;
-		}
-#endif
-	}
-
-	setbuf(stderr, NULL);
-	printf("%s\n", "Debug: STDOUT and STDERR redirected to text files.");
-#endif /* DUMP_STDOUT */
-
-	/* Initialize any GP2X Wiz specific stuff we may want (Batt Status, scaler etc.) */
-	WIZ_HW::deviceInit();
-
-	/* Set Default hardware mixer volume to a preset level (VOLUME_INITIAL). This is done to 'reset' volume level if set by other apps. */
-	WIZ_HW::mixerMoveVolume(0);
-
-	/* Up default volume values as we use a separate system level volume anyway. */
-	ConfMan.registerDefault("music_volume", 192);
-	ConfMan.registerDefault("sfx_volume", 192);
-	ConfMan.registerDefault("speech_volume", 192);
-
-	/* Trigger autosave every 4 minutes - On low batts 5 mins is about your warning time. */
-	ConfMan.registerDefault("autosave_period", 4 * 60);
-
-	/* Make sure that aspect ratio correction is enabled on the 1st run to stop
-	   users asking me what the 'wasted space' at the bottom is ;-). */
-	ConfMan.registerDefault("aspect_ratio", true);
-	ConfMan.registerDefault("fullscreen", true);
-
-	/* Make sure SDL knows that we have a joystick we want to use. */
-	ConfMan.setInt("joystick_num", 0);
-
-	// Create the events manager
-	if (_eventSource == 0)
-		_eventSource = new GPHEventSource();
-
-	// Create the graphics manager
-	if (_graphicsManager == 0) {
-		_graphicsManager = new GPHGraphicsManager(_eventSource, _window);
-	}
-
-	/* Pass to POSIX method to do the heavy lifting */
-	OSystem_POSIX::initBackend();
-
-	_inited = true;
-}
-
-void OSystem_GPH::initSDL() {
-#ifdef SDL_INIT_EVENTTHREAD
-	// Check if SDL has not been initialized
-	if (!_initedSDL) {
-
-		uint32 sdlFlags = SDL_INIT_EVENTTHREAD | SDL_INIT_VIDEO;
-		if (ConfMan.hasKey("disable_sdl_parachute"))
-			sdlFlags |= SDL_INIT_NOPARACHUTE;
-
-		// Initialize SDL (SDL Subsystems are initiliazed in the corresponding sdl managers)
-		if (SDL_Init(sdlFlags) == -1)
-			error("Could not initialize SDL: %s", SDL_GetError());
-
-		_initedSDL = true;
-	}
-#endif
-	OSystem_SDL::initSDL();
-}
-
-void OSystem_GPH::addSysArchivesToSearchSet(Common::SearchSet &s, int priority) {
-
-	/* Setup default extra data paths for engine data files and plugins */
-	Common::String workDirName = getCurrentDirectory();
-	if (workDirName.empty()) {
-		error("Error: Could not obtain current working directory.");
-	}
-
-	Common::FSNode workdirNode(workDirName);
-	if (workdirNode.exists() && workdirNode.isDirectory()) {
-		s.add("__GP2XWIZ_WORKDIR__", new Common::FSDirectory(workDirName), priority);
-	}
-
-	Common::String enginedataPath = workDirName + "/engine-data";
-	Common::FSNode engineNode(enginedataPath);
-	if (engineNode.exists() && engineNode.isDirectory()) {
-		s.add("__GP2XWIZ_ENGDATA__", new Common::FSDirectory(enginedataPath), priority);
-	}
-
-	Common::String pluginsPath = workDirName + "/plugins";
-	Common::FSNode pluginsNode(pluginsPath);
-	if (pluginsNode.exists() && pluginsNode.isDirectory()) {
-		s.add("__GP2XWIZ_PLUGINS__", new Common::FSDirectory(pluginsPath), priority);
-	}
-}
-
-void OSystem_GPH::quit() {
-
-	WIZ_HW::deviceDeinit();
-
-#ifdef DUMP_STDOUT
-	printf("%s\n", "Debug: STDOUT and STDERR text files closed.");
-	fclose(stdout);
-	fclose(stderr);
-#endif /* DUMP_STDOUT */
-
-	OSystem_POSIX::quit();
-}
-
-bool OSystem_GPH::hasFeature(Feature f) {
-	if (f == kFeatureFullscreenMode)
-		return false;
-
-	return OSystem_SDL::hasFeature(f);
-}
-
-#endif
diff --git a/backends/platform/gph/gph-hw.cpp b/backends/platform/gph/gph-hw.cpp
deleted file mode 100644
index be48d1898d5..00000000000
--- a/backends/platform/gph/gph-hw.cpp
+++ /dev/null
@@ -1,83 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-/*
- * GP2X Wiz: Hardware Stuff.
- *
- */
-
-// Disable symbol overrides so that we can use system headers.
-#define FORBIDDEN_SYMBOL_ALLOW_ALL
-
-#include "backends/platform/gph/gph-hw.h"
-
-#include <fcntl.h>
-#include <signal.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <sys/mman.h>
-#include <sys/ioctl.h>
-#include <sys/soundcard.h>
-#include <unistd.h>
-
-namespace WIZ_HW {
-
-enum {
-	VOLUME_NOCHG            = 0,
-	VOLUME_DOWN             = 1,
-	VOLUME_UP               = 2,
-	VOLUME_CHANGE_RATE      = 8,
-	VOLUME_MIN              = 0,
-	VOLUME_INITIAL          = 60,
-	VOLUME_MAX              = 100
-};
-
-int volumeLevel = VOLUME_INITIAL;
-
-void deviceInit() {
-}
-
-void deviceDeinit() {
-}
-
-void mixerMoveVolume(int direction) {
-	if (volumeLevel <= 10) {
-		if (direction == VOLUME_UP)   volumeLevel += VOLUME_CHANGE_RATE / 2;
-		if (direction == VOLUME_DOWN) volumeLevel -= VOLUME_CHANGE_RATE / 2;
-	} else {
-		if (direction == VOLUME_UP)   volumeLevel += VOLUME_CHANGE_RATE;
-		if (direction == VOLUME_DOWN) volumeLevel -= VOLUME_CHANGE_RATE;
-	}
-
-	if (volumeLevel < VOLUME_MIN) volumeLevel = VOLUME_MIN;
-	if (volumeLevel > VOLUME_MAX) volumeLevel = VOLUME_MAX;
-
-	unsigned long soundDev = open("/dev/mixer", O_RDWR);
-
-	if (soundDev) {
-		int vol = ((volumeLevel << 8) | volumeLevel);
-		ioctl(soundDev, SOUND_MIXER_WRITE_PCM, &vol);
-		close(soundDev);
-	}
-}
-
-} /* namespace WIZ_HW */
diff --git a/backends/platform/gph/gph-hw.h b/backends/platform/gph/gph-hw.h
deleted file mode 100644
index c7ad67f1210..00000000000
--- a/backends/platform/gph/gph-hw.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-/*
- * GP2X Wiz: Hardware Stuff.
- *
- */
-
-#ifndef GPH_HW_H
-#define GPH_HW_H
-
-namespace WIZ_HW {
-
-extern int volumeLevel;
-
-extern void deviceInit();
-extern void deviceDeinit();
-extern void mixerMoveVolume(int);
-
-} /* namespace WIZ_HW */
-
-#endif //GPH_HW_H
diff --git a/backends/platform/gph/gph-main.cpp b/backends/platform/gph/gph-main.cpp
deleted file mode 100644
index 991a6381c77..00000000000
--- a/backends/platform/gph/gph-main.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#include "backends/platform/gph/gph.h"
-#include "backends/plugins/sdl/sdl-provider.h"
-#include "base/main.h"
-
-#if defined(GPH_DEVICE)
-
-int main(int argc, char *argv[]) {
-
-	// Create our OSystem instance
-	g_system = new OSystem_GPH();
-	assert(g_system);
-
-	// Pre initialize the backend
-	g_system->init();
-
-#ifdef DYNAMIC_MODULES
-	PluginManager::instance().addPluginProvider(new SDLPluginProvider());
-#endif
-
-	// Invoke the actual ScummVM main entry point:
-	int res = scummvm_main(argc, argv);
-
-	// Free OSystem
-	g_system->destroy();
-
-	return res;
-}
-
-#endif
diff --git a/backends/platform/gph/gph.h b/backends/platform/gph/gph.h
deleted file mode 100644
index 47e41244804..00000000000
--- a/backends/platform/gph/gph.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#ifndef GPH_H
-#define GPH_H
-
-#if defined(GPH_DEVICE)
-
-#include "backends/base-backend.h"
-#include "backends/platform/sdl/sdl-sys.h"
-#include "backends/platform/sdl/posix/posix.h"
-#include "backends/events/gph/gph-events.h"
-#include "backends/graphics/gph/gph-graphics.h"
-
-class OSystem_GPH : public OSystem_POSIX {
-public:
-	OSystem_GPH();
-
-	/* Platform Setup Stuff */
-	void addSysArchivesToSearchSet(Common::SearchSet &s, int priority);
-	void initBackend();
-	void quit();
-	bool hasFeature(Feature f);
-
-protected:
-	bool _inited;
-	bool _initedSDL;
-	virtual void initSDL();
-
-private:
-	Common::String getCurrentDirectory();
-};
-
-#endif
-#endif //GPH_H
diff --git a/backends/platform/gph/module.mk b/backends/platform/gph/module.mk
deleted file mode 100644
index d8a1a6cd8db..00000000000
--- a/backends/platform/gph/module.mk
+++ /dev/null
@@ -1,14 +0,0 @@
-MODULE := backends/platform/gph
-
-MODULE_OBJS := \
-	gph-main.o \
-	gph-backend.o \
-	gph-hw.o
-
-# We don't use rules.mk but rather manually update OBJS and MODULE_DIRS.
-MODULE_OBJS := $(addprefix $(MODULE)/, $(MODULE_OBJS))
-OBJS := $(MODULE_OBJS) $(OBJS)
-MODULE_DIRS += $(sort $(dir $(MODULE_OBJS)))
-
-# Hack to ensure the SDL backend is built so we can use OSystem_SDL.
--include $(srcdir)/backends/platform/sdl/module.mk
diff --git a/backends/platform/sdl/posix/posix-main.cpp b/backends/platform/sdl/posix/posix-main.cpp
index b488025278a..a24bd0c3776 100644
--- a/backends/platform/sdl/posix/posix-main.cpp
+++ b/backends/platform/sdl/posix/posix-main.cpp
@@ -21,7 +21,7 @@
 
 #include "common/scummsys.h"
 
-#if defined(POSIX) && !defined(MACOSX) && !defined(SAMSUNGTV) && !defined(MAEMO) && !defined(GPH_DEVICE) && !defined(GP2X) && !defined(DINGUX) && !defined(OPENPANDORA) && !defined(PLAYSTATION3) && !defined(PSP2) && !defined(NINTENDO_SWITCH)  && !defined(__EMSCRIPTEN__) && !defined(MIYOO) && !defined(MIYOOMINI)
+#if defined(POSIX) && !defined(MACOSX) && !defined(SAMSUNGTV) && !defined(MAEMO) && !defined(DINGUX) && !defined(OPENPANDORA) && !defined(PLAYSTATION3) && !defined(PSP2) && !defined(NINTENDO_SWITCH)  && !defined(__EMSCRIPTEN__) && !defined(MIYOO) && !defined(MIYOOMINI)
 
 #include "backends/platform/sdl/posix/posix.h"
 #include "backends/plugins/sdl/sdl-provider.h"
diff --git a/configure b/configure
index fc932b54cfe..a2b66d7517c 100755
--- a/configure
+++ b/configure
@@ -606,9 +606,6 @@ get_system_exe_extension() {
 	3ds | dreamcast | ds | gamecube | n64 | psp | switch | wii)
 		_exeext=".elf"
 		;;
-	gph-linux)
-		_exeext=".gph"
-		;;
 	kolibrios | kos32)
 		_exeext=".dll"
 		;;
@@ -855,7 +852,7 @@ Usage: $0 [OPTIONS]...
 Configuration:
   -h, --help              display this help and exit
   --backend=BACKEND       backend to build (3ds, atari, android, dc, dingux, ds, gcw0,
-                          gph, ios7, maemo, n64, null, opendingux, openpandora,
+                          ios7, maemo, n64, null, opendingux, openpandora,
                           psp, psp2, samsungtv, sdl, switch, wii) [sdl]
 
 Installation directories:
@@ -887,15 +884,12 @@ Special configuration feature:
                                            android-arm64-v8a for Android ARMv8-A (arm64-v8a)
                                            android-x86 for Android x86
                                            android-x86_64 for Android x86_64
-                                           caanoo for Caanoo
                                            dingux for Dingux
                                            raspberrypi for Raspberry Pi
                                            dreamcast for Sega Dreamcast
                                            ds for Nintendo DS
                                            gamecube for Nintendo GameCube
                                            gcw0 for GCW Zero
-                                           gp2x for GP2X
-                                           gp2xwiz for GP2X Wiz
                                            ios7 for Apple iPhone / iPad (iOS >= 7)
                                            ios7-arm64 for Apple iPhone / iPad (iOS >= 7, 64-bit)
                                            kos32 for Kolibri OS
@@ -1697,11 +1691,6 @@ raspberrypi)
 	# It may change in the future.
 	_host_alias=arm-linux-gnueabihf
 	;;
-caanoo)
-	_host_os=gph-linux
-	_host_cpu=arm
-	_host_alias=arm-none-linux-gnueabi
-	;;
 dingux | gcw0 | opendingux-*)
 	_host_os=linux
 	_host_cpu=mipsel
@@ -1724,16 +1713,6 @@ gamecube)
 	_host_cpu=powerpc
 	_host_alias=powerpc-eabi
 	;;
-gp2x)
-	_host_os=gph-linux
-	_host_cpu=arm
-	_host_alias=arm-open2x-linux
-	;;
-gp2xwiz)
-	_host_os=gph-linux
-	_host_cpu=arm
-	_host_alias=arm-open2x-linux
-	;;
 i586-mingw32msvc)
 	_host_os=mingw32msvc
 	_host_cpu=i586
@@ -1901,7 +1880,7 @@ else
 fi
 
 case $_host in
-arm-*riscos | caanoo | ds | gp2x | gp2xwiz | openpandora | psp | psp2 | switch)
+arm-*riscos | ds | gp2x | gp2xwiz | openpandora | psp | psp2 | switch)
 	if test "$_debug_build" = auto; then
 		# If you want to debug one of these platforms, use '--disable-optimizations --enable-debug'
 		_debug_build=no
@@ -2760,7 +2739,7 @@ case $_host_cpu in
 			openpandora)
 				define_in_config_if_yes yes 'USE_ARM_NEON_ASPECT_CORRECTOR'
 				;;
-			caanoo | gp2x | gp2xwiz | maemo )
+			maemo )
 				define_in_config_if_yes yes 'USE_ARM_SCALER_ASM'
 				define_in_config_if_yes yes 'USE_ARM_SMUSH_ASM'
 				define_in_config_if_yes yes 'USE_ARM_GFX_ASM'
@@ -3192,7 +3171,7 @@ EOF
 		fi
 
 		# activate emscripten-ports
-		if test "$_sdl" != no; then # we enable SDL2 by default 
+		if test "$_sdl" != no; then # we enable SDL2 by default
 			append_var LDFLAGS "-s USE_SDL=2 "
 		fi
 
@@ -3205,37 +3184,37 @@ EOF
 			_freetypepath="$EMSDK/upstream/emscripten/cache/sysroot/include/freetype2/"
 			FREETYPE2_CFLAGS="-I$_freetypepath"
 		else
-			_freetype2=no 
+			_freetype2=no
 		fi
 		if test "$_gif" = yes; then
 		 	append_var LDFLAGS "-s USE_GIFLIB=1"
 		else
-			_gif=no 
+			_gif=no
 		fi
 		if test "$_jpeg" = yes; then
 			append_var LDFLAGS "-s USE_LIBJPEG=1"
 		else
-			_jpeg=no 
+			_jpeg=no
 		fi
 		if test "$_ogg" = yes; then
-			append_var LDFLAGS "-s USE_OGG=1" 
+			append_var LDFLAGS "-s USE_OGG=1"
 		else
-			_ogg=no 
+			_ogg=no
 		fi
 		if test "$_png" = yes; then
 			append_var LDFLAGS "-s USE_LIBPNG=1"
 		else
-			_png=no 
+			_png=no
 		fi
 		if test "$_vorbis" = yes; then
-			append_var LDFLAGS "-s USE_VORBIS=1" 
+			append_var LDFLAGS "-s USE_VORBIS=1"
 		else
-			_vorbis=no 
+			_vorbis=no
 		fi
 		if test "$_zlib" = yes; then
 			append_var LDFLAGS "-s USE_ZLIB=1"
 		else
-			_zlib=no 
+			_zlib=no
 		fi
 	;;
 	freebsd* | dragonfly*)
@@ -3527,23 +3506,6 @@ if test -n "$_host"; then
 			;;
 		bfin*)
 			;;
-		caanoo)
-			append_var DEFINES "-DCAANOO"
-			if test "$_debug_build" = no; then
-				# Use -O3 on the Caanoo for non-debug builds.
-				_optimization_level=-O3
-			fi
-			append_var CXXFLAGS "-mcpu=arm926ej-s"
-			append_var CXXFLAGS "-mtune=arm926ej-s"
-			_backend="gph"
-			_build_hq_scalers=no
-			_savegame_timestamp=no
-			_vkeybd=yes
-			_seq_midi=no
-			_mt32emu=no
-			_timidity=no
-			_port_mk="backends/platform/gph/caanoo-bundle.mk"
-			;;
 		*darwin*)
 			_ranlib=$_host-ranlib
 			_strip=$_host-strip
@@ -3685,34 +3647,6 @@ if test -n "$_host"; then
 			_vorbis=no
 			_port_mk="backends/platform/dingux/dingux.mk"
 			;;
-		gp2x)
-			append_var DEFINES "-DGP2X"
-			append_var CXXFLAGS "-march=armv4t"
-			append_var ASFLAGS "-mfloat-abi=soft"
-			append_var LDFLAGS "-static"
-			_backend="gph"
-			_build_hq_scalers=no
-			_savegame_timestamp=no
-			_vkeybd=yes
-			_seq_midi=no
-			_mt32emu=no
-			_timidity=no
-			_port_mk="backends/platform/gph/gp2x-bundle.mk"
-			;;
-		gp2xwiz)
-			append_var DEFINES "-DGP2XWIZ"
-			append_var CXXFLAGS "-mcpu=arm926ej-s"
-			append_var CXXFLAGS "-mtune=arm926ej-s"
-			append_var ASFLAGS "-mfloat-abi=soft"
-			_backend="gph"
-			_build_hq_scalers=no
-			_savegame_timestamp=no
-			_vkeybd=yes
-			_seq_midi=no
-			_mt32emu=no
-			_timidity=no
-			_port_mk="backends/platform/gph/gp2xwiz-bundle.mk"
-			;;
 		ios7*)
 			add_line_to_config_mk 'IPHONE = 1'
 			append_var DEFINES "-DIPHONE -DIPHONE_IOS7"
@@ -4099,17 +4033,6 @@ case $_backend in
 	ds)
 		append_var INCLUDES '-I$(srcdir)/backends/platform/ds'
 		;;
-	gph)
-		# On the GPH devices we want fancy themes but do not want the load/save thumbnail grid.
-		append_var DEFINES "-DDISABLE_SAVELOADCHOOSER_GRID"
-		append_var DEFINES "-DGPH_DEVICE"
-		append_var DEFINES "-DREDUCE_MEMORY_USAGE"
-		if test "$_debug_build" = yes; then
-			append_var DEFINES "-DGPH_DEBUG"
-		fi
-		_sdlconfig=sdl-config
-		_sdl=auto
-		;;
 	ios7)
 		append_var LIBS "-lobjc -framework UIKit -framework CoreGraphics -framework OpenGLES"
 		append_var LIBS "-framework QuartzCore -framework CoreFoundation -framework Foundation"
@@ -4567,7 +4490,7 @@ fi
 # Enable 16bit support only for backends which support it
 #
 case $_backend in
-	3ds | android | dingux | dc | ds | gph | ios7 | kolibrios | maemo | null | opendingux | miyoomini | miyoo | openpandora | psp | psp2 | samsungtv | sdl | switch | wii)
+	3ds | android | dingux | dc | ds | ios7 | kolibrios | maemo | null | opendingux | miyoomini | miyoo | openpandora | psp | psp2 | samsungtv | sdl | switch | wii)
 		if test "$_16bit" = auto ; then
 			_16bit=yes
 		else
@@ -4583,7 +4506,7 @@ esac
 # Enable High resolution engines (>320x240) support only for backends which support it
 #
 case $_host in
-	caanoo | ds | dingux | gcw0 | gp2x | gp2xwiz)
+	ds | dingux | gcw0)
 		if test "$_highres" = yes ; then
 			_highres=yes
 		else
@@ -4614,7 +4537,7 @@ esac
 # Disable savegame timestamp support for backends which don't have a reliable real time clock
 #
 case $_backend in
-	gph | n64)
+	n64)
 		if test "$_savegame_timestamp" = auto ; then
 			_savegame_timestamp=no
 		else
@@ -4643,7 +4566,7 @@ case $_host_os in
 	amigaos* | dreamcast | ds | gamecube | kolibrios | mingw* | morphos | n64 | ps3 | psp2 | psp | riscos | wii)
 		_posix=no
 		;;
-	3ds | android | beos* | bsd* | cygwin* | darwin* | dragonfly* | freebsd* | gnu* | gph-linux | haiku* | hpux* | iphoneos | irix*| k*bsd*-gnu* | linux* | maemo | mint* | netbsd* | openbsd* | redox* | serenity* | solaris* | sunos* | switch | uclinux*)
+	3ds | android | beos* | bsd* | cygwin* | darwin* | dragonfly* | freebsd* | gnu* | haiku* | hpux* | iphoneos | irix*| k*bsd*-gnu* | linux* | maemo | mint* | netbsd* | openbsd* | redox* | serenity* | solaris* | sunos* | switch | uclinux*)
 		_posix=yes
 		;;
 	os2-emx*)
@@ -4911,18 +4834,6 @@ POST_OBJS_FLAGS := -Wl,-no-whole-archive
 		append_var DEFINES "-DUNCACHED_PLUGINS"
 _mak_plugins='
 PLUGIN_LDFLAGS		+= -Wl,-T$(srcdir)/backends/plugins/wii/plugin.ld
-'
-		;;
-	gph*)
-		_plugin_prefix=""
-		_plugin_suffix=".plugin"
-		append_var CXXFLAGS "-fpic"
-		append_var LIBS "-ldl"
-_mak_plugins='
-PLUGIN_EXTRA_DEPS = $(EXECUTABLE)
-PLUGIN_LDFLAGS  += -shared
-PRE_OBJS_FLAGS  := -Wl,-export-dynamic -Wl,-whole-archive
-POST_OBJS_FLAGS := -Wl,-no-whole-archive
 '
 		;;
 	irix*)
diff --git a/dists/gph/README-GPH b/dists/gph/README-GPH
deleted file mode 100644
index 7570946a769..00000000000
--- a/dists/gph/README-GPH
+++ /dev/null
@@ -1,61 +0,0 @@
-ScummVM 2.9.0git - GPH DEVICE SPECIFIC README
-
-------------------------------------------------------------------------
-
-Contents:
-
-    * About the backend/port <#About_the_backendport>
-    * Supported audio options <#Supported_audio_options>
-    * Credits <#Credits>
-
-------------------------------------------------------------------------
-
-Please refer to the:
-
-GPH ScummVM Forum: <https://forums.scummvm.org/viewforum.php?f=14>
-
-WiKi: (Select your device)
-
-<https://wiki.scummvm.org/index.php/GP2X>
-<https://wiki.scummvm.org/index.php/GP2XWiz>
-<https://wiki.scummvm.org/index.php/Caanoo>
-
-for the most current information on the port and any updates to this
-documentation.
-
-The wiki includes detailed instructions on how to use the port and
-control information.
-
-------------------------------------------------------------------------
-About the backend/port
-
-This is the readme for the official GPH ScummVM backend (also known as
-the GP2X port/GP2XWiz port or Caanoo port).
-
-This is an SVN test release of ScummVM for GPH devices, it would be
-appreciated if this SVN test distribution was not mirrored and that
-people be directed to http://scummvm.distant-earth.com/ instead for
-updated SVN builds.
-
-Fully supported official releases of the GPH ScummVM backend are made in
-line with main official releases and are avalalble from the ScummVM
-downloads page <https://www.scummvm.org/downloads/> for the GP2X,
-GP2XWiz and Caanoo.
-
-------------------------------------------------------------------------
-Supported audio options
-
-Raw audio.
-MP3 audio.
-OGG Vorbis audio.
-
-FLAC audio is currently unsupported.
-
-For best results use uncompressed audio in games.
-
-------------------------------------------------------------------------
-Credits
-
-Core ScummVM code (c) The ScummVM Team
-Portions of the GPH backend (c) John Willis
-Detailed (c) information can be found within the source code
diff --git a/dists/gph/README-GPH.in b/dists/gph/README-GPH.in
deleted file mode 100644
index 942d7bf2bac..00000000000
--- a/dists/gph/README-GPH.in
+++ /dev/null
@@ -1,61 +0,0 @@
-ScummVM @VERSION@ - GPH DEVICE SPECIFIC README
-
-------------------------------------------------------------------------
-
-Contents:
-
-    * About the backend/port <#About_the_backendport>
-    * Supported audio options <#Supported_audio_options>
-    * Credits <#Credits>
-
-------------------------------------------------------------------------
-
-Please refer to the:
-
-GPH ScummVM Forum: <https://forums.scummvm.org/viewforum.php?f=14>
-
-WiKi: (Select your device)
-
-<https://wiki.scummvm.org/index.php/GP2X>
-<https://wiki.scummvm.org/index.php/GP2XWiz>
-<https://wiki.scummvm.org/index.php/Caanoo>
-
-for the most current information on the port and any updates to this
-documentation.
-
-The wiki includes detailed instructions on how to use the port and
-control information.
-
-------------------------------------------------------------------------
-About the backend/port
-
-This is the readme for the official GPH ScummVM backend (also known as
-the GP2X port/GP2XWiz port or Caanoo port).
-
-This is an SVN test release of ScummVM for GPH devices, it would be
-appreciated if this SVN test distribution was not mirrored and that
-people be directed to http://scummvm.distant-earth.com/ instead for
-updated SVN builds.
-
-Fully supported official releases of the GPH ScummVM backend are made in
-line with main official releases and are avalalble from the ScummVM
-downloads page <https://www.scummvm.org/downloads/> for the GP2X,
-GP2XWiz and Caanoo.
-
-------------------------------------------------------------------------
-Supported audio options
-
-Raw audio.
-MP3 audio.
-OGG Vorbis audio.
-
-FLAC audio is currently unsupported.
-
-For best results use uncompressed audio in games.
-
-------------------------------------------------------------------------
-Credits
-
-Core ScummVM code (c) The ScummVM Team
-Portions of the GPH backend (c) John Willis
-Detailed (c) information can be found within the source code
diff --git a/dists/gph/caanoo/scummvm-gdb.gpe b/dists/gph/caanoo/scummvm-gdb.gpe
deleted file mode 100644
index 63ce193ca87..00000000000
--- a/dists/gph/caanoo/scummvm-gdb.gpe
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# Export the location of any libs ScummVM depends on
-# (to avoid installing to the NAND and overwriting the broken ones there).
-export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
-
-# Run ScummVM via GDB (so make sure you have a terminal open or serial).
-# Oh, and GDB installed of course ;)
-gdb --args ./scummvm.gph --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
-
-# Sync the SD card to check that everything is written.
-sync
-
-# Return to the GPH menu screen
-cd /usr/gp2x
-exec /usr/gp2x/gp2xmenu
diff --git a/dists/gph/caanoo/scummvm.gpe b/dists/gph/caanoo/scummvm.gpe
deleted file mode 100644
index 37d0f65d189..00000000000
--- a/dists/gph/caanoo/scummvm.gpe
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# Export the location of any libs ScummVM depends on
-# (to avoid installing to the NAND and overwriting the broken ones there).
-export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
-
-# Run ScummVM, important this bit.
-./scummvm.gph --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
-
-# Sync the SD card to check that everything is written.
-sync
-
-# Return to the GPH menu screen
-cd /usr/gp2x
-exec /usr/gp2x/gp2xmenu
diff --git a/dists/gph/gp2x/mmuhack/Makefile b/dists/gph/gp2x/mmuhack/Makefile
deleted file mode 100644
index a35d5c2a983..00000000000
--- a/dists/gph/gp2x/mmuhack/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-TARGET  = mmuhack
-INCLUDE = -I/opt/gcc-3.4.4-glibc-2.3.6/arm-open2x-linux/sys-include
-CFLAGS  = -O2 -DMODULE -D__KERNEL__ ${INCLUDE}
-CC	= arm-open2x-linux-gcc
-
-all: ${TARGET}.o
-
-${TARGET}.o: ${TARGET}.c
-
-clean:
-	rm -rf ${TARGET}.o
diff --git a/dists/gph/gp2x/mmuhack/README b/dists/gph/gp2x/mmuhack/README
deleted file mode 100644
index 401fa1b09b6..00000000000
--- a/dists/gph/gp2x/mmuhack/README
+++ /dev/null
@@ -1,116 +0,0 @@
-PLEASE NOTE:
-
-The binary object 'mmuhack.o' is stored in the source tree as it is very awkward to
-build it manually each time and would require the use of 2 toolchains to do so.
-
-Notes on how to rebuild from the included source can be found below.
-
-About
------
-
-This is a module for GP2X 2.4 based Linux kernel, created for developers to use in their
-programs.
-
-Normally the upper 32MB is uncached. This means that reads/writes on the memory
-are always done via the physical memory modules rather than the much faster
-memory built into the processor (called 'cache'). Access to the upper 32MB can
-be sped up by Squidge's MMU hack. The easiest way to use the MMU hack is to add
-and load the MMU hack kernel module into your program.
-
-Note: Building this module requries a GP2X 'kernel' toolchain (i.e. GCC 2.95.*
-for the GP2X stock, 3.* for Open2X).
-
-You can't build this module with the GCC 4 based application toolchains.
-
-Operation
----------
-
-When loaded into kernel, this module creates /dev/mmuhack device. Whenever
-a program opens that device using open() call, the module traverses all
-memory, which was allocated in 0x02000000-0x03ffffff range by the program via
-using mmap() system call. While doing that, it marks all encountered memory
-as bufferable and cacheable.
-
-The most common use of this is to remove the framebuffer access bottleneck.
-Note that, however, by making the framebuffer cacheable you can cause display
-artifacts. This can happen because parts of your framebuffer may stay in CPU
-cache and not to be written back to the physical memory. The display
-controller only fetches data from the physical memory, so you get incomplete
-image (the memory will most likely contain data from previous frame, so these
-artifacts are better visible during fade effects). The easy way to fix this
-is by using a special ARM Linux system call, which flushes the cache (forces
-the CPU to write data in cache to the physical memory (see section "Flushing
-the cache")).
-
-Using this module affects the whole upper memory area. But in some situations
-this may be not desirable, for example when using ARM940 core in your program
-(ether using 940 libraries like ogg940 and gpu940, or using your custom code,
-which needs uncacheable memory for communication and such). If you need part
-of your upper memory to be cached, and other part not, you should mmap() that
-memory (which you want to be uncached) _after_ doing open("/dev/mmuhack").
-Another way is to modify mmuhack.c to suit your needs and rebuild the module.
-
-
-Usage
------
-
-The very first thing to do is to load the kernel module (mmuhack.o) into the
-running kernel. But before that you should try to unload mmuhack module,
-because other program might have left a different version loaded with
-different memory configuration, which may not suit your program.
-
-system("/sbin/rmmod mmuhack");
-system("/sbin/insmod mmuhack.o");
-
-Now you can assume the module is loaded into kernel and open /dev/mmuhack
-device. You don't need to worry about previous calls failing, because in that
-case open() will simply fail and nothing bad will happen.
-
-IMPORTANT: you _must_ do the open() call _after_ you initialize your graphics
-library or allocate your memory, because it can only work with memory which is
-already allocated, it won't affect memory you or your lib allocates after the
-open() call.
-
-int mmufd = open("/dev/mmuhack", O_RDWR);
-if(mmufd < 0)
-{
-  printf("MMU hack failed");
-}
-else
-{
-  printf("MMU hack loaded");
-  close(mmufd);
-}
-
-If the above call succeeded, you are all done.
-I recommend to unload the module when your program exits, because the other
-program may want to load a different mmuhack.o and may fail, because you left
-your mmuhack.o loaded (it does not get unloaded automatically on exit).
-
-system("/sbin/rmmod mmuhack");
-
-
-Flushing the cache
-------------------
-
-If using mmuhack.o causes your program to display artifacts (see "Operation"
-section for explanation), you will need to flush the CPU cache. This should
-be done after finishing every frame and just before flipping your display
-buffer/surface. You will need to add flush_uppermem_cache.s file to your
-Makefile/project and add a call to flush_uppermem_cache() just before final
-framebuffer flip or blit.
-
-flush_uppermem_cache() has 3 parameters. First param is the start address,
-second param is the end address, third one should always be 0. The addresses
-should be virtual ones (most often pointers to the start/end of your
-framebuffer). Example:
-
-flush_uppermem_cache(screen_surface->pixels, screen_surface->pixels + 320*240, 0);
-
-
-Credits
--------
-
-Original idea/implementation: Squidge (this whole thing is also known as squidgehack)
-Kernel module: NK
-Documentation: notaz
diff --git a/dists/gph/gp2x/mmuhack/flush_uppermem_cache.h b/dists/gph/gp2x/mmuhack/flush_uppermem_cache.h
deleted file mode 100644
index d01548e474f..00000000000
--- a/dists/gph/gp2x/mmuhack/flush_uppermem_cache.h
+++ /dev/null
@@ -1,10 +0,0 @@
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-void flush_uppermem_cache(void *start_address, void *end_address, int flags);
-
-#ifdef __cplusplus
-}
-#endif
diff --git a/dists/gph/gp2x/mmuhack/flush_uppermem_cache.s b/dists/gph/gp2x/mmuhack/flush_uppermem_cache.s
deleted file mode 100644
index 265908e1fdd..00000000000
--- a/dists/gph/gp2x/mmuhack/flush_uppermem_cache.s
+++ /dev/null
@@ -1,5 +0,0 @@
-.global flush_uppermem_cache @ void *start_address, void *end_address, int flags
-
-flush_uppermem_cache:
-    swi #0x9f0002
-    bx lr
diff --git a/dists/gph/gp2x/mmuhack/mmuhack.c b/dists/gph/gp2x/mmuhack/mmuhack.c
deleted file mode 100644
index 75745a0a6de..00000000000
--- a/dists/gph/gp2x/mmuhack/mmuhack.c
+++ /dev/null
@@ -1,125 +0,0 @@
-/* ScummVM - Graphic Adventure Engine
- *
- * ScummVM is the legal property of its developers, whose names
- * are too numerous to list here. Please refer to the COPYRIGHT
- * file distributed with this source distribution.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- *
- */
-
-#include <linux/config.h>
-#include <linux/module.h>
-#include <linux/kernel.h>
-#include <linux/init.h>
-#include <linux/miscdevice.h>
-#include <asm/memory.h>
-
-#define MMUHACK_MINOR 225
-#define DEVICE_NAME "mmuhack"
-
-#if __GNUC__ == 3
-#include <linux/version.h>
-static const char __module_kernel_version_gcc3[] __attribute__((__used__)) __attribute__((section(".modinfo"))) =
-"kernel_version=" UTS_RELEASE;
-#endif
-
-static ssize_t mmuhack_open(struct inode *inode, struct file *filp)
-{
-    unsigned int *pgtable;
-	unsigned int *cpt;
-    int i, j;
-	int ttb;
-	int ret = -EFAULT;
-
-	// get the pointer to the translation table base...
-	asm volatile(
-		"stmdb sp!, {r0}\n\t"
-		"mrc p15, 0, r0, c2, c0, 0\n\t"
-		"mov %0, r0\n\t"
-		"ldmia sp!, {r0}\n\t": "=r"(ttb)
-	);
-
-	pgtable = __va(ttb);
-
-    for (i = 0; i < 4096; i ++) if ( (pgtable[i] & 3) == 1 ) {
-		cpt = __va(pgtable[i] & 0xfffffc00);
-
-		for (j = 0; j < 256; j ++) {/*
-			if ( (cpt[j] & 0xfe00000f) == 0x02000002 ) {
-				// set C and B bits in upper 32MB memory area...
-				printk("Set C&B bits %08x\n",cpt[j]);
-				cpt[j] |= 0xFFC;
-				ret = 0;
-			}
-					   */
-			if (((cpt[j] & 0xff000000) == 0x02000000) && ((cpt[j] & 12)==0) )
-			{
-				//printk("Set C&B bits %08x\n",cpt[j]);
-				cpt[j] |= 0xFFC;
-			}
-			//if ((a>=0x31 && a<=0x36) && ((cpt[i] & 12)==0))
-			if (((cpt[j] & 0xff000000) == 0x03000000) && ((cpt[j] & 12)==0))
-			{
-				//printk("Set C&B bits %08x\n",cpt[j]);
-				//printf("SDL   c and b bits not set, overwriting\n");
-				cpt[j] |= 0xFFC;
-			}
-		}
-    }
-
-	// drain the write buffer and flush the tlb caches...
-	asm volatile(
-		"stmdb sp!, {r0}\n\t"
-		"mov    r0, #0\n\t"
-		"mcr    15, 0, r0, cr7, cr10, 4\n\t"
-		"mcr    15, 0, r0, cr8, cr7, 0\n\t"
-		"ldmia sp!, {r0}\n\t"
-	);
-
-	if (ret == 0)
-		printk("MMU hack applied.\n");
-
-	return 0;
-}
-
-static struct file_operations mmuhack_fops = {
-    owner:      THIS_MODULE,
-    open:       mmuhack_open,
-};
-
-
-static struct miscdevice mmuhack = {
-    MMUHACK_MINOR, DEVICE_NAME, &mmuhack_fops
-};
-
-static int __init mmuhack_init(void)
-{
-	misc_register(&mmuhack);
-/*
-	printk("MMSP2 MMU Hack module.\n");
-*/
-    return 0;
-}
-
-static void __exit mmuhack_exit(void)
-{
-    misc_deregister(&mmuhack);
-/*
-	printk(KERN_ALERT "MMU Hack module removed.\n");
-*/
-}
-
-module_init(mmuhack_init);
-module_exit(mmuhack_exit);
diff --git a/dists/gph/gp2x/mmuhack/mmuhack.o b/dists/gph/gp2x/mmuhack/mmuhack.o
deleted file mode 100644
index 475f4a54ae0..00000000000
Binary files a/dists/gph/gp2x/mmuhack/mmuhack.o and /dev/null differ
diff --git a/dists/gph/gp2x/scummvm.gpe b/dists/gph/gp2x/scummvm.gpe
deleted file mode 100644
index 97dea847c9f..00000000000
--- a/dists/gph/gp2x/scummvm.gpe
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-# Remount SD with forced Sync, does this really work?
-mount -o sync,remount /dev/mmcsd/disc0/part1 /mnt/sd/
-
-# Export the location of any libs ScummVM depends on
-# (to avoid installing to the NAND and overwriting the broken ones there).
-export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
-
-# Run ScummVM, important this bit.
-./scummvm.gph --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
-
-# Sync the SD card to check that everything is written.
-sync
-
-# Return to the GPH menu screen
-cd /usr/gp2x
-exec /usr/gp2x/gp2xmenu
diff --git a/dists/gph/gp2xwiz/scummvm-gdb.gpe b/dists/gph/gp2xwiz/scummvm-gdb.gpe
deleted file mode 100644
index 63ce193ca87..00000000000
--- a/dists/gph/gp2xwiz/scummvm-gdb.gpe
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# Export the location of any libs ScummVM depends on
-# (to avoid installing to the NAND and overwriting the broken ones there).
-export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
-
-# Run ScummVM via GDB (so make sure you have a terminal open or serial).
-# Oh, and GDB installed of course ;)
-gdb --args ./scummvm.gph --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
-
-# Sync the SD card to check that everything is written.
-sync
-
-# Return to the GPH menu screen
-cd /usr/gp2x
-exec /usr/gp2x/gp2xmenu
diff --git a/dists/gph/gp2xwiz/scummvm.gpe b/dists/gph/gp2xwiz/scummvm.gpe
deleted file mode 100644
index 37d0f65d189..00000000000
--- a/dists/gph/gp2xwiz/scummvm.gpe
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# Export the location of any libs ScummVM depends on
-# (to avoid installing to the NAND and overwriting the broken ones there).
-export LD_LIBRARY_PATH=`pwd`/lib:$LD_LIBRARY_PATH
-
-# Run ScummVM, important this bit.
-./scummvm.gph --fullscreen --gfx-mode=1x --config=$(pwd)/.scummvmrc
-
-# Sync the SD card to check that everything is written.
-sync
-
-# Return to the GPH menu screen
-cd /usr/gp2x
-exec /usr/gp2x/gp2xmenu
diff --git a/dists/gph/scummvm.ini b/dists/gph/scummvm.ini
deleted file mode 100644
index e245511a094..00000000000
--- a/dists/gph/scummvm.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[info]
-name="ScummVM 2.9.0git"
-path="/scummvm/scummvm.gpe"
-icon="/scummvm/scummvm.png"
-title="/scummvm/scummvmb.png"
diff --git a/dists/gph/scummvm.ini.in b/dists/gph/scummvm.ini.in
deleted file mode 100644
index 1c80d97d8b8..00000000000
--- a/dists/gph/scummvm.ini.in
+++ /dev/null
@@ -1,5 +0,0 @@
-[info]
-name="ScummVM @VERSION@"
-path="/scummvm/scummvm.gpe"
-icon="/scummvm/scummvm.png"
-title="/scummvm/scummvmb.png"
diff --git a/dists/gph/scummvm.png b/dists/gph/scummvm.png
deleted file mode 100644
index 1040b442ea2..00000000000
Binary files a/dists/gph/scummvm.png and /dev/null differ
diff --git a/dists/gph/scummvmb.png b/dists/gph/scummvmb.png
deleted file mode 100644
index f9d2bdb81b8..00000000000
Binary files a/dists/gph/scummvmb.png and /dev/null differ




More information about the Scummvm-git-logs mailing list