diff options
Diffstat (limited to 'build.trimui.sh')
-rwxr-xr-x | build.trimui.sh | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/build.trimui.sh b/build.trimui.sh index ced5060..3136e7b 100755 --- a/build.trimui.sh +++ b/build.trimui.sh @@ -1,8 +1,15 @@ +#! /bin/sh + +# To build: +# ./build.trimui.sh uqm config +# Select "Optimised Release build" +# Select "SDL1 without OpenGL" +# ./build.trimui.sh uqm +# To install: +# On the SD card, create ~/.uqm and copy config/override.cfg and config/flight.cfg into it +# Download uqm-0.8.0-content.uqm and copy it into ./content/packages, where '.' is the location of the uqm executable on the SD card + export CC=${CROSS_COMPILE}gcc -export SYSROOT=$(${CROSS_COMPILE}gcc --print-sysroot) -export CROSS_ROOT=$SYSROOT +export SYSROOT=$($CC --print-sysroot) export PATH=$SYSROOT/usr/bin/:$PATH -export CFLAGS="$($SYSROOT/usr/bin/sdl-config --cflags) -I$SYSROOT/usr/include" -export LDFLAGS="-L$SYSROOT/usr/lib" -export PKG_CONFIG_PATH=$SYSROOT/usr/lib/pkgconfig/ ./build.sh $1 $2 |