termux compilation fixes: waveshare, mfd_aes_brute and host target

This commit is contained in:
Philippe Teuwen
2026-02-06 23:59:34 +01:00
parent f0dbcf7f77
commit 932b92d8f4
2 changed files with 13 additions and 5 deletions
+6 -3
View File
@@ -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
+7 -2
View File
@@ -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