aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gph/build/gp2x-build.sh
diff options
context:
space:
mode:
authorDavid-John Willis2011-04-12 12:05:56 +0100
committerDavid-John Willis2011-04-13 08:01:15 +0100
commitcb3e3e7125274dba4437f0beb35b461405eb3442 (patch)
treebf414509142fe8e02593f77c8e5188974ee964cc /backends/platform/gph/build/gp2x-build.sh
parent65fc72e30a885f6adca99505ee869e010f94c1c3 (diff)
downloadscummvm-rg350-cb3e3e7125274dba4437f0beb35b461405eb3442.tar.gz
scummvm-rg350-cb3e3e7125274dba4437f0beb35b461405eb3442.tar.bz2
scummvm-rg350-cb3e3e7125274dba4437f0beb35b461405eb3442.zip
GP2X: Move build support files into the GPH backend.
Diffstat (limited to 'backends/platform/gph/build/gp2x-build.sh')
-rw-r--r--backends/platform/gph/build/gp2x-build.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/backends/platform/gph/build/gp2x-build.sh b/backends/platform/gph/build/gp2x-build.sh
new file mode 100644
index 0000000000..1ea77f4937
--- /dev/null
+++ b/backends/platform/gph/build/gp2x-build.sh
@@ -0,0 +1,20 @@
+#!/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.