I just moved my project to ChibiOS 19.1 and finally updated my Makefiles to the new conventions. Thereby I immediately struggled with the "global" make variables ALLCSRC, ALLINC, ALLASM, ALLCPPSRC etc. I see that those have been introduced quite some time ago, but maybe optimizations are still allowed
Actual projects will use even further variables, holding additional include paths and sources. Eventually the resulting Makefile looks like this:
Code: Select all
CSRC = $(ALLCSRC) \
$(YOU_THOUGHT_THIS_WAS_ALL) \
$(BUT_THERE_IS_MORE) \
$(FOR_INSTANCE) \
$(TESTSRC) \
$(CHIBIOS)/os/various/evtimer.c \
$(MYPROJECTCSRC)
Imho, it would be more fitting to call those variables CHIBIxyz or CHxyz, and rename other (optional) variables to something like CHTESTSRC.
Maybe you can think about that, or you can just move this post to the trash immediately
Cheers,
Thomas