aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorStefan Schmidt <stefan.schmidt@huawei.com>2021-07-15 14:56:01 +0200
committerNaveen Saini <naveen.kumar.saini@intel.com>2021-07-16 14:10:23 +0800
commit14a33ef85fb1e36c1382c31a185d5845e39cefd0 (patch)
treeb61db633afb26c50813c1c07208eb1c12b1f4483 /recipes-kernel
parenta16a5d431860fc6145317258dcbb4e9caab9f247 (diff)
downloadmeta-zephyr-14a33ef85fb1e36c1382c31a185d5845e39cefd0.tar.gz
meta-zephyr-14a33ef85fb1e36c1382c31a185d5845e39cefd0.tar.bz2
meta-zephyr-14a33ef85fb1e36c1382c31a185d5845e39cefd0.zip
zephyr-openthread-echo-client: Add new echo-client variant for OpenThread
Similar to the normal echo-client example it demonstrates socket usage, but in this variant we enable the OpenThread config overlay and add the needed module to the build. Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb13
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb b/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb
new file mode 100644
index 0000000..49f5565
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb
@@ -0,0 +1,13 @@
+include zephyr-sample.inc
+
+ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/echo_client"
+
+ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls"
+ZEPHYR_MODULES_append = "\;${S}/modules/lib/openthread"
+
+EXTRA_OECMAKE += "-DOVERLAY_CONFIG=overlay-ot.conf"
+
+# The overlay config and OpenThread itself imposes some specific requirements
+# towards the boards (e.g. flash layout and ieee802154 radio) so we need to
+# limit to known working machines here.
+COMPATIBLE_MACHINE = "(arduino-nano-33-ble)"