mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
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.
This commit is contained in:
parent
67b796f851
commit
62bac6e7b4
2 changed files with 26 additions and 0 deletions
13
tools/cross/mipsel-linux/cross-configure.sh
Executable file
13
tools/cross/mipsel-linux/cross-configure.sh
Executable file
|
@ -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 \
|
||||
$*
|
13
tools/cross/mipsel-linux/cross-make.sh
Executable file
13
tools/cross/mipsel-linux/cross-make.sh
Executable file
|
@ -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' $*
|
Loading…
Reference in a new issue