[build] # Build for remote board. Default build type will be a local build. target = "armv7-unknown-linux-gnueabihf" # The ycoto SDK provided for cross-compilation is ancient. Not sure if that will cause issues. # In any case, it probably requires an old Ubuntu inside a Docker to work and I am notr happy # with that.. # [target.armv7-unknown-linux-gnueabihf] # linker = "arm-xilinx-linux-gnueabi-gcc" # These linker flags were determined by running echo $CC after sourcing the Petalinux SDK. # rustflags = [ # "-C", "link-arg=-mcpu=cortex-a9", # "-C", "link-arg=-mfpu=neon", # "-C", "link-arg=-mfloat-abi=hard", # "-C", "link-arg=-mthumb", # "-C", "link-arg=--sysroot=/home/rmueller/ROMEO/linux-sdk/sysroots/cortexa9t2hf-neon-xilinx-linux-gnueabi" # ] ################################################################################ # Runners ################################################################################ # Some additional runner confiurations which should help with transferring, running and debugging # the application on the remote machine. By default, none are enabled and the default runner # will run the application locally. # Requires Python3 installation. Takes care of transferring and running the application # to the Raspberry Pi # runner = "python3 bld-deploy-remote.py -t -r --source" # Debug configurations # '-d' will start a gdbserver session on port 1234 of the remote machine, # '-s' will start the GDB application locally as well. # This requires a gdbserver installation on the remote machine and a GDB application # installation on the local machine # Only start server. Use cargo run to start the gdbserver, and then launch # a GDB application or VS Code with the CodeLLDB plugin to debug your application. # runner = "py bld-deploy-remote.py -t -d --source" runner = "python3 bld-deploy-remote.py -t -d --source" # Start GDB application in command line as well # runner = "py bld-deploy-remote.py -t -d -s --gdb arm-linux-gnueabihf-gdb --source" # runner = "python3 bld-deploy-remote.py -t -d -s --source"