From 62bac6e7b40a27aebd630b605803c46e7dcd32cd Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 27 Nov 2012 12:40:43 +0900 Subject: [PATCH] Add scripts for cross-compiling for mipsel-linux. These are based on the ps3dev scripts, so native qfcc and pak are built automatically. Note that there may be a need to replace or even just nuke bison in the toolchain as it is too old and can't build qfcc. --- tools/cross/mipsel-linux/cross-configure.sh | 13 +++++++++++++ tools/cross/mipsel-linux/cross-make.sh | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 tools/cross/mipsel-linux/cross-configure.sh create mode 100755 tools/cross/mipsel-linux/cross-make.sh diff --git a/tools/cross/mipsel-linux/cross-configure.sh b/tools/cross/mipsel-linux/cross-configure.sh new file mode 100755 index 000000000..083ac6b91 --- /dev/null +++ b/tools/cross/mipsel-linux/cross-configure.sh @@ -0,0 +1,13 @@ +#!/bin/sh -x +mkdir native mipsel-linux +cd native +../../configure --without-clients --without-servers --with-tools=qfcc,pak +cd ../mipsel-linux +export MIPSEL=/opt/gcw0-toolchain +export PKG_CONFIG_LIBDIR=$MIPSEL/usr/mipsel-gcw0-linux-uclibc/sysroot/lib/pkgconfig +export PATH=$MIPSEL/usr/bin:$PATH +../../configure --host=mipsel-linux \ + --disable-sdl-cd \ + --with-endian=big \ + SDL_CONFIG=$MIPSEL/usr/mipsel-gcw0-linux-uclibc/sysroot/usr/bin/sdl-config \ + $* diff --git a/tools/cross/mipsel-linux/cross-make.sh b/tools/cross/mipsel-linux/cross-make.sh new file mode 100755 index 000000000..4e43418ca --- /dev/null +++ b/tools/cross/mipsel-linux/cross-make.sh @@ -0,0 +1,13 @@ +#!/bin/sh -x +if test -d native; then + cd native + make + cd ../mipsel-linux + ln -fs ../native/tools/qfcc/source/qfcc . + ln -fs ../native/tools/pak/pak . +fi +export MIPSEL=/opt/gcw0-toolchain +export PKG_CONFIG_LIBDIR=$MIPSEL/usr/mipsel-gcw0-linux-uclibc/sysroot/lib/pkgconfig +export PATH=$MIPSEL/usr/bin:$PATH + +make PAK='$(top_builddir)/pak' QFCC='$(top_builddir)/qfcc' $*