From 0258b7cfb771dbb815b1077c5845503a07603eb8 Mon Sep 17 00:00:00 2001 From: Giulio Date: Tue, 8 Sep 2020 15:44:25 +0200 Subject: [PATCH] Keygen cross compilation --- Readme.md | 6 ++++++ build-tgr.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 0817f49..1cc4e12 100644 --- a/Readme.md +++ b/Readme.md @@ -44,6 +44,12 @@ Per Debian 10, installare sudo apt install -t build-essential libncurses-dev bison flex libssl-dev libelf-dev ``` +Per la cross compilazioen del keygen su ARM installare + +``` +sudo apt install crossbuild-essential-arm64 +``` + Eseguire da utente normale ``` ./build.sh diff --git a/build-tgr.sh b/build-tgr.sh index 6f9d495..27e2a9d 100755 --- a/build-tgr.sh +++ b/build-tgr.sh @@ -41,7 +41,7 @@ chmod 400 target/overlay/root/flag echo "[+] Building the keygen" mkdir -p target/overlay/usr/sbin -gcc -o target/overlay/usr/sbin/cfgbin keygen/keygen.c -static -lm +aarch64-linux-gnu-gcc -o target/overlay/usr/sbin/cfgbin keygen/keygen.c -static -lm strip target/overlay/usr/sbin/cfgbin echo "[+] Generating Update Key"