From a21aeab3b19e50af9338e2beb4ded595d291d0f1 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Sun, 9 Sep 2018 15:11:23 +0000 Subject: [PATCH] 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. --- scripts/gendoxylist | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/gendoxylist b/scripts/gendoxylist index 988891d1..6ae5804b 100755 --- a/scripts/gendoxylist +++ b/scripts/gendoxylist @@ -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