alanmacd commented on code in PR #13885:
URL: https://github.com/apache/tvm/pull/13885#discussion_r1093806577


##########
apps/microtvm/zephyr/template_project/microtvm_api_server.py:
##########
@@ -658,13 +668,30 @@ def generate_project(self, model_library_format_path, 
standalone_crt_dir, projec
             API_SERVER_DIR / "crt_config" / "crt_config.h", crt_config_dir / 
"crt_config.h"
         )
 
-        # Populate src/
+        # Populate src and include
         src_dir = project_dir / "src"
-        if project_type != "host_driven" or self._is_fvp(zephyr_board, 
use_fvp):
-            shutil.copytree(API_SERVER_DIR / "src" / project_type, src_dir)
-        else:
-            src_dir.mkdir()
-            shutil.copy2(API_SERVER_DIR / "src" / project_type / "main.c", 
src_dir)
+        src_dir.mkdir()
+        include_dir = project_dir / "include" / "tvm"
+        include_dir.mkdir(parents=True)
+        for file in os.listdir(API_SERVER_DIR / "src" / project_type):

Review Comment:
   assign `API_SERVER_DIR / "src" / project_type` to a variable to reduce 
redundant strings?



-- 
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]

Reply via email to