This is an automated email from the ASF dual-hosted git repository.

mousius pushed a commit to branch ci-docker-staging
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/ci-docker-staging by this push:
     new 3eb928d  Update Zephyr project generator for 2.7
3eb928d is described below

commit 3eb928d005db2b08122eb27741adbffa3a862ebe
Author: Chris Sidebottom <[email protected]>
AuthorDate: Mon Jan 31 17:57:52 2022 +0000

    Update Zephyr project generator for 2.7
---
 apps/microtvm/zephyr/template_project/microtvm_api_server.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/apps/microtvm/zephyr/template_project/microtvm_api_server.py 
b/apps/microtvm/zephyr/template_project/microtvm_api_server.py
index 8069f6d..0d9ab35 100644
--- a/apps/microtvm/zephyr/template_project/microtvm_api_server.py
+++ b/apps/microtvm/zephyr/template_project/microtvm_api_server.py
@@ -63,8 +63,7 @@ BOARDS = API_SERVER_DIR / "boards.json"
 
 # Used to check Zephyr version installed on the host.
 # We only check two levels of the version.
-ZEPHYR_VERSION = 2.5
-
+ZEPHYR_VERSION = 2.7
 
 WEST_CMD = default = sys.executable + " -m west" if sys.executable else None
 
@@ -373,7 +372,12 @@ class Handler(server.ProjectAPIHandler):
             f.write("# For TVMPlatformAbort().\n" "CONFIG_REBOOT=y\n" "\n")
 
             if options["project_type"] == "host_driven":
-                f.write("# For RPC server C++ bindings.\n" 
"CONFIG_CPLUSPLUS=y\n" "\n")
+                f.write(
+                    "# For RPC server C++ bindings.\n"
+                    "CONFIG_CPLUSPLUS=y\n"
+                    "CONFIG_LIB_CPLUSPLUS=y\n"
+                    "\n"
+                )
 
             f.write("# For math routines\n" "CONFIG_NEWLIB_LIBC=y\n" "\n")
 

Reply via email to