mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-07 16:48:15 +08:00
Fix compilation on M1 Macs
This commit is contained in:
parent
cce9edcd0f
commit
517ddf4bfc
2 changed files with 10 additions and 1 deletions
|
@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
|
|||
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
|
||||
|
||||
## [unreleased][unreleased]
|
||||
- Fixed compilation of mfd_aes_brute on Apple M1 based Macs (@Doridian)
|
||||
- Changed calculation of companion ARM firmware hash to be uniform accross platforms (@Doridian)
|
||||
- Changed `hf mf *` - verbose flag now also decode and prints found value blocks (@iceman1001)
|
||||
- Changed `hf mf wrbl` - added more helptext and new param --force to point out block0 writes (@iceman1001)
|
||||
|
|
|
@ -1,10 +1,18 @@
|
|||
MYSRCPATHS = ../../common ../../common/mbedtls
|
||||
MYSRCS = util_posix.c randoms.c
|
||||
MYINCLUDES = -I../../include -I../../common -I../../common/mbedtls
|
||||
MYCFLAGS = -march=native -Ofast
|
||||
MYCFLAGS = -Ofast
|
||||
MYDEFS =
|
||||
MYLDLIBS = -lcrypto
|
||||
|
||||
# A better way would be to just try compiling with march and seeing if we succeed
|
||||
cpu_arch = $(shell uname -m)
|
||||
ifneq ($(findstring arm64, $(cpu_arch)), )
|
||||
MYCFLAGS += -mcpu=native
|
||||
else
|
||||
MYCFLAGS += -march=native
|
||||
endif
|
||||
|
||||
ifneq ($(SKIPPTHREAD),1)
|
||||
MYLDLIBS += -lpthread
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue