Does the NuttX build framework (ie. the Makefile design) support adding external libraries to chip sources?
Put another way, if I want to add an external library to the source of one of the chips, and build it from nuttx make files, is there a suggested way to include it in the build? I'm thinking a way that fits into the existing Makefile framework provided by NuttX.
Take for example, the Nordic Device Family Pack.
#include lines in the source of this DFP are designed to have the directory with the header files included as a
-I include path at compile time. So it seems the best way to add the build of this source to a chip in the NuttX source is to manually add
CTAGS += nordic/Device/Include to the
Make.defs in the chip-specific source folder,
nrf52. That works, but I can't help but feel it's hacky to change CTAGS at such a low-level in the build framework, in a file called
Make.defs no less.