I have a project which needs to support multiple boards. So I tried following the pattern of the 'multi' projects in testhal. I wanted to create a single .dep directory for dependencies, and then sub directories in there for the various boards. So, in the makefile for each board, I have the following variables defined:
I got the following error if I didn't modify rules.mk as above.
Compiling crt0_v7m.S ../../../../ChibiOS_18.2.0/os/common/startup/ARMCMx/compilers/GCC/crt0_v7m.S:1:0: fatal error: opening dependency file ./.dep/stm32l496-snapdragon/crt0_v7m.o.d: No such file or directory