Add message that informs the user which hex to flash

pull/3222/head
Jimmy Brisson 2016-11-07 15:22:44 -06:00
parent 79abaab02e
commit def0a38c4b
1 changed files with 5 additions and 3 deletions

View File

@ -13,10 +13,10 @@ else
RM = '$(SHELL)' -c "rm -rf \"$(1)\"" RM = '$(SHELL)' -c "rm -rf \"$(1)\""
endif endif
# Move to the build directory
ifeq (,$(filter .build,$(notdir $(CURDIR))))
.SUFFIXES:
OBJDIR := .build OBJDIR := .build
# Move to the build directory
ifeq (,$(filter $(OBJDIR),$(notdir $(CURDIR))))
.SUFFIXES:
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
MAKETARGET = '$(MAKE)' --no-print-directory -C $(OBJDIR) -f '$(mkfile_path)' \ MAKETARGET = '$(MAKE)' --no-print-directory -C $(OBJDIR) -f '$(mkfile_path)' \
'SRCDIR=$(CURDIR)' $(MAKECMDGOALS) 'SRCDIR=$(CURDIR)' $(MAKECMDGOALS)
@ -127,6 +127,7 @@ $(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS) $(LINKER_SCRIPT)
$(PROJECT).bin: $(PROJECT).elf $(PROJECT).bin: $(PROJECT).elf
{%- block elf2bin -%}{%- endblock %} {%- block elf2bin -%}{%- endblock %}
{% if not hex_files %} +@echo ===== bin file ready to flash: $(OBJDIR)/$@ ===== {% endif %}
$(PROJECT).hex: $(PROJECT).elf $(PROJECT).hex: $(PROJECT).elf
{%- block elf2hex -%}{%- endblock %} {%- block elf2hex -%}{%- endblock %}
@ -135,6 +136,7 @@ $(PROJECT).hex: $(PROJECT).elf
$(PROJECT)-combined.hex: $(PROJECT).hex $(PROJECT)-combined.hex: $(PROJECT).hex
+@echo "NOTE: the $(SREC_CAT) binary is required to be present in your PATH. Please see http://srecord.sourceforge.net/ for more information." +@echo "NOTE: the $(SREC_CAT) binary is required to be present in your PATH. Please see http://srecord.sourceforge.net/ for more information."
$(SREC_CAT) {% for f in hex_files %}{{f}} {% endfor %} -intel $(PROJECT).hex -intel -o $(PROJECT)-combined.hex -intel --line-length=44 $(SREC_CAT) {% for f in hex_files %}{{f}} {% endfor %} -intel $(PROJECT).hex -intel -o $(PROJECT)-combined.hex -intel --line-length=44
+@echo ===== hex file ready to flash: $(OBJDIR)/$@ =====
{% endif %} {% endif %}
# Rules # Rules
############################################################################### ###############################################################################