mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Rebuild ELF if linker script is changed.
# Conflicts: # Makefile
This commit is contained in:
parent
94bf95bf3c
commit
dbdb6d30fc
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -302,9 +302,9 @@ $(TARGET_BIN): $(TARGET_ELF)
|
|||
@echo "Creating BIN $(TARGET_BIN)" "$(STDOUT)"
|
||||
$(V1) $(OBJCOPY) -O binary $< $@
|
||||
|
||||
$(TARGET_ELF): $(TARGET_OBJS)
|
||||
$(TARGET_ELF): $(TARGET_OBJS) $(LD_SCRIPT)
|
||||
@echo "Linking $(TARGET)" "$(STDOUT)"
|
||||
$(V1) $(CROSS_CC) -o $@ $^ $(LD_FLAGS)
|
||||
$(V1) $(CROSS_CC) -o $@ $(filter-out %.ld,$^) $(LD_FLAGS)
|
||||
$(V1) $(SIZE) $(TARGET_ELF)
|
||||
|
||||
# Compile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue