areusch commented on code in PR #11362:
URL: https://github.com/apache/tvm/pull/11362#discussion_r880845566
##########
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:
yeah the case I was more thinking about was if CMSIS-NN reorganizes and a
file inside one of these directories starts depending on a file from another,
non-copied directory. I sort of prefer the `-I` for this reason, though it does
mean you have to not move CMSIS-NN. On the other hand, examining CMakeLists is
a fairly logical thing to do if you get include path problems.
--
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]