Skip to content
Snippets Groups Projects
Commit dcdaec4a authored by Micah Elizabeth Scott's avatar Micah Elizabeth Scott
Browse files

Build firmware .hex file too, for production

parent a89f8f28
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
*.a
*.d
*.dfu
*.hex
# IDA Pro
*.id0
......
......@@ -52,7 +52,7 @@ LIBS = -lm
OBJS := $(C_FILES:.c=.o) $(CPP_FILES:.cpp=.o)
all: $(TARGET).dfu
all: $(TARGET).dfu $(TARGET).hex
$(TARGET).elf: $(OBJS) $(LDSCRIPT)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
......@@ -62,6 +62,9 @@ $(TARGET).elf: $(OBJS) $(LDSCRIPT)
$(OBJCOPY) -O binary $< $@
$(DFU_SUFFIX) -a $@
%.hex: %.elf
$(OBJCOPY) -O ihex $< $@
install: $(TARGET).dfu
$(DFU_UTIL) -d 1d50 -D $<
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment