392 http://archive.raspbian.org/raspbian wheezy firmware armhf \ 393 libraspberrypi-dev 394 } 395 396 installCrossCompiler() { 397 echo 398 echo Fetching and unpacking compiler in $CROSSLIBS 399 echo 400 echo NOTE: if you use a proxy server then this download will probably fail. In that 401 echo case you need to set a value for the environment variable https_proxy and run 402 echo this script again. 403 echo 404 COMPILER_URL=https://launchpad.net/linaro-toolchain-unsupported/trunk/2012.09/+download/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux.tar.bz2 405 CMD="wget $COMPILER_URL -O - | tar jx -C $CROSSLIBS" 406 echo $CMD 407 echo 408 /bin/sh -c "$CMD" 409 } 410 411 SCRIPTDIR=`dirname $0` 412 SCRIPTDIR=`cd $SCRIPTDIR ; pwd` 413 RT=`cd $SCRIPTDIR/../.. ; pwd` 414 415 echo Using OpenJFX working directory at $RT 416 confirm() 417 if [[ $CONFIRMED -eq 0 ]]; then 418 echo -n "Enter the location of the OpenJFX working directory: " 419 read RT 420 fi 421 422 CROSSLIBS=`dirname $RT`/crosslibs 423 echo Using crosslibs directory $CROSSLIBS 424 425 mkdir -p $CROSSLIBS || exit 1 426 427 PILIBS=$CROSSLIBS/$DEST_VERSION 428 429 checkReinstall $PILIBS 430 if [[ ! -d $PILIBS ]]; then 431 installLibs 432 fi 433 434 CROSSCOMPILER=$CROSSLIBS/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux 435 checkReinstall $CROSSCOMPILER 436 if [[ ! -d $CROSSCOMPILER ]]; then 437 installCrossCompiler 438 fi 439 440 echo 441 echo "WARNING: remember to hand patch in usr/include/linux/mxcfb.h for i.mx cursor support" 442 echo | 392 http://archive.raspbian.org/raspbian wheezy firmware armhf \ 393 libraspberrypi-dev 394 } 395 396 installCrossCompiler() { 397 echo 398 echo Fetching and unpacking compiler in $CROSSLIBS 399 echo 400 echo NOTE: if you use a proxy server then this download will probably fail. In that 401 echo case you need to set a value for the environment variable https_proxy and run 402 echo this script again. 403 echo 404 COMPILER_URL=https://launchpad.net/linaro-toolchain-unsupported/trunk/2012.09/+download/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux.tar.bz2 405 CMD="wget $COMPILER_URL -O - | tar jx -C $CROSSLIBS" 406 echo $CMD 407 echo 408 /bin/sh -c "$CMD" 409 } 410 411 SCRIPTDIR=`dirname $0` 412 if [[ ! "SCRIPTDIRRT" =~ ^/ ]] 413 then 414 SCRIPTDIR="$PWD/$SCRIPTDIR" 415 fi 416 RT="$SCRIPTDIR/../.." 417 418 echo Using OpenJFX working directory at $RT 419 confirm() 420 if [[ $CONFIRMED -eq 0 ]]; then 421 echo -n "Enter the location of the OpenJFX working directory: " 422 read RT 423 fi 424 425 CROSSLIBS=$RT/../crosslibs 426 echo Using crosslibs directory $CROSSLIBS 427 428 mkdir -p $CROSSLIBS || exit 1 429 430 PILIBS=$CROSSLIBS/$DEST_VERSION 431 432 checkReinstall $PILIBS 433 if [[ ! -d $PILIBS ]]; then 434 installLibs 435 fi 436 437 CROSSCOMPILER=$CROSSLIBS/gcc-linaro-arm-linux-gnueabihf-raspbian-2012.09-20120921_linux 438 checkReinstall $CROSSCOMPILER 439 if [[ ! -d $CROSSCOMPILER ]]; then 440 installCrossCompiler 441 fi 442 443 echo 444 echo "WARNING: remember to hand patch in usr/include/linux/mxcfb.h for i.mx cursor support" 445 echo |