Do a full sysroot for the Raspberry Pi buildbot.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 11 Oct 2013 10:58:05 -0400
changeset 7805 4f0f7b64afa5
parent 7804 1f85fb33694b
child 7806 03e6aaea8347
Do a full sysroot for the Raspberry Pi buildbot. This gets us ALSA and X11, etc.
build-scripts/raspberrypi-buildbot.sh
--- a/build-scripts/raspberrypi-buildbot.sh	Thu Oct 10 21:51:39 2013 -0700
+++ b/build-scripts/raspberrypi-buildbot.sh	Fri Oct 11 10:58:05 2013 -0400
@@ -38,9 +38,11 @@
 mkdir -p $BUILDBOTDIR
 pushd $BUILDBOTDIR
 
-export CC=/opt/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc
+SYSROOT="/opt/rpi-sysroot"
+export CC="/opt/rpi-tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc --sysroot=$SYSROOT -I$SYSROOT/opt/vc/include -I$SYSROOT/usr/include -I$SYSROOT/opt/vc/include/interface/vcos/pthreads -I$SYSROOT/opt/vc/include/interface/vmcs_host/linux"
+# -L$SYSROOT/usr/lib/arm-linux-gnueabihf"
 # !!! FIXME: shouldn't have to --disable-* things here.
-../configure --host=arm-raspberry-linux-gnueabihf --disable-pulseaudio --disable-esd --prefix="$PWD/rpi-sdl2-installed"
+../configure --with-sysroot=$SYSROOT --host=arm-raspberry-linux-gnueabihf --prefix=$PWD/rpi-sdl2-installed --disable-pulseaudio --disable-esd
 $MAKE
 $MAKE install
 # Fix up a few things to a real install path on a real Raspberry Pi...