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

Build an fc-boot.bin as well

parent 9453c91d
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
*.o
*.a
*.d
*.bin
# IDA Pro
*.id0
......
......@@ -51,20 +51,22 @@ LIBS = -lm
OBJS := $(C_FILES:.c=.o) $(CPP_FILES:.cpp=.o)
all: $(TARGET).hex
all: $(TARGET).hex $(TARGET).bin size
$(TARGET).elf: $(OBJS) $(LDSCRIPT)
$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
%.hex: %.elf
$(SIZE) $<
$(OBJCOPY) -O ihex -R .eeprom $< $@
$(OBJCOPY) -O ihex $< $@
%.bin: %.elf
$(OBJCOPY) -O binary $< $@
# compiler generated dependency info
-include $(OBJS:.o=.d)
clean:
rm -f *.d *.o $(TARGET).elf $(TARGET).hex
rm -f *.d *.o $(TARGET).elf $(TARGET).hex $(TARGET).bin
# Install with OpenOCD. (No code protection!)
install: $(TARGET).hex
......@@ -73,4 +75,7 @@ install: $(TARGET).hex
objdump: $(TARGET).elf
$(OBJDUMP) -d $<
.PHONY: all clean install objdump
size: $(TARGET).elf
$(SIZE) $<
.PHONY: all clean install objdump size
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