From 700a191db0657946afc87b442288b6e014a69f62 Mon Sep 17 00:00:00 2001
From: Philippe Coval <philippe.coval.ext@huawei.com>
Date: Thu, 22 Sep 2022 15:11:51 +0200
Subject: [PATCH] zephyr-openthread-rcp: Support nrf52840dk-nrf52840 machine

This Nordic reference design can be a fallback option for
Oniro's gateway-blueprint
I've been tested it myself along my single arduino-nano node

Forwarded: https://gitlab.eclipse.org/eclipse/oniro-core/meta-zephyr/-/merge_requests/22
Relate-to: https://gitlab.eclipse.org/eclipse/oniro-blueprints/transparent-gateway/meta-oniro-blueprints-gateway/-/issues/6
Signed-off-by: Philippe Coval <philippe.coval.ext@huawei.com>
---
 .../recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb
index 0e17f4b..99d8732 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-openthread-rcp.bb
@@ -7,7 +7,7 @@ EXTRA_OECMAKE += "-DCONF_FILE="prj.conf overlay-rcp.conf overlay-usb-nrf-br.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)"
+COMPATIBLE_MACHINE = "(arduino-nano-33-ble|nrf52840dk-nrf52840)"
 
 python __anonymous() {
     has_acm0 = d.getVar("ONIRO_ENABLE_ACM0")
-- 
GitLab