diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..9a8a34b --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[target.armv7-unknown-linux-gnueabihf] +linker = "arm-none-linux-gnueabihf-gcc" diff --git a/Cargo.lock b/Cargo.lock index 9682da8..565513b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -71,7 +71,6 @@ name = "beonew-5" version = "0.1.0" dependencies = [ "evdev", - "evdev-rs", "femtovg", "glutin", "glutin-winit", @@ -285,29 +284,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "evdev-rs" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9812d5790fb6fcce449333eb6713dad335e8c979225ed98755c84a3987e06dba" -dependencies = [ - "bitflags 1.3.2", - "evdev-sys", - "libc", - "log", -] - -[[package]] -name = "evdev-sys" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14ead42b547b15d47089c1243d907bcf0eb94e457046d3b315a26ac9c9e9ea6d" -dependencies = [ - "cc", - "libc", - "pkg-config", -] - [[package]] name = "fdeflate" version = "0.3.4" diff --git a/Cargo.toml b/Cargo.toml index c47fdea..535af91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,5 +17,4 @@ image = { version = "0.24.0", default-features = false, features = [ "jpeg", "png", ] } -evdev-rs = "0.6.1" nix = { version = "0.28.0", features = ["event", "fs"] } diff --git a/topi.sh b/topi.sh new file mode 100644 index 0000000..162383f --- /dev/null +++ b/topi.sh @@ -0,0 +1,5 @@ +#!/bin/bash -ex + +cargo build --target armv7-unknown-linux-gnueabihf +scp target/armv7-unknown-linux-gnueabihf/debug/beonew-5 alarm@192.168.10.163:~/ +