Skip to content

Commit

Permalink
Build x86-64 by default, fix make script to build for ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
wgreenberg committed Feb 14, 2024
1 parent dbd6063 commit a644620
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
10 changes: 1 addition & 9 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
[build]
target = "armv7-unknown-linux-gnueabihf"
rustflags = ["-C", "target-feature=+crt-static"]

[alias]
test_pc = "test --target=x86_64-unknown-linux-gnu"
build_pc = "build --target=x86_64-unknown-linux-gnu"


[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
rustflags = ["-C", "target-feature=+crt-static"]
12 changes: 3 additions & 9 deletions make.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
<<<<<<< Updated upstream
cargo build --release
adb push target/armv7-unknown-linux-gnueabihf/release/rayhunter /data/rayhunter/rayhunter
#!/bin/sh
cargo build --release --target="armv7-unknown-linux-gnueabihf" --bin rayhunter-daemon
adb push target/armv7-unknown-linux-gnueabihf/release/rayhunter-daemon /data/rayhunter/
adb shell '/bin/rootshell -c "/etc/init.d/rayhunter_daemon restart"'
=======
# the "arm" profile inherits from "release", so this is an optimized build
cargo build --profile arm
adb push target/arm/rayhunter-daemon /data/rayhunter/
adb shell '/bin/rootshell -c "/etc/init.d/rayhunter_daemon restart"'
>>>>>>> Stashed changes

0 comments on commit a644620

Please sign in to comment.