Skip to content

Commit 1be651c

Browse files
committed
👷 .elf depends on ldscript
1 parent b7a22c3 commit 1be651c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dma/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,9 @@ $(BUILD_DIR)/%.o:%.cpp
124124
@$(CXX) $(CPU_FLAGS) $(CPPFLAGS) $(CXXFLAGS) -o $@ -c $<
125125

126126
# final executable object file
127-
$(BUILD_DIR)/$(TARGET).elf: $(OBJS)
127+
$(BUILD_DIR)/$(TARGET).elf: $(OBJS) $(LDSCRIPT)
128128
@echo "Linking sources into "$@
129-
@$(CC) $(CPU_FLAGS) $(LDFLAGS) -o $@ $^
129+
$(CC) $(CPU_FLAGS) $(LDFLAGS) -o $@ $(OBJS)
130130

131131
# upload binary to stm32
132132
flash: bin

0 commit comments

Comments
 (0)