doc: fix defines dict expansion

This commit is contained in:
morris 2020-03-30 18:26:37 +08:00
parent 0fee085b67
commit 17b90afcab

View file

@ -71,7 +71,7 @@ def generate_doxygen(app, project_description):
print("Calling Doxygen to generate latest XML files")
doxy_env = os.environ
doxy_env.update({
"ENV_DOXYGEN_DEFINES": " ".join(defines),
"ENV_DOXYGEN_DEFINES": " ".join('{}={}'.format(key, value) for key, value in defines.items()),
"IDF_PATH": app.config.idf_path,
"IDF_TARGET": app.config.idf_target,
})