Set up raspberry pi cross-compile tools

This commit is contained in:
Savanni D'Gerinel 2023-07-09 16:12:11 -04:00
parent e461cb9908
commit 86a6d386d2
2 changed files with 8 additions and 0 deletions

4
.cargo/config.toml Normal file
View File

@ -0,0 +1,4 @@
[target.arm-unknown-linux-gnueabihf]
linker = "armv6l-unknown-linux-gnueabihf-gcc"
# rustflags = ["-C", "link-arg=-Wl,-dynamic-linker,/lib/ld-linux-armhf.so.3"]

View File

@ -19,6 +19,10 @@
pkgs = import nixpkgs { system = "x86_64-linux"; }; pkgs = import nixpkgs { system = "x86_64-linux"; };
pkgs-unstable = import unstable { system = "x86_64-linux"; }; pkgs-unstable = import unstable { system = "x86_64-linux"; };
cargo2nix = pkgs-cargo2nix.packages."x86_64-linux"; cargo2nix = pkgs-cargo2nix.packages."x86_64-linux";
armPkgs = import nixpkgs {
system = "x86_64-linux";
crossSystem = pkgs.lib.systems.examples.raspberryPi;
};
in in
pkgs.mkShell { pkgs.mkShell {
name = "ld-tools-devshell"; name = "ld-tools-devshell";