mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-06-10 23:03:31 -07:00
Build x86-64 by default, fix make script to build for ARM
This commit is contained in:
+1
-9
@@ -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"]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user