mehrdadh commented on code in PR #11362:
URL: https://github.com/apache/tvm/pull/11362#discussion_r880838554
##########
apps/microtvm/zephyr/template_project/microtvm_api_server.py:
##########
@@ -424,6 +432,39 @@ def _get_platform_version(self, zephyr_base: str) -> float:
return float(f"{version_major}.{version_minor}")
+ def _load_cmsis(self, lib_path: Union[str, pathlib.Path], cmsis_path:
Union[str, pathlib.Path]):
+ """Copy CMSIS header files to generated project."""
+
+ cmsis_path = pathlib.Path(cmsis_path)
+
+ lib_path = pathlib.Path(lib_path)
+ if not lib_path.exists():
+ lib_path.mkdir()
+
+ include_directories = ["CMSIS/DSP/Include", "CMSIS/DSP/Include/dsp",
"CMSIS/NN/Include"]
Review Comment:
Either would work, this approach has less affect on CMakeLists, also easier
for debugging a project since all files would be accessible in the generated
project. But I can see that this could be a bad solution if two header files
have similar name and we copy everything here. Happy to change it if you
suggest?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]