From 932b92d8f42ad87adc0584b923836d0e85ff236d Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 6 Feb 2026 23:58:33 +0100 Subject: [PATCH] termux compilation fixes: waveshare, mfd_aes_brute and host target --- doc/termux_notes.md | 9 ++++++--- tools/mfd_aes_brute/Makefile | 9 +++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/doc/termux_notes.md b/doc/termux_notes.md index 6ac872346..798218d92 100644 --- a/doc/termux_notes.md +++ b/doc/termux_notes.md @@ -9,7 +9,6 @@ - [Setup](#setup) - [Setting up Termux](#setting-up-termux) - [Install Proxmark3 package which follows tagged releases](#install-proxmark3-package-which-follows-tagged-releases) - - [Optional: Install Proxmark3 package which offers a more up to date version from git `master` branch](#optional-install-proxmark3-package-which-offers-a-more-up-to-date-version-from-git-master-branch) - [Optional: Building Proxmark3 client from source](#optional-building-proxmark3-client-from-source) - [PC-like method](#pc-like-method) - [Specific requirements](#specific-requirements) @@ -68,10 +67,14 @@ pkg install proxmark3 ``` ### Optional: Building Proxmark3 client from source ``` -pkg install make clang readline libc++ git binutils +pkg install make clang readline libc++ git binutils libgd git clone https://github.com/RfidResearchGroup/proxmark3.git cd proxmark3 -make clean && make client +make clean && make host +``` +Testing: +``` +make host/check ``` ## PC-like method diff --git a/tools/mfd_aes_brute/Makefile b/tools/mfd_aes_brute/Makefile index f4f484fff..751379c12 100644 --- a/tools/mfd_aes_brute/Makefile +++ b/tools/mfd_aes_brute/Makefile @@ -5,8 +5,13 @@ MYCFLAGS = -O3 -ffast-math MYDEFS = MYLDLIBS = -lcrypto -SUPPORT_MARCH := $(shell $(CC) -xc /dev/null -c -o /dev/null -march=native > /dev/null 2>/dev/null && echo y) -SUPPORT_MCPU := $(shell $(CC) -xc /dev/null -c -o /dev/null -mcpu=native > /dev/null 2>/dev/null && echo y) +SUPPORT_MARCH ?= $(shell $(CC) -xc /dev/null -c -o /dev/null -march=native > /dev/null 2>/dev/null && echo y) +SUPPORT_MCPU ?= $(shell $(CC) -xc /dev/null -c -o /dev/null -mcpu=native > /dev/null 2>/dev/null && echo y) +# Termux / Android safety +ifneq ($(TERMUX_VERSION),) + SUPPORT_MARCH := n + SUPPORT_MCPU := n +endif ifeq ($(DONT_BUILD_NATIVE),y) # do nothing