cancel
Showing results for 
Search instead for 
Did you mean: 

makefile does not rebuild after the .ld file has been edited

a_user
Associate II

The makefile generated by STM32CubeMX has the following line describing the linkers dependencies.

    $(BUILD_DIR)/$(TARGET).elf: $(OBJECTS) Makefile

 

Unfortunately editing the .ld file will not force the linker to be executed next time make is executed. This could be resolved if $(LDSCRIPT) was added to this line. The makefile line would become…

    $(BUILD_DIR)/$(TARGET).elf: $(OBJECTS) $(LDSCRIPT) Makefile

 

Could STM32CueMX change the generated makefile to include this?

0 REPLIES 0