Add Makefile PLATFORM_FILE variable to specify another Makefile.platform file

This commit is contained in:
Philippe Teuwen committed 2026-05-19 00:10:17 +02:00
1 parent 5e378c1339
commit d8c7f84598
6 files changed
+13 -5

No files matched your search

+1
View File
@@ -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]
- Added Makefile `PLATFORM_FILE` variable to specify another Makefile.platform file (@doegox)
- Added `hf calypso probecmdcompat` command (@kormax)
- Added secure channel operations to `hf iclass sam` and fixed/improved I2C bus operations (@antiklesys)
- Added `hf calypso list` command (@kormax)
+2 -1
View File
@@ -14,7 +14,8 @@
# See LICENSE.txt for the text of the license.
#-----------------------------------------------------------------------------
-include Makefile.platform
PLATFORM_FILE ?= Makefile.platform
-include $(PLATFORM_FILE)
-include .Makefile.options.cache
include Makefile.defs
include common_arm/Makefile.hal
+2 -1
View File
@@ -19,7 +19,8 @@
# This Makefile might have been called directly, not via the root Makefile, so:
ifeq ($(PLTNAME),)
-include ../Makefile.platform
PLATFORM_FILE ?= ../Makefile.platform
-include $(PLATFORM_FILE)
-include ../.Makefile.options.cache
include ../common_arm/Makefile.hal
# detect if there were changes in the platform definitions, requiring a clean
+2 -1
View File
@@ -15,7 +15,8 @@
#-----------------------------------------------------------------------------
ifeq ($(PLTNAME),)
-include ../Makefile.platform
PLATFORM_FILE ?= ../Makefile.platform
-include $(PLATFORM_FILE)
-include ../.Makefile.options.cache
# Default platform if no platform specified
PLATFORM?=PM3RDV4
@@ -61,7 +61,10 @@ These features make it very different from all other Proxmark3 devices, there is
**Recommendation**: if you don't have a RDV4, we strongly recommend your device to have at least a 512KB arm chip, since this repo is crossing 256KB limit. There is still a way to skip parts to make it fit on a 256KB device, see below.
If you need to tune things and save the configuration, create a file `Makefile.platform` in the root directory of the repository, see `Makefile.platform.sample`.
For an up-to-date exhaustive list of options, you can run `make PLATFORM=`.
If you need to maintain several `Makefile.platform` files for different Proxmark3 devices, you can specify which file to use with e.g. `make PLATFORM_FILE=mydevice_platform`.
For an up-to-date exhaustive list of options to use in a `Makefile.platform` file, you can run `make PLATFORM=`.
## PLATFORM
^[Top](#top)
+2 -1
View File
@@ -1,5 +1,6 @@
ifeq ($(PLTNAME),)
-include ../../Makefile.platform
PLATFORM_FILE ?= ../../Makefile.platform
-include $(PLATFORM_FILE)
-include ../../.Makefile.options.cache
# Default platform if no platform specified
PLATFORM?=PM3RDV4