From df2a35f4d31e1a987b9346c5cdfa7fe70ad21100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20B=C3=B6hm?= Date: Fri, 5 Jan 2024 15:02:36 +0100 Subject: [PATCH] Added cross compile configuration --- .cargo/config.toml | 5 +++++ rust-toolchain | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .cargo/config.toml create mode 100644 rust-toolchain diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..65cdb0e --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,5 @@ +[target.armv7-unknown-linux-musleabi] +linker = "arm-linux-gnueabi-gcc" + +[target.armv7-unknown-linux-musleabihf] +linker = "arm-linux-gnueabihf-gcc" diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000..0815f01 --- /dev/null +++ b/rust-toolchain @@ -0,0 +1,4 @@ +[toolchain] +channel = "stable" +targets = ["armv7-unknown-linux-musleabihf"] +profile = "default"