George Djabarov / Mbed OS mbed-os-example-mesh-minimal
Revision:
53:82a191e2c133
Parent:
52:27692043e962
Child:
58:e0f2bf24e6db
--- a/Jenkinsfile	Wed Sep 20 12:17:51 2017 +0100
+++ b/Jenkinsfile	Fri Sep 22 07:00:13 2017 +0100
@@ -125,8 +125,7 @@
             execute("sed -i '/mbed-mesh-api.thread-device-type\":/a \"mbed-mesh-api.thread-config-panid\": \"0xBAAB\",' ${config_file}")
             execute("sed -i 's/\"NANOSTACK\", \"THREAD_ROUTER\", \"COMMON_PAL\"/\"NANOSTACK\", \"THREAD_END_DEVICE\", \"COMMON_PAL\"/'  ${config_file}")
             execute("sed -i 's/\"mbed-mesh-api.thread-device-type\": \"MESH_DEVICE_TYPE_THREAD_ROUTER\"/\"mbed-mesh-api.thread-device-type\": \"MESH_DEVICE_TYPE_THREAD_MINIMAL_END_DEVICE\"/' ${config_file}")
-
-          }
+            }
 
           if ("${meshInterface}" == "6lp") {
             config_file = "./configs/mesh_6lowpan.json"
@@ -154,6 +153,10 @@
             execute("sed -i 's/mbed-mesh-api.heap-size\": .*,/mbed-mesh-api.heap-size\": 11000,/' ${config_file}")
             // Limit event loop heap size
             execute("sed -i '/target.features_add/ i \"nanostack-hal.event_loop_thread_stack_size\": 2048,' ${config_file}")
+            if ("${toolchain}" == "GCC_ARM" && "${meshInterface}" == "thd") {
+                execute("sed -i 's/mbed-mesh-api.heap-size\": .*,/mbed-mesh-api.heap-size\": 15000,/' ${config_file}")
+                execute("sed -i '/mbed-mesh-api.thread-device-type\":/a \"mbed-mesh-api.use-malloc-for-heap\": true,' ${config_file}")
+            }
           }
 
           // Activate traces