rebuild all objects on target change

This commit is contained in:
David Holdeman 2024-03-04 19:44:47 -06:00 committed by rusefillc
parent fb5211cf9e
commit 59565dbd52
1 changed files with 6 additions and 0 deletions

View File

@ -11,3 +11,9 @@ $(TGT_SENTINEL): .FORCE
echo $(SHORT_BOARD_NAME) >$@; fi
.FORCE:
# This is necessary because the ChibiOS makefile builds a .o file and generates
# the deps for that .o file in the same GCC call, so if the .deps aren't already
# in the correct state, things can fail to build because Make doesn't know it needs
# to build the prerequisites for those files ahead of time.
$(OBJS): $(TGT_SENTINEL)