aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/gp2x/build/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/gp2x/build/build.sh')
-rw-r--r--backends/platform/gp2x/build/build.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/backends/platform/gp2x/build/build.sh b/backends/platform/gp2x/build/build.sh
new file mode 100644
index 0000000000..55395cb73c
--- /dev/null
+++ b/backends/platform/gp2x/build/build.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+echo Quick script to make building all the time less painful.
+
+# Set the paths up here to support the build.
+
+export PATH=/tools/open2x_gcc/gcc-4.0.2-glibc-2.3.5/arm-open2x-linux/arm-open2x-linux/bin:$PATH
+export PATH=/tools/open2x_gcc/gcc-4.0.2-glibc-2.3.5/arm-open2x-linux/bin:$PATH
+export CXX=arm-open2x-linux-g++
+export CC=arm-open2x-linux-gcc
+export CXXFLAGS=-march=armv4t
+export LDFLAGS=-static
+
+cd ../../../..
+
+echo Building ScummVM for GP2X.
+make
+
+echo Build for GP2X - SDL - complete - Please check build logs.