* [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add OpenThread add module to build
@ 2021-06-10 8:27 Stefan Schmidt
2021-06-10 8:27 ` [meta-zephyr][PATCH v2 2/2] zephyr-openthread-echo-client: Add new echo-client variant for OpenThread Stefan Schmidt
2021-06-11 1:26 ` [yocto] [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add OpenThread add module to build Naveen Saini
0 siblings, 2 replies; 4+ messages in thread
From: Stefan Schmidt @ 2021-06-10 8:27 UTC (permalink / raw
To: yocto; +Cc: Stefan Schmidt, Stefan Schmidt
From: Stefan Schmidt <stefan.schmidt@huawei.com>
OpenThread support in Zephyr is realised as an external module. Make
sure we pull it in and have it available for applications to use it.
Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
---
recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc | 1 +
recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc | 1 +
recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc | 1 +
3 files changed, 3 insertions(+)
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
index 330fe59..35c4106 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
@@ -29,6 +29,7 @@ ZEPHYR_MODULES_append_arm = "\;${S}/modules/cmsis"
ZEPHYR_MODULES_append_nordic = "\;${S}/modules/hal/nordic"
ZEPHYR_MODULES_append_stm32 = "\;${S}/modules/hal/stm32"
ZEPHYR_MODULES_append_openamp = "\;${S}/modules/lib/open-amp\;${S}/modules/hal/libmetal"
+ZEPHYR_MODULES_append_openthread = "\;${S}/modules/lib/openthread"
EXTRA_OECMAKE_append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}"
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
index 8475b5b..4910db2 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
@@ -4,6 +4,7 @@ SRCREV_cmsis = "c3bd2094f92d574377f7af2aec147ae181aa5f8e"
SRCREV_nordic = "574493fe29c79140df4827ab5d4a23df79d03681"
SRCREV_stm32 = "f8ff8d25aa0a9e65948040c7b47ec67f3fa300df"
SRCREV_open-amp = "6010f0523cbc75f551d9256cf782f173177acdef"
+SRCREV_openthread = "385e19da1ae15f27872c2543b97276a42f102ead"
SRCREV_libmetal = "39d049d4ae68e6f6d595fce7de1dcfc1024fb4eb"
SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index 5e43583..4937a77 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -15,6 +15,7 @@ SRC_URI = "\
git://github.com/zephyrproject-rtos/hal_stm32.git;protocol=https;destsuffix=git/modules/hal/stm32;name=stm32 \
git://github.com/zephyrproject-rtos/mbedtls.git;protocol=https;destsuffix=git/modules/lib/mbedtls;name=mbedtls \
git://github.com/zephyrproject-rtos/open-amp.git;protocol=https;destsuffix=git/modules/lib/open-amp;name=open-amp \
+ git://github.com/zephyrproject-rtos/openthread.git;protocol=https;branch=zephyr;destsuffix=git/modules/lib/openthread;name=openthread \
git://github.com/zephyrproject-rtos/libmetal.git;protocol=https;destsuffix=git/modules/hal/libmetal;name=libmetal \
git://github.com/zephyrproject-rtos/tinycrypt.git;protocol=https;destsuffix=git/modules/crypto/tinycrypt;name=tinycrypt \
file://0001-cmake-add-yocto-toolchain.patch \
--
2.31.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [meta-zephyr][PATCH v2 2/2] zephyr-openthread-echo-client: Add new echo-client variant for OpenThread
2021-06-10 8:27 [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add OpenThread add module to build Stefan Schmidt
@ 2021-06-10 8:27 ` Stefan Schmidt
2021-06-11 1:26 ` [yocto] [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add OpenThread add module to build Naveen Saini
1 sibling, 0 replies; 4+ messages in thread
From: Stefan Schmidt @ 2021-06-10 8:27 UTC (permalink / raw
To: yocto; +Cc: Stefan Schmidt, Stefan Schmidt
From: Stefan Schmidt <stefan.schmidt@huawei.com>
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>
---
.../zephyr-kernel/zephyr-openthread-echo-client.bb | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb
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..c985df2
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-openthread-echo-client.bb
@@ -0,0 +1,8 @@
+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"
--
2.31.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [yocto] [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add OpenThread add module to build
2021-06-10 8:27 [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add OpenThread add module to build Stefan Schmidt
2021-06-10 8:27 ` [meta-zephyr][PATCH v2 2/2] zephyr-openthread-echo-client: Add new echo-client variant for OpenThread Stefan Schmidt
@ 2021-06-11 1:26 ` Naveen Saini
2021-06-14 9:04 ` Stefan Schmidt
1 sibling, 1 reply; 4+ messages in thread
From: Naveen Saini @ 2021-06-11 1:26 UTC (permalink / raw
To: Stefan Schmidt, yocto@lists.yoctoproject.org; +Cc: Stefan Schmidt
> -----Original Message-----
> From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On
> Behalf Of Stefan Schmidt
> Sent: Thursday, June 10, 2021 4:28 PM
> To: yocto@lists.yoctoproject.org
> Cc: Stefan Schmidt <stefan@datenfreihafen.org>; Stefan Schmidt
> <stefan.schmidt@huawei.com>
> Subject: [yocto] [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add
> OpenThread add module to build
>
> From: Stefan Schmidt <stefan.schmidt@huawei.com>
>
> OpenThread support in Zephyr is realised as an external module. Make sure
> we pull it in and have it available for applications to use it.
>
> Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
> ---
> recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc | 1 +
> recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc | 1 +
> recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc | 1 +
> 3 files changed, 3 insertions(+)
>
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> index 330fe59..35c4106 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> @@ -29,6 +29,7 @@ ZEPHYR_MODULES_append_arm =
> "\;${S}/modules/cmsis"
> ZEPHYR_MODULES_append_nordic = "\;${S}/modules/hal/nordic"
> ZEPHYR_MODULES_append_stm32 = "\;${S}/modules/hal/stm32"
> ZEPHYR_MODULES_append_openamp = "\;${S}/modules/lib/open-
> amp\;${S}/modules/hal/libmetal"
> +ZEPHYR_MODULES_append_openthread =
> "\;${S}/modules/lib/openthread"
This is not required. It already listed in required sample recipe. Please remove it.
>
> EXTRA_OECMAKE_append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}"
>
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
> b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
> index 8475b5b..4910db2 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
> @@ -4,6 +4,7 @@ SRCREV_cmsis =
> "c3bd2094f92d574377f7af2aec147ae181aa5f8e"
> SRCREV_nordic = "574493fe29c79140df4827ab5d4a23df79d03681"
> SRCREV_stm32 = "f8ff8d25aa0a9e65948040c7b47ec67f3fa300df"
> SRCREV_open-amp = "6010f0523cbc75f551d9256cf782f173177acdef"
> +SRCREV_openthread = "385e19da1ae15f27872c2543b97276a42f102ead"
> SRCREV_libmetal = "39d049d4ae68e6f6d595fce7de1dcfc1024fb4eb"
> SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
> SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/recipes-
> kernel/zephyr-kernel/zephyr-kernel-src.inc
> index 5e43583..4937a77 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> @@ -15,6 +15,7 @@ SRC_URI = "\
> git://github.com/zephyrproject-
> rtos/hal_stm32.git;protocol=https;destsuffix=git/modules/hal/stm32;name=
> stm32 \
> git://github.com/zephyrproject-
> rtos/mbedtls.git;protocol=https;destsuffix=git/modules/lib/mbedtls;name=
> mbedtls \
> git://github.com/zephyrproject-rtos/open-
> amp.git;protocol=https;destsuffix=git/modules/lib/open-amp;name=open-
> amp \
> +
> + git://github.com/zephyrproject-rtos/openthread.git;protocol=https;bran
> + ch=zephyr;destsuffix=git/modules/lib/openthread;name=openthread \
> git://github.com/zephyrproject-
It would cause build failure with v2.5.0. So add SRCREV_openthread in zephyr-kernel-src-2.5.0.inc too.
> rtos/libmetal.git;protocol=https;destsuffix=git/modules/hal/libmetal;name=l
> ibmetal \
> git://github.com/zephyrproject-
> rtos/tinycrypt.git;protocol=https;destsuffix=git/modules/crypto/tinycrypt;na
> me=tinycrypt \
> file://0001-cmake-add-yocto-toolchain.patch \
> --
> 2.31.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [yocto] [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add OpenThread add module to build
2021-06-11 1:26 ` [yocto] [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add OpenThread add module to build Naveen Saini
@ 2021-06-14 9:04 ` Stefan Schmidt
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Schmidt @ 2021-06-14 9:04 UTC (permalink / raw
To: Saini, Naveen Kumar, yocto@lists.yoctoproject.org; +Cc: Stefan Schmidt
Hello.
On 11.06.21 03:26, Saini, Naveen Kumar wrote:
>
>
>> -----Original Message-----
>> From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On
>> Behalf Of Stefan Schmidt
>> Sent: Thursday, June 10, 2021 4:28 PM
>> To: yocto@lists.yoctoproject.org
>> Cc: Stefan Schmidt <stefan@datenfreihafen.org>; Stefan Schmidt
>> <stefan.schmidt@huawei.com>
>> Subject: [yocto] [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add
>> OpenThread add module to build
>>
>> From: Stefan Schmidt <stefan.schmidt@huawei.com>
>>
>> OpenThread support in Zephyr is realised as an external module. Make sure
>> we pull it in and have it available for applications to use it.
>>
>> Signed-off-by: Stefan Schmidt <stefan.schmidt@huawei.com>
>> ---
>> recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc | 1 +
>> recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc | 1 +
>> recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc | 1 +
>> 3 files changed, 3 insertions(+)
>>
>> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
>> b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
>> index 330fe59..35c4106 100644
>> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
>> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
>> @@ -29,6 +29,7 @@ ZEPHYR_MODULES_append_arm =
>> "\;${S}/modules/cmsis"
>> ZEPHYR_MODULES_append_nordic = "\;${S}/modules/hal/nordic"
>> ZEPHYR_MODULES_append_stm32 = "\;${S}/modules/hal/stm32"
>> ZEPHYR_MODULES_append_openamp = "\;${S}/modules/lib/open-
>> amp\;${S}/modules/hal/libmetal"
>> +ZEPHYR_MODULES_append_openthread =
>> "\;${S}/modules/lib/openthread"
>
> This is not required. It already listed in required sample recipe. Please remove it.
Fixed.
>>
>> EXTRA_OECMAKE_append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}"
>>
>> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
>> b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
>> index 8475b5b..4910db2 100644
>> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
>> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
>> @@ -4,6 +4,7 @@ SRCREV_cmsis =
>> "c3bd2094f92d574377f7af2aec147ae181aa5f8e"
>> SRCREV_nordic = "574493fe29c79140df4827ab5d4a23df79d03681"
>> SRCREV_stm32 = "f8ff8d25aa0a9e65948040c7b47ec67f3fa300df"
>> SRCREV_open-amp = "6010f0523cbc75f551d9256cf782f173177acdef"
>> +SRCREV_openthread = "385e19da1ae15f27872c2543b97276a42f102ead"
>> SRCREV_libmetal = "39d049d4ae68e6f6d595fce7de1dcfc1024fb4eb"
>> SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
>> SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
>> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/recipes-
>> kernel/zephyr-kernel/zephyr-kernel-src.inc
>> index 5e43583..4937a77 100644
>> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
>> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
>> @@ -15,6 +15,7 @@ SRC_URI = "\
>> git://github.com/zephyrproject-
>> rtos/hal_stm32.git;protocol=https;destsuffix=git/modules/hal/stm32;name=
>> stm32 \
>> git://github.com/zephyrproject-
>> rtos/mbedtls.git;protocol=https;destsuffix=git/modules/lib/mbedtls;name=
>> mbedtls \
>> git://github.com/zephyrproject-rtos/open-
>> amp.git;protocol=https;destsuffix=git/modules/lib/open-amp;name=open-
>> amp \
>> +
>> + git://github.com/zephyrproject-rtos/openthread.git;protocol=https;bran
>> + ch=zephyr;destsuffix=git/modules/lib/openthread;name=openthread \
>> git://github.com/zephyrproject-
>
>
> It would cause build failure with v2.5.0. So add SRCREV_openthread in zephyr-kernel-src-2.5.0.inc too.
Indeed, I did not test with 2.5. Thanks for spotting. Fixed.
I send a v3 now.
regards
Stefan Schmidt
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-06-14 9:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-10 8:27 [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add OpenThread add module to build Stefan Schmidt
2021-06-10 8:27 ` [meta-zephyr][PATCH v2 2/2] zephyr-openthread-echo-client: Add new echo-client variant for OpenThread Stefan Schmidt
2021-06-11 1:26 ` [yocto] [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add OpenThread add module to build Naveen Saini
2021-06-14 9:04 ` Stefan Schmidt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.