[doc,cmdgen] Remove need for text bracketed by CMDGEN BEGIN END #24991
Labels
Component:Doc
Documentation issue
Component:MultiTop
Component:Tooling
Issues related to tooling, e.g. tools/scripts for doc, code generation (docgen, reggen), CSR
Milestone
Description
The util/cmdgen.py tool runs a command to generate text that will be inserted between the line containing CMDGEN BEGIN and the one containing CMDGEN END. This means there is no need to have any text between these lines.
The usage of cmdgen is described at https://opentitan.org/book/doc/contributing/doc/index.html#cmdgen, and is currently done manually as it is not part of the make targets under hw/Makefile which generates a top.
Since we place all generated artifacts in git we need to make sure cmdgen is run so all md files are as expected.
The problem we face is that if the bracketed text is empty the ci/scripts/check-generated.sh will fail since it uses hw/Makefile to generate artifacts and there is no target for cmdgen. Apparently we currently deal with this by populating the lines between the CMDGEN brackets with what earlgrey expects, which is clumsy, and is unworkable in multi-top.
I propose we add a cmdgen target in that makefile and enhance the check-generated script to invoke that target as well.
The text was updated successfully, but these errors were encountered: