simplify makefile

This commit is contained in:
Philippe Teuwen
2019-06-01 22:49:28 +02:00
parent 1cddc6919a
commit 3bf26f2808
3 changed files with 16 additions and 46 deletions

View File

@@ -23,32 +23,10 @@ else
PATHSEP=\\#
endif
ifeq ($(PLATFORM),)
-include Makefile.platform
-include .Makefile.options.cache
ifeq ($(PLATFORM),)
PLATFORM=PM3RDV4
else
${info using saved PLATFORM: '$(PLATFORM)'}
endif
ifneq ($(PLATFORM_EXTRAS),)
${info using saved PLATFORM_EXTRAS: '$(PLATFORM_EXTRAS)'}
endif
ifneq ($(STANDALONE),)
${info using saved STANDALONE: '$(STANDALONE)'}
endif
endif
-include Makefile.platform
-include .Makefile.options.cache
include common/Makefile.hal
$(info ===================================================================)
$(info Platform name: $(PLTNAME))
$(info PLATFORM: $(PLATFORM))
$(info PLATFORM_EXTRAS: $(PLATFORM_EXTRAS))
$(info Included options: $(PLATFORM_DEFS_INFO))
$(info Standalone mode: $(PLATFORM_DEFS_INFO_STANDALONE))
$(info ===================================================================)
all clean: %: client/% bootrom/% armsrc/% recovery/% mfkey/% nonce2key/%
mfkey/%: FORCE