Set up raspberry pi cross-compile tools
This commit is contained in:
parent
b15658dd0c
commit
0218783f9a
|
@ -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"]
|
||||||
|
|
|
@ -71,7 +71,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "emseries"
|
name = "emseries"
|
||||||
version = "0.5.1"
|
version = "0.6.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"chrono-tz",
|
"chrono-tz",
|
||||||
|
|
|
@ -19,10 +19,15 @@
|
||||||
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";
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
armPkgs.stdenv.cc
|
||||||
pkgs.clang
|
pkgs.clang
|
||||||
pkgs.entr
|
pkgs.entr
|
||||||
pkgs.glade
|
pkgs.glade
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "1.68.2"
|
channel = "1.68.2"
|
||||||
targets = [ "wasm32-unknown-unknown" ]
|
targets = [ "wasm32-unknown-unknown", "arm-unknown-linux-gnueabihf" ]
|
||||||
|
|
Loading…
Reference in New Issue