mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
7bd87c1f1b
This adds support for the armv7 crosstool-ng toolchain for the Raspberry Pi 2. Getting the toolchain ready: Checkout crosstool-ng from https://github.com/crosstool-ng/crosstool-ng Build crosstool-ng Configure the rpi2 target with |ct-ng armv7-rpi2-linux-gnueabihf| Build the toolchain with |ct-build| and add the path to $toolchain_install_dir/bin to your $PATH Then, on the rust side: configure --target=armv7-rpi2-linux-gnueabihf && make && make install To cross compile for the rpi2, add $rust_install_path/lib to your $LD_LIBRARY_PATH, then use rustc --target=armv7-rpi2-linux-gnueabihf -C linker=armv7-rpi2-linux-gnueabihf-g++ hello.rs |
||
---|---|---|
.. | ||
cfg | ||
clean.mk | ||
crates.mk | ||
ctags.mk | ||
debuggers.mk | ||
dist.mk | ||
docs.mk | ||
grammar.mk | ||
host.mk | ||
install.mk | ||
llvm.mk | ||
main.mk | ||
platform.mk | ||
prepare.mk | ||
reconfig.mk | ||
rt.mk | ||
rustllvm.mk | ||
snap.mk | ||
stage0.mk | ||
target.mk | ||
tests.mk | ||
util.mk |