From 0a36c168c4e91acbace576858ad425feb22493c3 Mon Sep 17 00:00:00 2001
From: Stefan Schmidt <stefan.schmidt@huawei.com>
Date: Wed, 3 Nov 2021 11:48:24 +0100
Subject: [PATCH] ot-br-posix_%.bbappend: Install pskc tool for OTBR

The pskc tool is needed to create the pre-shared key for an external
commisioner, in our case the Android app on a phone. It will be used in
the otbr-configuration script.

Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
---
 .../recipes-connectivity/openthread/ot-br-posix_%.bbappend       | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-oniro-blueprints/recipes-connectivity/openthread/ot-br-posix_%.bbappend b/meta-oniro-blueprints/recipes-connectivity/openthread/ot-br-posix_%.bbappend
index edef76c7..61ecc25c 100644
--- a/meta-oniro-blueprints/recipes-connectivity/openthread/ot-br-posix_%.bbappend
+++ b/meta-oniro-blueprints/recipes-connectivity/openthread/ot-br-posix_%.bbappend
@@ -11,6 +11,7 @@ do_install_append() {
     install -m 0644 ${WORKDIR}/60-otbr-ip-forward.conf ${D}${sysconfdir}/sysctl.d/
     install -D ${WORKDIR}/otbr-configuration ${D}${sbindir}/
     install -D -m 0644 ${WORKDIR}/otbr-configuration.service ${D}${systemd_unitdir}/system/
+    install -m 0755 ${WORKDIR}/build/tools/pskc ${D}${sbindir}/
 }
 
 SYSTEMD_SERVICE_${PN} += " otbr-configuration.service"
-- 
GitLab