File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 13
13
RM = '$(SHELL)' -c "rm -rf \"$(1)\""
14
14
endif
15
15
16
+ OBJDIR := .build
16
17
# Move to the build directory
17
- ifeq (,$(filter .build ,$(notdir $(CURDIR))))
18
+ ifeq (,$(filter $(OBJDIR) ,$(notdir $(CURDIR))))
18
19
.SUFFIXES:
19
- OBJDIR := .build
20
20
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
21
21
MAKETARGET = '$(MAKE)' --no-print-directory -C $(OBJDIR) -f '$(mkfile_path)' \
22
22
'SRCDIR=$(CURDIR)' $(MAKECMDGOALS)
@@ -127,6 +127,7 @@ $(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS) $(LINKER_SCRIPT)
127
127
128
128
$(PROJECT).bin: $(PROJECT).elf
129
129
{%- block elf2bin -%}{%- endblock %}
130
+ {% if not hex_files %} +@echo ===== bin file ready to flash: $(OBJDIR)/$@ ===== {% endif %}
130
131
131
132
$(PROJECT).hex: $(PROJECT).elf
132
133
{%- block elf2hex -%}{%- endblock %}
@@ -135,6 +136,7 @@ $(PROJECT).hex: $(PROJECT).elf
135
136
$(PROJECT)-combined.hex: $(PROJECT).hex
136
137
+@echo "NOTE: the $(SREC_CAT) binary is required to be present in your PATH. Please see http://srecord.sourceforge.net/ for more information."
137
138
$(SREC_CAT) {% for f in hex_files %}{{f}} {% endfor %} -intel $(PROJECT).hex -intel -o $(PROJECT)-combined.hex -intel --line-length=44
139
+ +@echo ===== hex file ready to flash: $(OBJDIR)/$@ =====
138
140
{% endif %}
139
141
# Rules
140
142
###############################################################################
You can’t perform that action at this time.
0 commit comments