Skip to content

Commit

Permalink
ADD: FIRMWARE_ORIGIN option
Browse files Browse the repository at this point in the history
  • Loading branch information
r2axz committed Feb 9, 2022
1 parent c497863 commit 9e9f1ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ OBJS += $(SRCS:%.c=$(BUILD_DIR)/%.o)
OBJS += $(STM32_SYSINIT:%.c=$(BUILD_DIR)/%.o)
STARTUP += $(STM32_STARTUP:%.s=$(BUILD_DIR)/%.o)

ifneq ($(FIRMWARE_ORIGIN),)
LDFLAGS += -Wl,-section-start=.isr_vector=$(FIRMWARE_ORIGIN)
endif

.PHONY: all
all: $(TARGET).hex $(TARGET).bin size

Expand Down

0 comments on commit 9e9f1ff

Please # to comment.