|
|
|
@ -31,7 +31,7 @@ $(MCU).ld: libs/$(MCU).ld.in inc/$(MCU)_hw.h
|
|
|
|
|
|
|
|
|
|
%.bin: %.elf
|
|
|
|
|
@$(E) " OBJCOPY " $@
|
|
|
|
|
$(Q)$(OBJCOPY) -O binary $(<:.bin=.elf) $@
|
|
|
|
|
$(Q)$(OBJCOPY) -O binary $(<:.bin=.elf) $@ #--remove-section .note.gnu.build-id
|
|
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
|
@$(E) " CC " $<
|
|
|
|
@ -42,7 +42,8 @@ $(MCU).ld: libs/$(MCU).ld.in inc/$(MCU)_hw.h
|
|
|
|
|
$(Q)$(CC) -o $@ $(LDFLAGS) \
|
|
|
|
|
-Wl,--gc-sections,-T$(MCU).ld \
|
|
|
|
|
-Wl,--whole-archive $(PROGRAM_LIBS) \
|
|
|
|
|
-Wl,--no-whole-archive $(LIBRARIES)
|
|
|
|
|
-Wl,--no-whole-archive $(LIBRARIES) \
|
|
|
|
|
-Wl,--build-id=none
|
|
|
|
|
# -Wl,-allow-multiple-definition -flto=$(JLEVEL)
|
|
|
|
|
|
|
|
|
|
# Cleaning up..
|
|
|
|
|