Matias N.
Matias N.
@btashton is the collision in Make.dep happening for files with same name on different places? Or is it really just one file that appears multiple times on Make.dep?
BTW, it seems I never applied the parallel dependency generation feature to apps (I thought I did). Maybe I can try to do that and deal with the VPATH issue...
A potentially problematic line could be this one in Application.mk: `.depend: Makefile $(wildcard $(foreach SRC, $(SRCS), $(addsuffix /$(SRC), $(subst :, ,$(VPATH))))) $(DEPCONFIG)` I don't really understand how VPATH is supposed...
Yeah, I'm not sure how to handle this since VPATH is actually a concatenation of paths. Maybe always using the last entry would be correct but it would still require...
> > A potentially problematic line could be this one in Application.mk: > > `.depend: Makefile $(wildcard $(foreach SRC, $(SRCS), $(addsuffix /$(SRC), $(subst :, ,$(VPATH))))) $(DEPCONFIG)` > > I don't...
BTW, the "replace" argument is probably not needed anymore. With the change I made sometime ago about how libraries are built, they are always built from scratch on each build...
This is the problematic line: https://github.com/apache/incubator-nuttx-apps/blob/f3828ccbca3e45319d804cd5c3f91a4764de68c8/Application.mk#L185
Not really, it would be good to have a section in the docs explaining how to write an app (maybe under "applications").
A workaround is to not use `main` to define the entry point, the `_main` and thus not rely on this feature.
I don't really have a better proposal and don't really like the added complexity of the solution, so I will just leave this issue open in case someone thinks of...