blue-pill: update skeleton/blinky Makefile

This commit is contained in:
2018-03-05 23:54:23 -08:00
parent 71eb73967b
commit 0ca0cb6167
3 changed files with 8 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
# configurables
OBJS := blinky.o
OBJS :=
TARGET := blinky
OBJS += $(TARGET).o
# targets
ELF := $(TARGET).elf
@@ -32,6 +33,11 @@ $(ELF): $(OBJS)
$(ARMCC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
$(ARMSIZE) -A $@
.PHONY: strip
strip: $(ELF)
$(ARMTC)-strip $(ELF)
$(ARMSIZE) -A $(ELF)
$(BIN): $(ELF)
$(OBJCOPY) -O binary $< $@