|
|
|
@ -223,6 +223,10 @@ $(foreach LOBJ, $(NO_LTO_OBJ), $(eval $(call NO_LTO,$(LOBJ))))
|
|
|
|
|
|
|
|
|
|
MOVE_DEP = mv -f $(patsubst %.o,%.td,$@) $(patsubst %.o,%.d,$@)
|
|
|
|
|
|
|
|
|
|
# Add QMK specific flags
|
|
|
|
|
DFU_SUFFIX ?= dfu-suffix
|
|
|
|
|
DFU_SUFFIX_ARGS ?=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
elf: $(BUILD_DIR)/$(TARGET).elf
|
|
|
|
|
hex: $(BUILD_DIR)/$(TARGET).hex
|
|
|
|
@ -279,6 +283,10 @@ gccversion :
|
|
|
|
|
@$(SILENT) || printf "$(MSG_BIN) $@" | $(AWK_CMD)
|
|
|
|
|
$(eval CMD=$(BIN) $< $@ || exit 0)
|
|
|
|
|
@$(BUILD_CMD)
|
|
|
|
|
if [ ! -z "$(DFU_SUFFIX_ARGS)" ]; then \
|
|
|
|
|
$(DFU_SUFFIX) $(DFU_SUFFIX_ARGS) -a $(BUILD_DIR)/$(TARGET).bin 1>/dev/null ;\
|
|
|
|
|
fi
|
|
|
|
|
$(COPY) $(BUILD_DIR)/$(TARGET).bin $(TARGET).bin;
|
|
|
|
|
|
|
|
|
|
BEGIN = gccversion sizebefore
|
|
|
|
|
|
|
|
|
|