#!/bin/sh # This script can be used to set the path to the cross-compile toolchain # A default path is set if the path is not supplied via command line if [ $# -eq 1 ];then export PATH=$PATH:"$1" else # TODO: make version configurable via shell argument export PATH=$PATH:"/c/SysGCC/raspberry/bin" export CROSS_COMPILE="arm-linux-gnueabihf" export RASPBERRY_VERSION="4" export RASPBIAN_ROOTFS="/c/Users//raspberrypi/rootfs" fi # It is also recommended to set up a custom shell script to perform the # sysroot synchronization so that any software is built with the library and # headers of the Raspberry Pi. This can for example be dome with the rsync # command. # The following command can be used, and the local # need to be set accordingly. # rsync -vR --progress -rl --delete-after --safe-links pi@:/{lib,usr,opt/vc/lib}