doc: make sure include/cm3 is pulled in properly.

Much as we had to pull in the individual target's include files
manually, because they're useful without necessarily having .c files
using them, the cortex core headers also need to be included.  This also
pulls in the doc-cm3.h file that setup nice groupings.
This commit is contained in:
Karl Palsson 2018-09-09 15:11:23 +00:00
parent 6f0f2ebe8e
commit a21aeab3b1
1 changed files with 3 additions and 2 deletions

View File

@ -11,8 +11,9 @@ IPATH=$(echo ${DDIR} | sed -e 's#../lib/##')
PATH_DELTA=$(realpath --relative-to=${ODIR} ${DDIR})
printf "# This file is autogenerated by scripts/gendoxylist\n" > ${ODIR}/${ONAME}
printf "# All headers for platform, not always caught by .d file tracking\n" >> ${ODIR}/${ONAME}
for FN in $(find ../include/libopencm3/${IPATH} -name '*.h'); do
printf "# All headers for core/platform, not always caught by .d file tracking\n" >> ${ODIR}/${ONAME}
UNTRACKED_DIRS="../include/libopencm3/cm3 ../include/libopencm3/${IPATH}"
for FN in $(find ${UNTRACKED_DIRS} -name '*.h'); do
printf "INPUT += ../%s\n" "$FN" >> ${ODIR}/${ONAME}
done