From 555c0743cb044390dc59d2a086a4f4be6ef48345 Mon Sep 17 00:00:00 2001 From: edward-p Date: Sat, 31 Aug 2019 15:31:33 +0800 Subject: [PATCH] Add possibility to make install more recovery variants --- recovery/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/recovery/Makefile b/recovery/Makefile index fd10020bf..5a5fda0e8 100644 --- a/recovery/Makefile +++ b/recovery/Makefile @@ -1,6 +1,12 @@ include ../common_arm/Makefile.common INSTALLFW = proxmark3_recovery.bin +ifneq (,$(FWTAG)) + INSTALLFWTAG = $(notdir $(INSTALLFW:%.bin=%-$(FWTAG).bin)) +else + INSTALLFWTAG = $(notdir $(INSTALLFW)) +endif + BINS = bootrom.bin fullimage.bin $(INSTALLFW) all: $(BINS) @@ -23,10 +29,10 @@ clean: install: all $(info [@] Installing recovery to $(DESTDIR)$(PREFIX)...) $(Q)$(MKDIR) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH) - $(Q)$(CP) $(INSTALLFW) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH) + $(Q)$(CP) $(INSTALLFW) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)$(INSTALLFWTAG) uninstall: $(info [@] Uninstalling recovery from $(DESTDIR)$(PREFIX)...) - $(Q)$(RM) $(foreach fw,$(INSTALLFW),$(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)$(notdir $(fw))) + $(Q)$(RM) $(DESTDIR)$(PREFIX)$(INSTALLFWRELPATH)$(INSTALLFWTAG) .PHONY: all clean install uninstall