mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Make the ps3 cross-build self-contained.
More or less. This is a bit of an experiment (which seems to work nicely) in that qfcc and pak are build natively in one build tree, then the full system is cross-built in another tree using the natively build qfcc and pak. Both trees are created by cross-configure.sh as sub-directories of the current directory. However, cross-configure.sh still assumes it is being run in a subdirectory of the main quakeforge directory. cross-make.sh checks if the native tree is in the current directory and if so, builds it, otherwise it just runs make for the cross-build tree (this allows for running cross-make in a sub-directory for things like sorting out build issues).
This commit is contained in:
parent
0976ff8582
commit
365f20bb95
2 changed files with 13 additions and 2 deletions
|
@ -1,9 +1,13 @@
|
|||
#!/bin/sh -x
|
||||
mkdir native powerpc64-ps3-elf
|
||||
cd native
|
||||
../../configure --without-clients --without-servers --with-tools=qfcc,pak
|
||||
cd ../powerpc64-ps3-elf
|
||||
export PS3DEV=/usr/local/ps3dev
|
||||
export PSL1GHT=$PS3DEV
|
||||
export PKG_CONFIG_LIBDIR=$PS3DEV/portlibs/ppu/lib/pkgconfig
|
||||
export PATH=$PS3DEV/spu/bin:$PS3DEV/ppu/bin:$PS3DEV/bin:$PATH
|
||||
../configure --host=powerpc64-ps3-elf \
|
||||
../../configure --host=powerpc64-ps3-elf \
|
||||
--disable-sdl-cd \
|
||||
--with-endian=big \
|
||||
SDL_CONFIG=$PS3DEV/portlibs/ppu/bin/sdl-config \
|
||||
|
|
|
@ -1,7 +1,14 @@
|
|||
#!/bin/sh -x
|
||||
if test -d native; then
|
||||
cd native
|
||||
make
|
||||
cd ../powerpc64-ps3-elf
|
||||
ln -fs ../native/tools/qfcc/source/qfcc .
|
||||
ln -fs ../native/tools/pak/pak .
|
||||
fi
|
||||
export PS3DEV=/usr/local/ps3dev
|
||||
export PSL1GHT=$PS3DEV
|
||||
export PKG_CONFIG_LIBDIR=$PS3DEV/portlibs/ppu/lib/pkgconfig
|
||||
export PATH=$PS3DEV/spu/bin:$PS3DEV/ppu/bin:$PS3DEV/bin:$PATH
|
||||
|
||||
make PAK=pak QFCC=qfcc $*
|
||||
make PAK='$(top_builddir)/pak' QFCC='$(top_builddir)/qfcc' $*
|
||||
|
|
Loading…
Reference in a new issue