Makefile: allow alternative platforms, try make PLATFORM=foo

This commit is contained in:
Philippe Teuwen
2019-03-11 00:21:14 +01:00
parent 7f26ed6e9f
commit 119e3f0ed9
5 changed files with 112 additions and 9 deletions

View File

@@ -23,6 +23,23 @@ else
PATHSEP=\\#
endif
ifeq ($(PLATFORM),)
-include Makefile.platform
ifeq ($(PLATFORM),)
PLATFORM=PM3RDV4
else
${info using saved PLATFORM '$(PLATFORM)'}
endif
endif
include common/Makefile.hal
$(info ===================================================================)
$(info PLATFORM: $(PLATFORM))
$(info $(PLTNAME))
$(info Included supports: $(PLATFORM_DEFS))
$(info ===================================================================)
all clean: %: client/% bootrom/% armsrc/% recovery/% mfkey/% nonce2key/%
mfkey/%: FORCE