Design proposal: https://developer.trustedfirmware.org/w/tf_m/design/code_generation_with_jinja2/
Changes for this issue are: https://review.trustedfirmware.org/#/c/trusted-firmware-m/+/507/ https://review.trustedfirmware.org/#/c/trusted-firmware-m/+/508/
The changes have been merged