[yocto] [meta-zephyr][PATCH] qemuzephyrrunner: allow to pass QB_GRAPHICS to qemu cmdline

2022-09-27 Thread Naveen Saini
Signed-off-by: Naveen Saini 
---
 meta-zephyr-core/lib/oeqa/utils/qemuzephyrrunner.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-zephyr-core/lib/oeqa/utils/qemuzephyrrunner.py 
b/meta-zephyr-core/lib/oeqa/utils/qemuzephyrrunner.py
index 7b486ce..c0a9e0f 100644
--- a/meta-zephyr-core/lib/oeqa/utils/qemuzephyrrunner.py
+++ b/meta-zephyr-core/lib/oeqa/utils/qemuzephyrrunner.py
@@ -157,6 +157,7 @@ class QemuZephyrRunner(QemuRunner):
 bb.error("Unsupported QEMU: %s" % self.machine)
 return False
 
+self.qemuparams += " %s " %self.get('QB_GRAPHICS')
 self.qemuparams += " %s " %self.get('QB_OPT_APPEND')
 self.qemuparams += " %s " %self.get('QB_CPU')
 
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58195): https://lists.yoctoproject.org/g/yocto/message/58195
Mute This Topic: https://lists.yoctoproject.org/mt/93965957/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] zephyr-openthread-rcp: Support nrf52840dk-nrf52840 machine

2022-09-27 Thread Naveen Saini
From: Philippe Coval 

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

Origin: 
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 
Signed-off-by: Naveen Saini 
---
 .../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 ed86a9b..1b19122 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,4 +7,4 @@ 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)"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58194): https://lists.yoctoproject.org/g/yocto/message/58194
Mute This Topic: https://lists.yoctoproject.org/mt/93965040/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr] new qemu version breaking qemu-cortex-a53

2022-09-27 Thread Naveen Saini


> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Jon Mason
> Sent: Tuesday, September 27, 2022 3:11 AM
> To: yocto@lists.yoctoproject.org
> Cc: Saini, Naveen Kumar 
> Subject: [yocto] [meta-zephyr] new qemu version breaking qemu-cortex-
> a53
> 
> The recently updated version of qemu (v7.1) is causing qemu-cortex-a53
> tests to fail.  See
> https://gitlab.com/jonmason00/meta-zephyr/-/jobs/3082086509
> 
> I was able to bisect the issue to that commit.  I'm not certain of the cause
> beyond that, but other issues are being seen with the new qemu and meta-
> arm.  Let me know if you want me to open a bug.

Yes, Jon, please open bug for this machine configuration.

> 
> Thanks,
> Jon

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58181): https://lists.yoctoproject.org/g/yocto/message/58181
Mute This Topic: https://lists.yoctoproject.org/mt/93934513/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][PATCH 0/4] Add script for version upgrades

2022-09-21 Thread Naveen Saini
Thanks Jon. Merged.

Regards,
Naveen

> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Jon Mason
> Sent: Wednesday, September 21, 2022 6:34 AM
> To: Peter Hoyes 
> Cc: yocto@lists.yoctoproject.org; diego.sue...@arm.com
> Subject: Re: [yocto] [meta-zephyr][PATCH 0/4] Add script for version
> upgrades
> 
> On Fri, Sep 16, 2022 at 10:03:14AM +0100, Peter Hoyes wrote:
> > From: Peter Hoyes 
> >
> > This patch chain has been developed on top of the 2.7.3 upgrade patch.
> >
> > Add a script, generate-version.py, which can be used to automatically
> > generate configuration for new Zephyr versions. Regenerate
> > configuration for 2.7.3 and 3.1.0 using this script.
> >
> > This script includes a constant version-specific declaration of
> > ZEPHYR_MODULES, so the build-time logic to extract ZEPHYR_MODULES is
> > no longer required. Remove the do_get_zmods task and the West recipe.
> >
> > Peter Hoyes (4):
> >   zephyr-core/scripts: Introduce script to generate new versions
> >   zephyr-core/zephyr-kernel: Migrate to script-driven version files
> >   zephyr-core/classes: Remove West-based logic from zephyr.bbclass
> >   zephyr-core/zephyr-kernel: Update dtc.patch Upstream-Status
> 
> Series passes CI (on top of the v2.7.3 patch).  See
> https://gitlab.com/jonmason00/meta-zephyr/-/pipelines/645914527
> 
> Tested-by: Jon Mason 
> 
> >
> >  README.txt|  17 ++
> >  meta-zephyr-core/classes/zephyr.bbclass   |  32 +--
> >  .../recipes-devtools/west/west_0.12.99.bb |  22 --
> >  ...y-generation-issue-in-cross-compila.patch} |   0
> >  .../zephyr-kernel/files/dtc.patch |   2 +-
> >  .../zephyr-kernel/zephyr-kernel-src-2.7.3.inc | 202 +---
> > .../zephyr-kernel/zephyr-kernel-src-3.1.0.inc | 220 +++---
> >  .../zephyr-kernel/zephyr-kernel-src.inc   |  43 
> >  meta-zephyr-core/scripts/generate-version.py  |  73 ++
> >  .../scripts/zephyr-kernel-src.inc.jinja   |  35 +++
> >  10 files changed, 474 insertions(+), 172 deletions(-)  delete mode
> > 100644 meta-zephyr-core/recipes-devtools/west/west_0.12.99.bb
> >  rename
> > meta-zephyr-core/recipes-kernel/zephyr-kernel/files/{0001-x86-fix-efi-
> > binary-generation-issue-in-cross-compila.patch =>
> > 0001-2.7-x86-fix-efi-binary-generation-issue-in-cross-compila.patch}
> > (100%)  create mode 100755
> > meta-zephyr-core/scripts/generate-version.py
> >  create mode 100644
> > meta-zephyr-core/scripts/zephyr-kernel-src.inc.jinja
> >
> > --
> > 2.25.1
> >
> >

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58113): https://lists.yoctoproject.org/g/yocto/message/58113
Mute This Topic: https://lists.yoctoproject.org/mt/93718606/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] zephyr-kernel/2.7: update to zephyr v2.7.3

2022-09-15 Thread Naveen Saini
003de78ce0 release: Zephyr 2.7.3
9502d500b6 release: security: Notes for 2.7.3
2a88e08296 release: update v2.7.3 release notes
e1ee34e55c drivers: sensor: sm351lt: Fix global thread triggering bug
2ad1ef651b Bluetooth: host: Fix L2CAP reconfigure response with invalid CID
089675af45 Bluetooth: host: Fix L2CAP reconfigure response with invalid MTU
03ff0d471e net: route: Fix pkt leak if net_send_data() fails
cd96136bcb boards: nucleo_wb55rg: Fix documentation about BLE binary 
compatibility
567fda57df tests: drivers: can: api: add test for RTR filter matching
b14f356c96 drivers: can: loopback: check frame ID type and RTR bit in filters
874d77bc75 drivers: can: mcux: flexcan: fix handling of RTR frames
ec0befb938 drivers: can: mcan: acknowledge all received frames
273e90a86f scripts: release: list_backports: use older python dict merge method
59dc65a7b4 ci: backports: check if a backport PR has a valid issue
8ff8cafc18 scripts: release: list_backports.py
ba07347b60 scripts: release: use GITHUB_TOKEN and start_date in scripts
e423902617 tests: posix: pthread: test for pthread descriptor leaks
018f836c4d posix: pthread: consider PTHREAD_EXITED state in pthread_create
f4466c4760 tests: cpp: cxx: Add qemu_cortex_a53 as integration platform
9a5cbe3568 tests: cpp: cxx: Test with various types of libc
5b7b15fb2d tests: cpp: cxx: Add dynamic memory availability test for static init
e5a92a1fab tests: cpp: cxx: Add static global constructor invocation test
74f0b6443a lib: libc: newlib: Initialise libc heap during POST_KERNEL phase
6c16b3492b lib: libc: minimal: Initialise libc heap during POST_KERNEL phase
1831431bab lib: posix: semaphore: use consistent timebase in sem_timedwait
765f63c6b9 cmake: remove xtensa workaround in Zephyr toolchain code.
062306fc0b cmake: zephyr toolchain code cleanup
8fcf7f1d78 Revert "cmake: Zephyr sdk backward compatibility with 0.11.1 and 
0.11.2"
f06b3d922c Bluetooth: Controller: Fix PHY update for unsupported PHY
b75c012c55 drivers: spi: stm32 spi with dma must enable cs after periph
1efe6de3fe drivers: i2c: Fix infinite recursion in driver unregister function
39270ed4a0 Bluetooth: Mesh: Fix segmentation when sending proxy message
81ffa550ee Bluetooth: Mesh: Check SegN when receiving Transaction Start PDU
8c2965e017 Bluetooth: Mesh: add check for rx buffer overflow in pb adv
7aa38b4ac8 drivers: can: m_can: fix alignmed issues
6dd320f791 release: update v2.7.2 release notes
ecac165d36 logging: shell: fix shell stats null pointer dereference
132d90d1bc tests/bluetooth/tester: Refactor Read UUID callback
58356313ac coredump: adjust mem_region find in gdbstub
99cfd3e4d7 Bluetooth: Controller: Fix per adv scheduling issue
780588bd33 edac: ibecc: Add support for EHL SKU13, SKU14, SKU15

Signed-off-by: Naveen Saini 
---
 ...ephyr-kernel-src-2.7.2.inc => zephyr-kernel-src-2.7.3.inc} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename 
meta-zephyr-core/recipes-kernel/zephyr-kernel/{zephyr-kernel-src-2.7.2.inc => 
zephyr-kernel-src-2.7.3.inc} (97%)

diff --git 
a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.2.inc 
b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.3.inc
similarity index 97%
rename from 
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.2.inc
rename to 
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.3.inc
index cbe761f..1c53748 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.2.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.3.inc
@@ -14,7 +14,7 @@ SRC_URI += " \
 #  echo SRCREV_$x = \"$rev\"'
 #
 
-SRCREV_default = "6dd320f791c4da49190b30f9134f776d85bc5836"
+SRCREV_default = "003de78ce0dd213a1c7b3d159b967fb19a12aa45"
 SRCREV_canopennode = "f167efe85c8c7de886f1bc47f9173cfb8a346bb5"
 SRCREV_civetweb = "094aeb41bb93e9199d24d665ee43e9e05d6d7b1c"
 SRCREV_cmsis = "b0612c97c1401feeb4160add6462c3627fe90fc7"
@@ -60,7 +60,7 @@ SRCREV_TraceRecorder = 
"36c577727642457b0db7274298a4b96558374832"
 SRCREV_tfm = "c74be3890c9d975976fde1b1a3b2f5742bec34c0"
 
 ZEPHYR_BRANCH = "v2.7-branch"
-PV = "2.7.2+git${SRCPV}"
+PV = "2.7.3+git${SRCPV}"
 
 SRC_URI:append = " \
 file://dtc.patch;patchdir=zephyr \
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#58046): https://lists.yoctoproject.org/g/yocto/message/58046
Mute This Topic: https://lists.yoctoproject.org/mt/93695176/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][PATCH kirkstone 0/7] Series to add Gitlab CI to kirkstone

2022-08-02 Thread Naveen Saini
My local daily builds also run on master. I triggered a kirkstone build today, 
it builds successfully for me. Is it failing for specific machine ?

> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Jon Mason
> Sent: Tuesday, August 2, 2022 11:51 PM
> To: yocto@lists.yoctoproject.org
> Subject: [yocto] [meta-zephyr][PATCH kirkstone 0/7] Series to add Gitlab CI
> to kirkstone
> 
> Kirkstone was broken for meta-zephyr for weeks, but no one noticed
> because Gitlab CI is only running on master.  Backport the relevant patches
> from master so this can be more easily detected, and I'll run a nightly
> kirkstone to my personal Gitlab CI setup (which can be monitored at
> https://gitlab.com/jonmason00/meta-zephyr/-/pipelines).
> 
> NOTE: I was conflicted between squashing the uniquely CI patches into a
> single one to hide some of the bug fixesin he originals, versus pulling them
> back to match what was in master.  I did the latter, but the former might be
> more acceptable.
> 
> CI run for this series can be seen at https://gitlab.com/jonmason00/meta-
> zephyr/-/pipelines/602974431
> 
> Thanks,
> Jon
> 
> --
> 
> Jon Mason (5):
>   qemu-nios2: use glibc
>   CI: add Gitlab CI support
>   CI: use path to avoid warning
>   CI: move stm32mp157c-dk2 to be alphabetical
>   CI: add more targets
> 
> Peter Hoyes (2):
>   zephyrtest: Enable use of TESTIMAGE_AUTO
>   CI: Use TESTIMAGE_AUTO
> 
>  .gitlab-ci.yml   | 90 
>  ci/96b-avenger96.yml |  6 ++
>  ci/96b-nitrogen.yml  | 20 +
>  ci/arduino-nano-33-ble.yml   | 21 +
>  ci/base.yml  | 38 +
>  ci/check-machine-coverage| 26 ++
>  ci/check-warnings| 19 +
>  ci/intel-x86-64.yml  |  6 ++
>  ci/jobs-to-kas   | 19 +
>  ci/logging.yml   | 13 +++
>  ci/meta-openembedded.yml | 11 +++
>  ci/nrf52840dk-nrf52840.yml   | 20 +
>  ci/qemu-cortex-m3.yml| 12 +++
>  ci/qemu-nios2.yml| 10 +++
>  ci/qemu-x86.yml  | 10 +++
>  ci/stm32mp157c-dk2.yml   | 13 +++
>  ci/testimage.yml |  9 ++
>  ci/update-repos  | 40 +
>  meta-zephyr-bsp/conf/machine/qemu-nios2.conf |  2 +  meta-zephyr-
> core/classes/zephyrtest.bbclass  |  2 +-
>  meta-zephyr-core/conf/distro/zephyr.conf |  2 +-
>  21 files changed, 387 insertions(+), 2 deletions(-)  create mode 100644
> .gitlab-ci.yml  create mode 100644 ci/96b-avenger96.yml  create mode 100644
> ci/96b-nitrogen.yml  create mode 100644 ci/arduino-nano-33-ble.yml  create
> mode 100644 ci/base.yml  create mode 100755 ci/check-machine-coverage
> create mode 100755 ci/check-warnings  create mode 100644 ci/intel-x86-
> 64.yml  create mode 100755 ci/jobs-to-kas  create mode 100644
> ci/logging.yml  create mode 100644 ci/meta-openembedded.yml  create
> mode 100644 ci/nrf52840dk-nrf52840.yml  create mode 100644 ci/qemu-
> cortex-m3.yml  create mode 100644 ci/qemu-nios2.yml  create mode 100644
> ci/qemu-x86.yml  create mode 100644 ci/stm32mp157c-dk2.yml  create
> mode 100644 ci/testimage.yml  create mode 100755 ci/update-repos
> 
> --
> 2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57756): https://lists.yoctoproject.org/g/yocto/message/57756
Mute This Topic: https://lists.yoctoproject.org/mt/92774463/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH v3] zephyr-kernel-src: bump the v3 version to v3.1.0

2022-07-28 Thread Naveen Saini
From: Bartosz Golaszewski 

This upgrades the 3.x series to using v3.1.0.

Signed-off-by: Bartosz Golaszewski 
Signed-off-by: Naveen Saini 

---
v3:
Rebased and added x86 patch for v3.1.0, which fix x86 build failures
---
 ... 0001-2.7-cmake-add-yocto-toolchain.patch} |  0
 .../0001-3.1-cmake-add-yocto-toolchain.patch  | 63 +++
 ...ry-generation-issue-in-cross-compila.patch | 80 +++
 .../zephyr-kernel/zephyr-kernel-src-2.7.2.inc |  7 +-
 .../zephyr-kernel/zephyr-kernel-src-3.0.0.inc | 70 
 .../zephyr-kernel/zephyr-kernel-src-3.1.0.inc | 77 ++
 .../zephyr-kernel/zephyr-kernel-src.inc   |  5 +-
 7 files changed, 227 insertions(+), 75 deletions(-)
 rename 
meta-zephyr-core/recipes-kernel/zephyr-kernel/files/{0001-cmake-add-yocto-toolchain.patch
 => 0001-2.7-cmake-add-yocto-toolchain.patch} (100%)
 create mode 100644 
meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-cmake-add-yocto-toolchain.patch
 create mode 100644 
meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
 delete mode 100644 
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.0.0.inc
 create mode 100644 
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.1.0.inc

diff --git 
a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch
 
b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-2.7-cmake-add-yocto-toolchain.patch
similarity index 100%
rename from 
meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch
rename to 
meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-2.7-cmake-add-yocto-toolchain.patch
diff --git 
a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-cmake-add-yocto-toolchain.patch
 
b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-cmake-add-yocto-toolchain.patch
new file mode 100644
index 000..a16eabf
--- /dev/null
+++ 
b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-cmake-add-yocto-toolchain.patch
@@ -0,0 +1,63 @@
+From 39f1dd116d00b6c2135c4ccd216341dcd2f2917e Mon Sep 17 00:00:00 2001
+From: Naveen Saini 
+Date: Tue, 26 Jul 2022 14:12:18 +0200
+Subject: [PATCH] cmake: add yocto toolchain
+
+Upstream status: inappropriate [OE specific]
+
+Signed-off-by: Naveen Saini 
+---
+ cmake/compiler/gcc/target.cmake |  7 ---
+ cmake/toolchain/yocto/generic.cmake | 13 +
+ cmake/toolchain/yocto/target.cmake  |  1 +
+ 3 files changed, 14 insertions(+), 7 deletions(-)
+ create mode 100644 cmake/toolchain/yocto/generic.cmake
+ create mode 100644 cmake/toolchain/yocto/target.cmake
+
+diff --git a/cmake/compiler/gcc/target.cmake b/cmake/compiler/gcc/target.cmake
+index 014447e67e..b510f47d59 100644
+--- a/cmake/compiler/gcc/target.cmake
 b/cmake/compiler/gcc/target.cmake
+@@ -94,13 +94,6 @@ execute_process(
+   OUTPUT_STRIP_TRAILING_WHITESPACE
+   )
+ 
+-assert_exists(LIBGCC_FILE_NAME)
+-
+-get_filename_component(LIBGCC_DIR ${LIBGCC_FILE_NAME} DIRECTORY)
+-
+-assert_exists(LIBGCC_DIR)
+-
+-LIST(APPEND LIB_INCLUDE_DIR "-L\"${LIBGCC_DIR}\"")
+ LIST(APPEND TOOLCHAIN_LIBS gcc)
+ 
+ # For CMake to be able to test if a compiler flag is supported by the
+diff --git a/cmake/toolchain/yocto/generic.cmake 
b/cmake/toolchain/yocto/generic.cmake
+new file mode 100644
+index 00..45e5777e2a
+--- /dev/null
 b/cmake/toolchain/yocto/generic.cmake
+@@ -0,0 +1,13 @@
++set(COMPILER gcc)
++set(LINKER ld)
++set(BINTOOLS gnu)
++
++set(ZEPHYR_SYSROOT ${ZEPHYR_SYSROOT})
++set(SYSROOT_DIR ${ZEPHYR_SYSROOT})
++set(LIBC_LIBRARY_DIR "\"${SYSROOT_DIR}\"/")
++set(LIBC_INCLUDE_DIR ${SYSROOT_DIR}/include)
++LIST(APPEND TOOLCHAIN_LIBS gcc)
++
++LIST(APPEND LIB_INCLUDE_DIR "-L\"${STAGING_LIBDIR}\"")
++
++set(TOOLCHAIN_LIBS gcc)
+diff --git a/cmake/toolchain/yocto/target.cmake 
b/cmake/toolchain/yocto/target.cmake
+new file mode 100644
+index 00..9881313609
+--- /dev/null
 b/cmake/toolchain/yocto/target.cmake
+@@ -0,0 +1 @@
++# SPDX-License-Identifier: Apache-2.0
+-- 
+2.34.1
+
diff --git 
a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
 
b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
new file mode 100644
index 000..315ed35
--- /dev/null
+++ 
b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
@@ -0,0 +1,80 @@
+From bad26e63d47b638fc1c0b268faf5cee9738efc35 Mon Sep 17 00:00:00 2001
+From: Naveen Saini 
+Date: Thu, 28 Jul 2022 14:15:11 +0800
+Subject: [PATCH] x86: fix efi binary generation issue in cross compilation env
+
+Set root directory for headers.
+
+Upstream-Status: Inappropriate [Cross-compilation specific]
+
+Signed-off-by: Naveen Saini 
+---
+ arch

Re: [yocto] [meta-zephyr][PATCH v2] zephyr-kernel-src: bump the v3 version to v3.1.0

2022-07-28 Thread Naveen Saini


> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Jon Mason
> Sent: Tuesday, July 26, 2022 10:45 PM
> To: Bartosz Golaszewski 
> Cc: Saini, Naveen Kumar ; Eilís Ní
> Fhlannagáin ;
> yocto@lists.yoctoproject.org; openembedded-
> de...@lists.openembedded.org; Bartosz Golaszewski
> 
> Subject: Re: [yocto] [meta-zephyr][PATCH v2] zephyr-kernel-src: bump the
> v3 version to v3.1.0
> 
> On Tue, Jul 26, 2022 at 02:45:10PM +0200, Bartosz Golaszewski wrote:
> > From: Bartosz Golaszewski 
> >
> > This upgrades the 3.x series to using v3.1.0.
> >
> > Signed-off-by: Bartosz Golaszewski 
> > ---
> > - add a rebased version of the toolchain patch for v3.1
> 
> intel-x86-64 machine isn't happy
> It looks like it's not able to find stdint.h
> 
> https://gitlab.com/jonmason00/meta-zephyr/-/jobs/2771910955
> 
> 
> >  ... 0001-2.7-cmake-add-yocto-toolchain.patch} |  0
> > .../0001-3.1-cmake-add-yocto-toolchain.patch  | 63 +++
> > .../zephyr-kernel/zephyr-kernel-src-2.7.2.inc |  7 +-
> > .../zephyr-kernel/zephyr-kernel-src-3.0.0.inc | 70 -
> > .../zephyr-kernel/zephyr-kernel-src-3.1.0.inc | 76 +++
> >  .../zephyr-kernel/zephyr-kernel-src.inc   |  5 +-
> >  6 files changed, 146 insertions(+), 75 deletions(-)  rename
> > meta-zephyr-core/recipes-kernel/zephyr-kernel/files/{0001-cmake-add-
> yo
> > cto-toolchain.patch => 0001-2.7-cmake-add-yocto-toolchain.patch}
> > (100%)  create mode 100644
> > meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-cmake-add
> > -yocto-toolchain.patch  delete mode 100644
> > meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.0.0.
> > inc  create mode 100644
> > meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.1.0.
> > inc
> >
> > diff --git
> > a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-add-
> y
> > octo-toolchain.patch
> > b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-2.7-cmake-a
> > dd-yocto-toolchain.patch
> > similarity index 100%
> > rename from
> > meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-add-
> yoc
> > to-toolchain.patch rename to
> > meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-2.7-cmake-add
> > -yocto-toolchain.patch diff --git
> > a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-cmake-a
> > dd-yocto-toolchain.patch
> > b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-cmake-a
> > dd-yocto-toolchain.patch
> > new file mode 100644
> > index 000..a16eabf
> > --- /dev/null
> > +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-3.1-cma
> > +++ ke-add-yocto-toolchain.patch
> > @@ -0,0 +1,63 @@
> > +From 39f1dd116d00b6c2135c4ccd216341dcd2f2917e Mon Sep 17 00:00:00
> > +2001
> > +From: Naveen Saini 
> > +Date: Tue, 26 Jul 2022 14:12:18 +0200
> > +Subject: [PATCH] cmake: add yocto toolchain
> > +
> > +Upstream status: inappropriate [OE specific]
> > +
> > +Signed-off-by: Naveen Saini 
> > +---
> > + cmake/compiler/gcc/target.cmake |  7 ---
> > + cmake/toolchain/yocto/generic.cmake | 13 +
> > +cmake/toolchain/yocto/target.cmake  |  1 +
> > + 3 files changed, 14 insertions(+), 7 deletions(-)  create mode
> > +100644 cmake/toolchain/yocto/generic.cmake
> > + create mode 100644 cmake/toolchain/yocto/target.cmake
> > +
> > +diff --git a/cmake/compiler/gcc/target.cmake
> > +b/cmake/compiler/gcc/target.cmake index 014447e67e..b510f47d59
> 100644
> > +--- a/cmake/compiler/gcc/target.cmake
> >  b/cmake/compiler/gcc/target.cmake
> > +@@ -94,13 +94,6 @@ execute_process(
> > +   OUTPUT_STRIP_TRAILING_WHITESPACE
> > +   )
> > +
> > +-assert_exists(LIBGCC_FILE_NAME)
> > +-
> > +-get_filename_component(LIBGCC_DIR ${LIBGCC_FILE_NAME}
> DIRECTORY)
> > +-
> > +-assert_exists(LIBGCC_DIR)
> > +-
> > +-LIST(APPEND LIB_INCLUDE_DIR "-L\"${LIBGCC_DIR}\"")  LIST(APPEND
> > +TOOLCHAIN_LIBS gcc)
> > +
> > + # For CMake to be able to test if a compiler flag is supported by
> > +the diff --git a/cmake/toolchain/yocto/generic.cmake
> > +b/cmake/toolchain/yocto/generic.cmake
> > +new file mode 100644
> > +index 00..45e5777e2a
> > +--- /dev/null
> >  b/cmake/toolchain/yocto/generic.cmake
> > +@@ -0,0 +1,13 @@
> > ++set(COMPILER gcc)
> > ++set(LINKER ld)
> > ++set(BINTOOLS gnu)
> > ++
> > ++set(ZEPHYR_SYSROOT ${ZEPH

[yocto] [meta-zephyr][kirkstone][PATCH 2/2] README.txt: update for kirkstone release

2022-06-15 Thread Naveen Saini
Signed-off-by: Naveen Saini 
---
 README.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.txt b/README.txt
index ec860fd..5e0c4b6 100644
--- a/README.txt
+++ b/README.txt
@@ -9,9 +9,9 @@ Prerequisites:
 ==
 
 This layer depends on:
-Yocto distro (master)
+Yocto distro (kirkstone)
 git://git.yoctoproject.org/poky
-Python layer (meta-openembedded/meta-python)
+Python layer (meta-openembedded/meta-python) (kirkstone)
 git://git.openembedded.org/meta-openembedded
 
 Modify local conf by adding:
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57338): https://lists.yoctoproject.org/g/yocto/message/57338
Mute This Topic: https://lists.yoctoproject.org/mt/91791414/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][kirkstone][PATCH 1/2] zephyr-kernel/2.7: update to release tag Zephyr v2.7.2

2022-06-15 Thread Naveen Saini
6dd320f791 release: update v2.7.2 release notes
ecac165d36 logging: shell: fix shell stats null pointer dereference
132d90d1bc tests/bluetooth/tester: Refactor Read UUID callback
58356313ac coredump: adjust mem_region find in gdbstub
99cfd3e4d7 Bluetooth: Controller: Fix per adv scheduling issue
780588bd33 edac: ibecc: Add support for EHL SKU13, SKU14, SKU15
38de9b0156 release: Zephyr 2.7.2
3a21dff459 doc: release: Update release notes with CVE
b98ec9e0db x86: Initialise FPU regs during thread creation for eager FPU sharing
8f2d164674 release: Bump release to 2.7.2-rc1
6b61b219ea doc: Add link to J-Link virtual MSD disable for SMP
8822f85ef9 board: arm64: fvp_baser_aemv8r_smp: Increase CONFIG_MAX_THREAD_BYTES
0bc81c82ab board: arm64: fvp_baser_aemv8r: Update the version requirement
32c49d04b0 cmake: armfvp: Add FVP min version check
02c32316fc arm64: Fix booting issue with FVP V8R >= 11.16.16
9bf571808d net/tcp: Use highest priority for TCP internal work queue
4eec9d95ef test/net: Make sure the tls server socket is accepting before connect
32a593396d tests/net: Put the context down and not only the tcp part in tcp2 
test
066dcd6119 tests/net: Switch k_msleep to k_yield for tcp packet scheduling
ffcc1d3c92 tests/net: TLS test requires more RX PKT and buffers
2d49a4c8b9 net/context: Close TCP connection properly
9d229e0bb5 net/tcp: Stop TCP state machine breaking when sending locally
74c00d0b4e boards: bl654_usb: Fix non-mcuboot builds not limiting size
2a09d5e53f drivers: virt_ivshmem: Allow multiple instances of ivShMem devices.
ad4e9934de samples: subsys: mgmt: smp_svr: Fix dupicate fs mgmt registration
f133449cf5 boards: arm: stm32l562e_dk and nucleo_l552ze_q add openocd support
33318bfb45 doc: css: update code documentation directives style
3497031e3e doc: update requirements
57a1be33ff boards: nucleo_wb55rg: Add stm32cubeprogrammer runner
652eb37b4d scripts/pylib/twister: Add sn option to stm32cubeprogrgammer runner
9e4edaec21 tests/bluetooth/tester: Add support for auto connection establishment
9b18f4a730 net: gptp: Fix type mismatch calculation error in gptp_mi
3f958347c2 test: pm: device: Fix build options
041653662b pm: Remove unused fields in pm_device
6da71d7c2f ARC: nSIM: fix missing core numbers for mdb-hw runner args
52a68bec73 net: tcp: Verify accept callback before use
6324e997e1 net: sockets: Fix userspace accept() verification
e9eed0015f subsys/mgmt/hawkbit: update http response handling
a3e7047ad5 wifi: esp_at: claim net_context in rx
50a24d6782 net: sockets: Retry net_context_sendmsg if EAGAIN is reported
9c3be1212f tests/bluetooth/tester: Enable security validation for GATT 
subsciption
e2c96814ce Bluetooth: Host: Validate security on GATT subscription
3c64ed4e77 drivers: spi_nrfx_spi: Fix compilation error
e78a6ab2cd spi: nrfx_spi*: only run uninit if configured
6bbf1e7e7a Bluetooth: controller: Add missing NULL assign to df_cfg in 
ll_adv_set
063dbecb23 arch/x86: Fix MSI MAP destination
a807fff085 arch/x86: Add a CPUID function to get initial APIC ID
b4b474cb4b arch/x86: Have a dedicated place for CPUID related functions
175ae83c78 tests/bluetooth/tester: Allocate L2CAP channel only when needed
22ab715ad8 test/bluetooth/tester: Don't clear auth requirements on L2CAP server
.

Signed-off-by: Naveen Saini 
---
 ...ephyr-kernel-src-2.7.1.inc => zephyr-kernel-src-2.7.2.inc} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename 
meta-zephyr-core/recipes-kernel/zephyr-kernel/{zephyr-kernel-src-2.7.1.inc => 
zephyr-kernel-src-2.7.2.inc} (97%)

diff --git 
a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc 
b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.2.inc
similarity index 97%
rename from 
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc
rename to 
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.2.inc
index a2c100c..7a4da21 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.2.inc
@@ -14,7 +14,7 @@ SRC_URI += " \
 #  echo SRCREV_$x = \"$rev\"'
 #
 
-SRCREV_default = "e4da3e528088a34a9989f5a50e7ed3149d57de92"
+SRCREV_default = "6dd320f791c4da49190b30f9134f776d85bc5836"
 SRCREV_canopennode = "f167efe85c8c7de886f1bc47f9173cfb8a346bb5"
 SRCREV_civetweb = "094aeb41bb93e9199d24d665ee43e9e05d6d7b1c"
 SRCREV_cmsis = "b0612c97c1401feeb4160add6462c3627fe90fc7"
@@ -60,6 +60,6 @@ SRCREV_TraceRecorder = 
"36c577727642457b0db7274298a4b96558374832"
 SRCREV_tfm = "c74be3890c9d975976fde1b1a3b2f5742bec34c0"
 
 ZEPHYR_BRANCH = "v2.7-branch"
-PV = "2.7.1+git${SRCPV}"
+PV = "2.7.2+git${SRCPV}"
 
 SRC_URI:append = " file://dtc.patch"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57339): https:

[yocto] [meta-zephyr][PATCH] zephyr-kernel/2.7: update to release tag Zephyr v2.7.2

2022-05-30 Thread Naveen Saini
6dd320f791 release: update v2.7.2 release notes
ecac165d36 logging: shell: fix shell stats null pointer dereference
132d90d1bc tests/bluetooth/tester: Refactor Read UUID callback
58356313ac coredump: adjust mem_region find in gdbstub
99cfd3e4d7 Bluetooth: Controller: Fix per adv scheduling issue
780588bd33 edac: ibecc: Add support for EHL SKU13, SKU14, SKU15
38de9b0156 release: Zephyr 2.7.2
3a21dff459 doc: release: Update release notes with CVE
b98ec9e0db x86: Initialise FPU regs during thread creation for eager FPU sharing
8f2d164674 release: Bump release to 2.7.2-rc1
6b61b219ea doc: Add link to J-Link virtual MSD disable for SMP
8822f85ef9 board: arm64: fvp_baser_aemv8r_smp: Increase CONFIG_MAX_THREAD_BYTES
0bc81c82ab board: arm64: fvp_baser_aemv8r: Update the version requirement
32c49d04b0 cmake: armfvp: Add FVP min version check
02c32316fc arm64: Fix booting issue with FVP V8R >= 11.16.16
9bf571808d net/tcp: Use highest priority for TCP internal work queue
4eec9d95ef test/net: Make sure the tls server socket is accepting before connect
32a593396d tests/net: Put the context down and not only the tcp part in tcp2 
test
066dcd6119 tests/net: Switch k_msleep to k_yield for tcp packet scheduling
ffcc1d3c92 tests/net: TLS test requires more RX PKT and buffers
2d49a4c8b9 net/context: Close TCP connection properly
9d229e0bb5 net/tcp: Stop TCP state machine breaking when sending locally
74c00d0b4e boards: bl654_usb: Fix non-mcuboot builds not limiting size
2a09d5e53f drivers: virt_ivshmem: Allow multiple instances of ivShMem devices.
ad4e9934de samples: subsys: mgmt: smp_svr: Fix dupicate fs mgmt registration
f133449cf5 boards: arm: stm32l562e_dk and nucleo_l552ze_q add openocd support
33318bfb45 doc: css: update code documentation directives style
3497031e3e doc: update requirements
57a1be33ff boards: nucleo_wb55rg: Add stm32cubeprogrammer runner
652eb37b4d scripts/pylib/twister: Add sn option to stm32cubeprogrgammer runner
9e4edaec21 tests/bluetooth/tester: Add support for auto connection establishment
9b18f4a730 net: gptp: Fix type mismatch calculation error in gptp_mi
3f958347c2 test: pm: device: Fix build options
041653662b pm: Remove unused fields in pm_device
6da71d7c2f ARC: nSIM: fix missing core numbers for mdb-hw runner args
52a68bec73 net: tcp: Verify accept callback before use
6324e997e1 net: sockets: Fix userspace accept() verification
e9eed0015f subsys/mgmt/hawkbit: update http response handling
a3e7047ad5 wifi: esp_at: claim net_context in rx
50a24d6782 net: sockets: Retry net_context_sendmsg if EAGAIN is reported
9c3be1212f tests/bluetooth/tester: Enable security validation for GATT 
subsciption
e2c96814ce Bluetooth: Host: Validate security on GATT subscription
3c64ed4e77 drivers: spi_nrfx_spi: Fix compilation error
e78a6ab2cd spi: nrfx_spi*: only run uninit if configured
6bbf1e7e7a Bluetooth: controller: Add missing NULL assign to df_cfg in 
ll_adv_set
063dbecb23 arch/x86: Fix MSI MAP destination
a807fff085 arch/x86: Add a CPUID function to get initial APIC ID
b4b474cb4b arch/x86: Have a dedicated place for CPUID related functions
175ae83c78 tests/bluetooth/tester: Allocate L2CAP channel only when needed
22ab715ad8 test/bluetooth/tester: Don't clear auth requirements on L2CAP server
.

Signed-off-by: Naveen Saini 
---
 ...ephyr-kernel-src-2.7.1.inc => zephyr-kernel-src-2.7.2.inc} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename 
meta-zephyr-core/recipes-kernel/zephyr-kernel/{zephyr-kernel-src-2.7.1.inc => 
zephyr-kernel-src-2.7.2.inc} (97%)

diff --git 
a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc 
b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.2.inc
similarity index 97%
rename from 
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc
rename to 
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.2.inc
index a2c100c..7a4da21 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.1.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.2.inc
@@ -14,7 +14,7 @@ SRC_URI += " \
 #  echo SRCREV_$x = \"$rev\"'
 #
 
-SRCREV_default = "e4da3e528088a34a9989f5a50e7ed3149d57de92"
+SRCREV_default = "6dd320f791c4da49190b30f9134f776d85bc5836"
 SRCREV_canopennode = "f167efe85c8c7de886f1bc47f9173cfb8a346bb5"
 SRCREV_civetweb = "094aeb41bb93e9199d24d665ee43e9e05d6d7b1c"
 SRCREV_cmsis = "b0612c97c1401feeb4160add6462c3627fe90fc7"
@@ -60,6 +60,6 @@ SRCREV_TraceRecorder = 
"36c577727642457b0db7274298a4b96558374832"
 SRCREV_tfm = "c74be3890c9d975976fde1b1a3b2f5742bec34c0"
 
 ZEPHYR_BRANCH = "v2.7-branch"
-PV = "2.7.1+git${SRCPV}"
+PV = "2.7.2+git${SRCPV}"
 
 SRC_URI:append = " file://dtc.patch"
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57209): https:

Re: [yocto] [meta-zephyr][PATCH 02/10] python3-gitlint: remove, unused

2022-05-17 Thread Naveen Saini
Hi Eilís Ní Fhlannagáin,

All these Python recipes can be moved to meta-python if needed !

Regards,
Naveen

> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Ross Burton
> Sent: Friday, May 13, 2022 7:25 PM
> To: yocto@lists.yoctoproject.org
> Cc: elizabeth.flana...@huawei.com
> Subject: [yocto] [meta-zephyr][PATCH 02/10] python3-gitlint: remove,
> unused
> 
> This recipe was added to meta-zephyr in de73bdba but nothing uses it.
> 
> Signed-off-by: Ross Burton 
> ---
>  .../python/python3-gitlint_0.15.1.bb   | 14 --
>  1 file changed, 14 deletions(-)
>  delete mode 100644 meta-zephyr-core/recipes-devtools/python/python3-
> gitlint_0.15.1.bb
> 
> diff --git a/meta-zephyr-core/recipes-devtools/python/python3-
> gitlint_0.15.1.bb b/meta-zephyr-core/recipes-devtools/python/python3-
> gitlint_0.15.1.bb
> deleted file mode 100644
> index 143e2cb..000
> --- a/meta-zephyr-core/recipes-devtools/python/python3-gitlint_0.15.1.bb
> +++ /dev/null
> @@ -1,14 +0,0 @@
> -# SPDX-FileCopyrightText: Huawei Inc.
> -# SPDX-License-Identifier: Apache-2.0
> -
> -SUMMARY = "Python gitlint"
> -HOMEPAGE = "https://pypi.org/project/gitlint;
> -LICENSE = "MIT"
> -LIC_FILES_CHKSUM =
> "file://LICENSE;md5=2ddf75221dde30f107af8595a43b4009"
> -
> -inherit pypi setuptools3
> -
> -PYPI_PACKAGE = "gitlint"
> -SRC_URI[md5sum] = "4835bedc50129934a47cf099d906d2ca"
> -SRC_URI[sha256sum] =
> "4b22916dcbdca381244aee6cb8d8743756cfd98f27e7d1f02e78733f07c3c21c"
> -BBCLASSEXTEND = "native nativesdk"
> --
> 2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#57125): https://lists.yoctoproject.org/g/yocto/message/57125
Mute This Topic: https://lists.yoctoproject.org/mt/91078254/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][PATCH] zephyr-kernel-src: add whitespace to fix File not found during build

2022-04-04 Thread Naveen Saini


> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Davide Gardenal
> Sent: Monday, April 4, 2022 9:17 PM
> To: yocto@lists.yoctoproject.org
> Cc: Davide Gardenal 
> Subject: [yocto] [meta-zephyr][PATCH] zephyr-kernel-src: add whitespace to
> fix File not found during build
> 
> Signed-off-by: Davide Gardenal 
> ---
>  .../recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.0.0.inc| 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-
> src-3.0.0.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-
> kernel-src-3.0.0.inc
> index f4ea7d3..61a5076 100644
> --- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-
> 3.0.0.inc
> +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-
> 3.0.0.inc
> @@ -69,4 +69,4 @@ SRCREV_zscilib =
> "12bfe3f0a9fcbfe3edab7eabc9678b6c62875d34"
>  ZEPHYR_BRANCH = "v3.0-branch"
>  PV = "3.0.0+git${SRCPV}"
> 
> -SRC_URI += "file://0001-lvgl-add-support-for-lvgl-v8.2.0.patch"
> +SRC_URI += "file://0001-lvgl-add-support-for-lvgl-v8.2.0.patch "

[Naveen] It does not apply. Did you send any patch previously, which I missed ?

https://git.yoctoproject.org/meta-zephyr/tree/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-kernel-src-3.0.0.inc#n70

> --
> 2.32.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#56664): https://lists.yoctoproject.org/g/yocto/message/56664
Mute This Topic: https://lists.yoctoproject.org/mt/90241245/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] meta-zephyr-core: drop obsolete patches

2022-03-22 Thread Naveen Saini
These patches are not being applied and not required any more.

Already part of zephyr 2.7.1 and zephyr 3.0.0

Signed-off-by: Naveen Saini 
---
 ...0001-cmake-added-missing-file-ext-to.patch | 42 
 ...rduino-nano-33-ble-storage-partition.patch | 49 ---
 2 files changed, 91 deletions(-)
 delete mode 100644 
meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-added-missing-file-ext-to.patch
 delete mode 100644 
meta-zephyr-core/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch

diff --git 
a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-added-missing-file-ext-to.patch
 
b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-added-missing-file-ext-to.patch
deleted file mode 100644
index 6aeca14..000
--- 
a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/0001-cmake-added-missing-file-ext-to.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-From 783c1f78c8e39751fe89d0883c8bce7336f55e94 Mon Sep 17 00:00:00 2001
-From: Torsten Rasmussen 
-Date: Thu, 19 Aug 2021 08:53:00 +0200
-Subject: [PATCH] cmake: added missing file ext to
- lv_font_dejavu_16_persian_hebrew.c
-
-CMake >= 3.20 requires file extensions explicitly added to source files.
-
-See CMP0115:
-> Starting in CMake 3.20, CMake prefers all source files to have their
-> extensions explicitly listed:
-
-In the CMakeLists.txt, the file lv_font_dejavu_16_persian_hebrew.c
-was added without its .c extension, causing never CMakes ti fail
-discovering the file.
-
-This has been fixed by correctly add the file as:
-lv_font_dejavu_16_persian_hebrew.c
-
-Signed-off-by: Torsten Rasmussen 

-Upstream-status: Accepted
-
- CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 57b07c84..0f433edc 100644
 a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -58,7 +58,7 @@ zephyr_library_sources(
- src/lv_misc/lv_utils.c
- 
- src/lv_font/lv_font.c
--src/lv_font/lv_font_dejavu_16_persian_hebrew
-+src/lv_font/lv_font_dejavu_16_persian_hebrew.c
- src/lv_font/lv_font_fmt_txt.c
- src/lv_font/lv_font_loader.c
- src/lv_font/lv_font_montserrat_12.c
--- 
-Gitee
-
diff --git 
a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch
 
b/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch
deleted file mode 100644
index 4568a41..000
--- 
a/meta-zephyr-core/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-partition.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-commit 6c9945aafa00c09149e2052a9c2bccad16dd1d8a
-Author: Stefan Schmidt 
-Date:   Fri May 7 11:47:44 2021 +0200
-
-boards/arduino_nano_33_ble: add storage partition at end of flash
-
-Change default partition table to allow for application which need
-storage. One use case is running the OpenThread integration which has
-a dependency on this.
-
-Upstream-Status: Backported 
[https://github.com/zephyrproject-rtos/zephyr/commit/6c9945aafa00c09149e2052a9c2bccad16dd1d8a]
-
-Signed-off-by: Stefan Schmidt 
-Signed-off-by: Naveen Saini 
-
-diff --git a/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts 
b/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
-index d09b66ec43..d11d800eb5 100644
 a/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
-+++ b/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
-@@ -44,15 +44,27 @@
- 
-   boot_partition: partition@0 {
-   label = "sam-ba";
--  reg = <0x0 0x1>;
-+  reg = <0x 0x0001>;
-   read-only;
-   };
- 
-   code_partition: partition@1 {
-   label = "code";
--  reg = <0x1 0xf>;
-+  reg = <0x0001 0x000e8000>;
-   read-only;
-   };
-+
-+  /*
-+   * The flash starting at 0x000f8000 and ending at
-+   * 0x000f is reserved for use by the application.
-+   *
-+   * Storage partition will be used by FCB/LittleFS/NVS
-+   * if enabled.
-+   */
-+  storage_partition: partition@f8000 {
-+  label = "storage";
-+  reg = <0x000f8000 0x8000>;
-+  };
-   };
- };
- 
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#56523): https://lists.yoctoproject.org/g/yocto/message/56523
Mute This Topic: https://lists.yoctoproject.org/mt/89948090/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [linux-yocto] [kernel-cache][yocto-5.15][PATCH] cfg: fix x86_64 defconfig warnings

2022-01-24 Thread Naveen Saini
Hi Bruce,

I am running Ross's oe-selftest that using defconfig.
https://lists.openembedded.org/g/openembedded-core/message/160401

 $ oe-selftest --run-tests kerneldevelopment.KernelConfigs

Regards,
Naveen

> -Original Message-
> From: Bruce Ashfield 
> Sent: Tuesday, January 25, 2022 10:23 AM
> To: Saini, Naveen Kumar 
> Cc: linux-yocto@lists.yoctoproject.org
> Subject: Re: [linux-yocto] [kernel-cache][yocto-5.15][PATCH] cfg: fix x86_64
> defconfig warnings
> 
> Can you send me the configuration that created the warning ? It must have
> been in a allnoconfig mode, since the default of the menuconfig BLK_DEV is
> "y".
> 
> So looking at the x86_defconfig, while it doesn't have BLK_DEV enabled, it
> also doesn't have it explicitly disabled .. and hence BLK_DEV should have
> been on, and CONFIG_BLK_DEV_FD gone through to the final config.
> 
> The patch is fine, and it isn't a bad thing to have the dependency explicitly 
> in
> the fragment, I just want to understand the flow of fragments and the
> kconfig mode at play.
> 
> Bruce
> 
> In message: [linux-yocto] [kernel-cache][yocto-5.15][PATCH] cfg: fix x86_64
> defconfig warnings on 21/01/2022 Naveen Saini wrote:
> 
> > CONFIG_BLK_DEV_FD has dependeny on BLK_DEV, which is not enabled,
> as
> > result throws warning.
> >     [NOTE]: 'CONFIG_BLK_DEV_FD' last val (m) and .config val (n) do
> > not match
> >
> > Signed-off-by: Naveen Saini 
> > ---
> >  bsp/common-pc/common-pc-drivers.cfg | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/bsp/common-pc/common-pc-drivers.cfg
> > b/bsp/common-pc/common-pc-drivers.cfg
> > index 7cb88817..e511c944 100644
> > --- a/bsp/common-pc/common-pc-drivers.cfg
> > +++ b/bsp/common-pc/common-pc-drivers.cfg
> > @@ -55,6 +55,7 @@ CONFIG_I2C_I801=y
> >  CONFIG_SATA_AHCI=y
> >
> >  CONFIG_BLK_DEV_FD=m
> > +CONFIG_BLK_DEV=y
> >
> >  CONFIG_EEPROM_AT24=m
> >
> > --
> > 2.17.1
> >
> 
> >
> > 
> >


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10865): 
https://lists.yoctoproject.org/g/linux-yocto/message/10865
Mute This Topic: https://lists.yoctoproject.org/mt/88579397/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto] [kernel-cache][yocto-5.15][PATCH] cfg: fix x86_64 defconfig warnings

2022-01-21 Thread Naveen Saini
CONFIG_BLK_DEV_FD has dependeny on BLK_DEV, which is not enabled, as result
throws warning.
[NOTE]: 'CONFIG_BLK_DEV_FD' last val (m) and .config val (n) do not match

Signed-off-by: Naveen Saini 
---
 bsp/common-pc/common-pc-drivers.cfg | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsp/common-pc/common-pc-drivers.cfg 
b/bsp/common-pc/common-pc-drivers.cfg
index 7cb88817..e511c944 100644
--- a/bsp/common-pc/common-pc-drivers.cfg
+++ b/bsp/common-pc/common-pc-drivers.cfg
@@ -55,6 +55,7 @@ CONFIG_I2C_I801=y
 CONFIG_SATA_AHCI=y
 
 CONFIG_BLK_DEV_FD=m
+CONFIG_BLK_DEV=y
 
 CONFIG_EEPROM_AT24=m
 
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10853): 
https://lists.yoctoproject.org/g/linux-yocto/message/10853
Mute This Topic: https://lists.yoctoproject.org/mt/88579397/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto] [v5.15/standard/base][PATCH] x86_64_defconfig: Fix warnings

2022-01-21 Thread Naveen Saini
Configure CONFIG_EEEPC_LAPTOP & CONFIG_SND_SEQ_DUMMY as modules, because
dependencies are configured as modules.
[NOTE]: 'CONFIG_EEEPC_LAPTOP' last val (y) and .config val (m) do not match
[NOTE]: 'CONFIG_SND_SEQ_DUMMY' last val (y) and .config val (m) do not match

Added dependency configurations:
 CONFIG_HID_LOGITECH for CONFIG_LOGITECH_FF
 CONFIG_NET_VENDOR_DEC for CONFIG_NET_TULIP
 CONFIG_IOMMU_SUPPORT for CONFIG_AMD_IOOMU & CONFIG_INTEL_IOMMU
 CONFIG_NET_VENDOR_NVIDIA for CONFIG_FORCEDETH

Config 'LOGITECH_FF' has the following Direct dependencies 
(LOGITECH_FF=n):
HID_LOGITECH(=n) && HID(=y) && INPUT(=y)
Parent dependencies are:
 HID_LOGITECH [n] HID [y] INPUT [y]
[INFO]: config 'CONFIG_LOGITECH_FF' was set, but it wasn't assignable, 
check (parent) dependencies

Config 'NET_TULIP' has the following Direct dependencies (NET_TULIP=n):
PCI(=y) || EISA(=n) || CARDBUS(=y) (=y) && NET_VENDOR_DEC(=n) 
&& ETHERNET(=y) && NETDEVICES(=y)
Parent dependencies are:
 NET_VENDOR_DEC [n] ETHERNET [y] EISA [n] PCI [y] CARDBUS [y] 
NETDEVICES [y]
[INFO]: config 'CONFIG_NET_TULIP' was set, but it wasn't assignable, check 
(parent) dependencies

Config 'FORCEDETH' has the following Direct dependencies (FORCEDETH=n):
PCI(=y) && NET_VENDOR_NVIDIA(=n) && ETHERNET(=y) && 
NETDEVICES(=y)
Parent dependencies are:
 NETDEVICES [y] PCI [y] NET_VENDOR_NVIDIA [n] ETHERNET [y]
[INFO]: config 'CONFIG_FORCEDETH' was set, but it wasn't assignable, check 
(parent) dependencies

Tested with qemux86-64 machine:
$ oe-selftest --run-tests kerneldevelopment.KernelConfigs

Disabled debug configurations. Yocto-kernel-cahce have seperate debug 
configurations.

Signed-off-by: Naveen Saini 
---
 arch/x86/configs/x86_64_defconfig | 12 
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/arch/x86/configs/x86_64_defconfig 
b/arch/x86/configs/x86_64_defconfig
index e8a7a0af2bda..fef36a0d6961 100644
--- a/arch/x86/configs/x86_64_defconfig
+++ b/arch/x86/configs/x86_64_defconfig
@@ -115,7 +115,7 @@ CONFIG_PCCARD=y
 CONFIG_YENTA=y
 CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
-CONFIG_DEBUG_DEVRES=y
+# CONFIG_DEBUG_DEVRES is not set
 CONFIG_CONNECTOR=y
 CONFIG_BLK_DEV_LOOP=y
 CONFIG_BLK_DEV_SD=y
@@ -141,11 +141,13 @@ CONFIG_NETDEVICES=y
 CONFIG_NETCONSOLE=y
 CONFIG_TIGON3=y
 CONFIG_NET_TULIP=y
+CONFIG_NET_VENDOR_DEC=y
 CONFIG_E100=y
 CONFIG_E1000=y
 CONFIG_E1000E=y
 CONFIG_SKY2=y
 CONFIG_FORCEDETH=y
+CONFIG_NET_VENDOR_NVIDIA=y
 CONFIG_8139TOO=y
 CONFIG_R8169=y
 CONFIG_INPUT_EVDEV=y
@@ -186,12 +188,13 @@ CONFIG_SOUND=y
 CONFIG_SND=y
 CONFIG_SND_HRTIMER=y
 CONFIG_SND_SEQUENCER=y
-CONFIG_SND_SEQ_DUMMY=y
+CONFIG_SND_SEQ_DUMMY=m
 CONFIG_SND_HDA_INTEL=y
 CONFIG_SND_HDA_HWDEP=y
 CONFIG_HIDRAW=y
 CONFIG_HID_GYRATION=y
 CONFIG_LOGITECH_FF=y
+CONFIG_HID_LOGITECH=y
 CONFIG_HID_NTRIG=y
 CONFIG_HID_PANTHERLORD=y
 CONFIG_PANTHERLORD_FF=y
@@ -214,9 +217,10 @@ CONFIG_USB_STORAGE=y
 CONFIG_RTC_CLASS=y
 # CONFIG_RTC_HCTOSYS is not set
 CONFIG_DMADEVICES=y
-CONFIG_EEEPC_LAPTOP=y
+CONFIG_EEEPC_LAPTOP=m
 CONFIG_AMD_IOMMU=y
 CONFIG_INTEL_IOMMU=y
+CONFIG_IOMMU_SUPPORT=y
 # CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
 CONFIG_EXT4_FS=y
 CONFIG_EXT4_FS_POSIX_ACL=y
@@ -257,4 +261,4 @@ CONFIG_SCHEDSTATS=y
 CONFIG_BLK_DEV_IO_TRACE=y
 CONFIG_PROVIDE_OHCI1394_DMA_INIT=y
 CONFIG_EARLY_PRINTK_DBGP=y
-CONFIG_DEBUG_BOOT_PARAMS=y
+# CONFIG_DEBUG_BOOT_PARAMS is not set
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#10852): 
https://lists.yoctoproject.org/g/linux-yocto/message/10852
Mute This Topic: https://lists.yoctoproject.org/mt/88579395/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][RFC][PATCH 0/6] Additional machines and removal of MACHINEOVERRIDES.

2022-01-10 Thread Naveen Saini
Thank you Eilís Ní Fhlannagáin.

I faced failures, when I tried to build few recipes:

(1)  'zephyr-lvgl' with 'nrf52840dk-nrf52840' machine.

Error log:
abi/zephyr-lvgl/2.7.1+gitAUTOINC+e4da3e5280_b0612c97c1-r0/recipe-sysroot-native/etc/quiltrc
 push', 0, 'stdout: Applying patch 0001-cmake-added-missing-file-ext-to.patch
patching file CMakeLists.txt
Hunk #1 FAILED at 58.
1 out of 1 hunk FAILED -- rejects in file CMakeLists.txt
Patch 0001-cmake-added-missing-file-ext-to.patch can be reverse-applied

(2) 'zephyr-http-client' with '96b-nitrogen' machine:
| Merged configuration 
'/home/saininav/work/development/zephyr-workspace/poky/build-zephyr/tmp-newlib/work/armv7m-yocto-eabi/zephyr-http-client/2.7.1+gitAUTOINC+e4da3e5280_b0612c97c1-r0/git/samples/net/sockets/http_client/prj.conf'
|
| error: Aborting due to Kconfig warnings
|
| CMake Error at 
/home/saininav/work/development/zephyr-workspace/poky/build-zephyr/tmp-newlib/work/armv7m-yocto-eabi/zephyr-http-client/2.7.1+gitAUTOINC+e4da3e5280_b0612c97c1-r0/git/cmake/kconfig.cmake:269
 (message):
|   command failed with return code: 1
| Call Stack (most recent call first):

Please find more  comments inline..

> -Original Message-
> From: Eilís Ní Fhlannagáin 
> Sent: Friday, January 7, 2022 10:10 PM
> To: pi...@pidge.org; yocto@lists.yoctoproject.org
> Cc: Saini, Naveen Kumar ; Eilís Ní
> Fhlannagáin 
> Subject: [meta-zephyr][RFC][PATCH 0/6] Additional machines and removal of
> MACHINEOVERRIDES.
> 
> From: Eilís Ní Fhlannagáin 
> 
> This set of patches relates to what I discussed at
> https://lists.yoctoproject.org/g/yocto/message/55285.
> 
> Four major issues (and one minor issue)are dealt with in this series. The 
> first
> is a logical split of the
> meta-zephyr layer into a machine BSP layer and a functional core layer.
> 
> The second is the removal for the need of MACHINEOVERRIDES as a method
> of telling zephyr it's'-DZEPHYR_MODULES. Zephyr
> already knows this, so by abusing west list a bit, we can pull that 
> information
> out and generate the needed config
> line to be passed into cmake. Out of tree ZEPHYR_MODULES should be
> added via ZEPHYR_EXTRA_MODULES.
> 
> The third major issue is as we're now relying on west to know what modules
> Zephyr needs, we need to checkout the
> complete Zephyr source.
> 
> The last major issue is that Zephyr knows it's own machine config and I would
> like us to support as many of the Zephyr
> machines as possible. As I've yet to find a way to do this at build time, 
> with a
> little abuse of cmake exports we can
> generate machine configurations based on what is in Zephyr itself. These
> have obviously not all been tested
> 
> In essence, this patch gives us 382 additional machines to add to the 9 that
> already existed. Testing for these new
> boards is still being worked out.

[Naveen] Thanks for working on testing part too. It would be challenge to test 
all (~382) machine configurations !

> 
> Lastly there was a minor issue with the 2.6.1 kernel in that the dtc patch 
> Ross
> created for 2.7.0 (moved to 2.7.1) wasn't
> applied which causes 2.6.1 to fail with the same error
> 
> Eilís Ní Fhlannagáin (6):
>   meta-zephyr-core/bsp: Restructure into sublayers
>   west: Add west and python dependencies
>   zephyr.bbclass: Remove need for MACHINEOVERRIDES for
> ZEPHYR_MODULES
>   zephyr-kernel-src: Add complete zephyr source
>   zephyr-kernel-src-2.6.1: Add dtc patch.
>   meta-zephyr-bsp: Add autogenerated machines.
> 
>  README.txt|   2 +-
>  {conf => meta-zephyr-bsp/conf}/layer.conf |  12 +-
>  .../conf/machine/96b-aerocore2.conf   |  22 ++
>  .../conf/machine/96b-argonkey.conf|  22 ++
>  .../conf}/machine/96b-avenger96.conf  |   0
>  .../conf/machine/96b-carbon-nrf51.conf|  22 ++
>  meta-zephyr-bsp/conf/machine/96b-carbon.conf  |  22 ++
>  .../conf/machine/96b-meerkat96.conf   |  22 ++
>  meta-zephyr-bsp/conf/machine/96b-neonkey.conf |  22 ++
>  .../conf}/machine/96b-nitrogen.conf   |   0
>  .../conf/machine/96b-stm32-sensor-mez.conf|  22 ++
>  meta-zephyr-bsp/conf/machine/96b-wistrio.conf |  22 ++
>  .../conf/machine/acrn-ehl-crb.conf|  22 ++
>  meta-zephyr-bsp/conf/machine/acrn.conf|  22 ++
>  .../conf/machine/actinius-icarus-bee-ns.conf  |  22 ++
>  .../conf/machine/actinius-icarus-bee.conf |  22 ++
>  .../conf/machine/actinius-icarus-ns.conf  |  22 ++
>  .../conf/machine/actinius-icarus-som-ns.conf  |  22 ++
>  .../conf/machine/actinius-icarus-som.conf |  22 ++
>  .../conf/machine/actinius-icarus.conf |  22 ++
>  .../adafruit-feather-m0-basic-proto.conf  |  22 ++
>  .../machine/adafruit-feather-nrf52840.conf|  22 ++
>  .../machine/adafruit-feather-stm32f405.conf   |  22 ++
>  .../adafruit-itsybitsy-m4-express.conf|  22 ++
>  .../conf/machine/adafruit-trinket-m0.conf |  22 ++
>  .../conf/machine/adp-xc7k-ae350.conf  |  22 ++
>  

Re: [yocto] [meta-zephyr][PATCH v2 4/4] zephyr-lvgl: new recipe

2021-11-10 Thread Naveen Saini


> -Original Message-
> From: yocto@lists.yoctoproject.org  On Behalf
> Of Bartosz Golaszewski
> Sent: Tuesday, November 9, 2021 10:43 PM
> To: yocto@lists.yoctoproject.org
> Cc: Bartosz Golaszewski ; Eilís Ní
> Fhlannagáin 
> Subject: [yocto] [meta-zephyr][PATCH v2 4/4] zephyr-lvgl: new recipe
> 
> From: Bartosz Golaszewski 
> 
> This adds a recipe for building the lvgl sample from mainline zephyr source.
> We need to include one upstream patch that fixes a build problem with lvgl
> and pull in two other modules or otherwise the default config will fail to
> build. Currently only the nordic reference devkit for
> nrf52840 is supported.
> 
> Big thanks to Eilís Ní Fhlannagáin  for
> helping me with that.
> 
> Signed-off-by: Bartosz Golaszewski 
> Signed-off-by: Eilís Ní Fhlannagáin 
> ---
>  ...0001-cmake-added-missing-file-ext-to.patch | 42 +++
>  .../zephyr-kernel/zephyr-kernel-common.inc|  1 +
>  .../zephyr-kernel/zephyr-kernel-src-2.6.1.inc |  3 ++  .../zephyr-
> kernel/zephyr-kernel-src-2.7.0.inc |  3 ++
>  .../zephyr-kernel/zephyr-kernel-src.inc   |  3 ++
>  recipes-kernel/zephyr-kernel/zephyr-lvgl.bb   | 11 +
>  6 files changed, 63 insertions(+)
>  create mode 100644 recipes-kernel/zephyr-kernel/files/0001-cmake-added-
> missing-file-ext-to.patch
>  create mode 100644 recipes-kernel/zephyr-kernel/zephyr-lvgl.bb
> 
> diff --git a/recipes-kernel/zephyr-kernel/files/0001-cmake-added-missing-
> file-ext-to.patch b/recipes-kernel/zephyr-kernel/files/0001-cmake-added-
> missing-file-ext-to.patch
> new file mode 100644
> index 000..6aeca14
> --- /dev/null
> +++ b/recipes-kernel/zephyr-kernel/files/0001-cmake-added-missing-file-e
> +++ xt-to.patch
> @@ -0,0 +1,42 @@
> +From 783c1f78c8e39751fe89d0883c8bce7336f55e94 Mon Sep 17 00:00:00
> 2001
> +From: Torsten Rasmussen 
> +Date: Thu, 19 Aug 2021 08:53:00 +0200
> +Subject: [PATCH] cmake: added missing file ext to
> +lv_font_dejavu_16_persian_hebrew.c
> +
> +CMake >= 3.20 requires file extensions explicitly added to source files.
> +
> +See CMP0115:
> +> Starting in CMake 3.20, CMake prefers all source files to have their
> +> extensions explicitly listed:
> +
> +In the CMakeLists.txt, the file lv_font_dejavu_16_persian_hebrew.c
> +was added without its .c extension, causing never CMakes ti fail
> +discovering the file.
> +
> +This has been fixed by correctly add the file as:
> +lv_font_dejavu_16_persian_hebrew.c
> +
> +Signed-off-by: Torsten Rasmussen 
> +---
> +Upstream-status: Accepted
> +
> + CMakeLists.txt | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/CMakeLists.txt b/CMakeLists.txt index 57b07c84..0f433edc
> +100644
> +--- a/CMakeLists.txt
>  b/CMakeLists.txt
> +@@ -58,7 +58,7 @@ zephyr_library_sources(
> + src/lv_misc/lv_utils.c
> +
> + src/lv_font/lv_font.c
> +-src/lv_font/lv_font_dejavu_16_persian_hebrew
> ++src/lv_font/lv_font_dejavu_16_persian_hebrew.c
> + src/lv_font/lv_font_fmt_txt.c
> + src/lv_font/lv_font_loader.c
> + src/lv_font/lv_font_montserrat_12.c
> +--
> +Gitee
> +
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> index 5ae7504..04eb72b 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> @@ -31,6 +31,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:zsegger = "\;${S}/modules/debug/segger"

[Naveen] zsegger is not defined as override, it causing build failure. If 
module is required only for lvgl sample, it can move into sample recipe !
| 
build/tmp-newlib/work/armv7m-yocto-eabi/zephyr-lvgl/2.7.0+gitAUTOINC+3f826560aa_b0612c97c1-r0/git/subsys/logging/log_backend_rtt.c:12:10:
 fatal error: SEGGER_RTT.h: No such file or directory
|12 | #include 
|   |  ^~
| compilation terminated.

It can be checked with $ bitbake zephyr-lvgl -e | grep ^ZEPHYR_MODULES=


> 
>  EXTRA_OECMAKE:append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}"
> 
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc
> b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc
> index 9f28df7..a7289f1 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc
> @@ -2,12 +2,15 @@ SRCREV_FORMAT = "default_cmsis"
>  SRCREV_cmsis = "c3bd2094f92d574377f7af2aec147ae181aa5f8e"
>  SRCREV_default = "2d6322d74aaac838ead46bfcba0db619cff4b534"
>  SRCREV_libmetal = "39d049d4ae68e6f6d595fce7de1dcfc1024fb4eb"
> +SRCREV_lvgl = "31acbaa36e9e74ab88ac81e3d21e7f1d00a71136"
>  SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
>  SRCREV_nordic = 

Re: [yocto] [meta-zephyr][PATCH 0/4] zephyr-lvgl: make it possible to build the zephyr lvgl sample

2021-11-08 Thread Naveen Saini
Could you please rebase this series with latest !

Regards,
Naveen

> -Original Message-
> From: yocto@lists.yoctoproject.org  On Behalf
> Of Bartosz Golaszewski
> Sent: Monday, November 8, 2021 11:44 PM
> To: yocto@lists.yoctoproject.org
> Cc: Bartosz Golaszewski 
> Subject: [yocto] [meta-zephyr][PATCH 0/4] zephyr-lvgl: make it possible to
> build the zephyr lvgl sample
> 
> This series adds a recipe for the lvgl sample from zephyr. Due to how meta-
> zephyr works we need to pull in some additional modules for the build to
> succeed.
> 
> The first three patches are just coding style improvements, the last patch
> adds the recipe.
> 
> Bartosz Golaszewski (4):
>   zephyr-kernel-src: order the SRCREV assignments alphabetically
>   zephyr-kernel-src: use the preferred coding style for multi-line
> assignments
>   zephyr-kernel-src: order git repos alphabetically
>   zephyr-lvgl: new recipe
> 
>  ...0001-cmake-added-missing-file-ext-to.patch | 42 +++
>  .../zephyr-kernel/zephyr-kernel-common.inc|  1 +
>  .../zephyr-kernel/zephyr-kernel-src-2.6.1.inc | 20 +  .../zephyr-
> kernel/zephyr-kernel-src-2.7.0.inc | 18 
>  .../zephyr-kernel/zephyr-kernel-src.inc   |  5 ++-
>  recipes-kernel/zephyr-kernel/zephyr-lvgl.bb   | 11 +
>  6 files changed, 81 insertions(+), 16 deletions(-)  create mode 100644
> recipes-kernel/zephyr-kernel/files/0001-cmake-added-missing-file-ext-
> to.patch
>  create mode 100644 recipes-kernel/zephyr-kernel/zephyr-lvgl.bb
> 
> --
> 2.30.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55284): https://lists.yoctoproject.org/g/yocto/message/55284
Mute This Topic: https://lists.yoctoproject.org/mt/86908361/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] README.txt: update for honister release

2021-11-02 Thread Naveen Saini
Signed-off-by: Naveen Saini 
---
 README.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.txt b/README.txt
index 5a0ccc7..9889b01 100644
--- a/README.txt
+++ b/README.txt
@@ -9,9 +9,9 @@ Prerequisites:
 ==
 
 This layer depends on:
-Yocto distro (master)
+Yocto distro (honister)
 git://git.yoctoproject.org/poky
-Python layer (meta-openembedded/meta-python)
+Python layer (meta-openembedded/meta-python) (honister)
 git://git.openembedded.org/meta-openembedded
 
 Modify local conf by adding:
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55209): https://lists.yoctoproject.org/g/yocto/message/55209
Mute This Topic: https://lists.yoctoproject.org/mt/86761427/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 2/2] zephyr-kernel-src: set default preferred version to 2.7.0

2021-10-20 Thread Naveen Saini
Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index 458ff1e..3a2250d 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -22,5 +22,5 @@ SRC_URI = "\
 S = "${WORKDIR}/git"
 
 # Default to a stable version
-PREFERRED_VERSION_zephyr-kernel ??= "2.6.1"
+PREFERRED_VERSION_zephyr-kernel ??= "2.7.0"
 include zephyr-kernel-src-${PREFERRED_VERSION_zephyr-kernel}.inc
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55112): https://lists.yoctoproject.org/g/yocto/message/55112
Mute This Topic: https://lists.yoctoproject.org/mt/86483653/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 1/2] zephyr-kernel/2.7.0: update to release tag Zephyr v2.7.0

2021-10-20 Thread Naveen Saini
https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.7.0

Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.0.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.0.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.0.inc
index e3424d2..a1619a7 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.0.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.0.inc
@@ -1,5 +1,5 @@
 SRCREV_FORMAT = "default_cmsis"
-SRCREV_default = "8a97c83040c0257d98c329dde55ae10e68544688"
+SRCREV_default = "3f826560aaf81a444018293bd6acce3c339fe150"
 SRCREV_cmsis = "b0612c97c1401feeb4160add6462c3627fe90fc7"
 SRCREV_nordic = "a6e5299041f152da5ae0ab17b2e44e088bb96d6d"
 SRCREV_stm32 = "5c8275071ec1cf160bfe8c18bbd9330a7d714dc8"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55111): https://lists.yoctoproject.org/g/yocto/message/55111
Mute This Topic: https://lists.yoctoproject.org/mt/86483652/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 1/2] zephyr-kernel/2.7.0: add recipe

2021-10-11 Thread Naveen Saini
https://github.com/zephyrproject-rtos/zephyr/commits/v2.7-branch

Keeping the default PREFERRED_VERSION to 2.6.1 for now.

Signed-off-by: Naveen Saini 
---
 .../zephyr-kernel/zephyr-kernel-src-2.7.0.inc   | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.0.inc

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.0.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.0.inc
new file mode 100644
index 000..e3424d2
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.7.0.inc
@@ -0,0 +1,17 @@
+SRCREV_FORMAT = "default_cmsis"
+SRCREV_default = "8a97c83040c0257d98c329dde55ae10e68544688"
+SRCREV_cmsis = "b0612c97c1401feeb4160add6462c3627fe90fc7"
+SRCREV_nordic = "a6e5299041f152da5ae0ab17b2e44e088bb96d6d"
+SRCREV_stm32 = "5c8275071ec1cf160bfe8c18bbd9330a7d714dc8"
+SRCREV_open-amp = "6010f0523cbc75f551d9256cf782f173177acdef"
+SRCREV_openthread = "5d706547ebcb0a85e11412bcd88e80e2af98c74d"
+SRCREV_libmetal = "39d049d4ae68e6f6d595fce7de1dcfc1024fb4eb"
+SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
+SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
+
+ZEPHYR_BRANCH = "v2.7-branch"
+PV = "2.7.0+git${SRCPV}"
+
+SRC_URI:append = " file://0001-cmake-add-yocto-toolchain.patch \
+
file://0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch \
+"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55016): https://lists.yoctoproject.org/g/yocto/message/55016
Mute This Topic: https://lists.yoctoproject.org/mt/86232346/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 2/2] zephyr-kernel/2.5.0: drop recipe

2021-10-11 Thread Naveen Saini
As v2.7.0 is being added, drop this version support

Signed-off-by: Naveen Saini 
---
 ...phyr-2.5.0-cmake-add-yocto-toolchain.patch | 63 ---
 .../zephyr-kernel/zephyr-kernel-src-2.5.0.inc | 17 -
 2 files changed, 80 deletions(-)
 delete mode 100644 
recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch
 delete mode 100644 recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc

diff --git 
a/recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch
 
b/recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch
deleted file mode 100644
index caab16f..000
--- 
a/recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-From 511745625637da0effca13c5489a392e15d32271 Mon Sep 17 00:00:00 2001
-From: Naveen Saini 
-Date: Tue, 31 Mar 2020 13:22:17 +0800
-Subject: [PATCH] cmake: add yocto toolchain
-
-Upstream status: inappropriate [OE specific]
-
-Signed-off-by: Naveen Saini 

- cmake/compiler/gcc/target.cmake |  7 ---
- cmake/toolchain/yocto/generic.cmake | 13 +
- cmake/toolchain/yocto/target.cmake  |  1 +
- 3 files changed, 14 insertions(+), 7 deletions(-)
- create mode 100644 cmake/toolchain/yocto/generic.cmake
- create mode 100644 cmake/toolchain/yocto/target.cmake
-
-diff --git a/cmake/compiler/gcc/target.cmake b/cmake/compiler/gcc/target.cmake
-index 401cc28db8..5a026f4559 100644
 a/cmake/compiler/gcc/target.cmake
-+++ b/cmake/compiler/gcc/target.cmake
-@@ -66,13 +66,6 @@ if(NOT no_libgcc)
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- 
--  assert_exists(LIBGCC_FILE_NAME)
--
--  get_filename_component(LIBGCC_DIR ${LIBGCC_FILE_NAME} DIRECTORY)
--
--  assert_exists(LIBGCC_DIR)
--
--  LIST(APPEND LIB_INCLUDE_DIR "-L\"${LIBGCC_DIR}\"")
-   LIST(APPEND TOOLCHAIN_LIBS gcc)
- endif()
- 
-diff --git a/cmake/toolchain/yocto/generic.cmake 
b/cmake/toolchain/yocto/generic.cmake
-new file mode 100644
-index 00..45e5777e2a
 /dev/null
-+++ b/cmake/toolchain/yocto/generic.cmake
-@@ -0,0 +1,13 @@
-+set(COMPILER gcc)
-+set(LINKER ld)
-+set(BINTOOLS gnu)
-+
-+set(ZEPHYR_SYSROOT ${ZEPHYR_SYSROOT})
-+set(SYSROOT_DIR ${ZEPHYR_SYSROOT})
-+set(LIBC_LIBRARY_DIR "\"${SYSROOT_DIR}\"/")
-+set(LIBC_INCLUDE_DIR ${SYSROOT_DIR}/include)
-+LIST(APPEND TOOLCHAIN_LIBS gcc)
-+
-+LIST(APPEND LIB_INCLUDE_DIR "-L\"${STAGING_LIBDIR}\"")
-+
-+set(TOOLCHAIN_LIBS gcc)
-diff --git a/cmake/toolchain/yocto/target.cmake 
b/cmake/toolchain/yocto/target.cmake
-new file mode 100644
-index 00..9881313609
 /dev/null
-+++ b/cmake/toolchain/yocto/target.cmake
-@@ -0,0 +1 @@
-+# SPDX-License-Identifier: Apache-2.0
--- 
-2.17.1
-
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
deleted file mode 100644
index be75362..000
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
+++ /dev/null
@@ -1,17 +0,0 @@
-SRCREV_FORMAT = "default_cmsis"
-SRCREV_default = "fe7c2efca800a0cf1bccf23aefe08b3c4beb88bf"
-SRCREV_cmsis = "c3bd2094f92d574377f7af2aec147ae181aa5f8e"
-SRCREV_nordic = "f3434da6446380fcdd426dbe2866af21d0d549b6"
-SRCREV_stm32 = "cc8731dba4fd9c57d7fe8ea6149828b89c2bd635"
-SRCREV_open-amp = "de1b85a13032a2de1d8b6695ae5f800b613e739d"
-SRCREV_openthread = "385e19da1ae15f27872c2543b97276a42f102ead"
-SRCREV_libmetal = "9d4ee2c3cfd5f49861939447990f3b7d7bf9bf94"
-SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
-SRCREV_mbedtls = "24d84ecff195fb15c889d9046e44e4804d626c67"
-
-ZEPHYR_BRANCH = "main"
-PV = "2.5.0+git${SRCPV}"
-
-SRC_URI:append = " file://0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch \
-
file://0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch \
-"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#55017): https://lists.yoctoproject.org/g/yocto/message/55017
Mute This Topic: https://lists.yoctoproject.org/mt/86232347/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr 0/2] add support of the zephyr-openamp-rsc-table sample on STM32MP157

2021-10-05 Thread Naveen Saini
This is only cover letter, I do not see patches on mailing list..

Regards,
Naveen

> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Arnaud Pouliquen
> Sent: Wednesday, September 29, 2021 5:41 PM
> To: yocto@lists.yoctoproject.org
> Cc: Kumar Gala ; Kevin Townsend
> 
> Subject: [yocto] [meta-zephyr 0/2] add support of the zephyr-openamp-rsc-
> table sample on STM32MP157
> 
> Add capability to genereate the "zephyr-openamp-rsc-table" sample in yocto
> build.
> 
> This example demonstrates inter-processor communication based on a
> resource table, with the objective of responding to the Linux kernel rpmsg
> sample.
> 
> This sample is compatible with the stm32mp157c_dk2 board.
> The support of the board is also added in this series.
> 
> Arnaud Pouliquen (2):
>   conf: machine: add stm32mp157c-dk2 support
>   zephyr-kernel: add openamp-rsc-table sample
> 
>  conf/machine/stm32mp157c-dk2.conf  |  8 
>  .../zephyr-kernel/zephyr-openamp-rsc-table.bb  | 10 ++
>  2 files changed, 18 insertions(+)
>  create mode 100644 conf/machine/stm32mp157c-dk2.conf  create mode
> 100644 recipes-kernel/zephyr-kernel/zephyr-openamp-rsc-table.bb
> 
> --
> 2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54954): https://lists.yoctoproject.org/g/yocto/message/54954
Mute This Topic: https://lists.yoctoproject.org/mt/85944703/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][hardknott] backport tmpfsdir from master

2021-09-27 Thread Naveen Saini
Done. 

Regards,
Naveen

> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Jon Mason
> Sent: Monday, September 27, 2021 9:24 PM
> To: Saini, Naveen Kumar 
> Cc: yocto@lists.yoctoproject.org
> Subject: [yocto] [meta-zephyr][hardknott] backport tmpfsdir from master
> 
> Hey Naveen,
> The hardknott branch in meta-zephyr needs the tmpfsdir patch
> (678600bee6092e58110a826a9cbefc2f5c52916c) from the master branch
> cherry-picked back to hardknott.  It has the same issue master had with
> breaking when trying to run qemu.  Can you please pull it in?
> 
> Thanks,
> Jon

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54889): https://lists.yoctoproject.org/g/yocto/message/54889
Mute This Topic: https://lists.yoctoproject.org/mt/85900351/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 1/2] zephyr-qemuboot: fix parse build failure

2021-09-24 Thread Naveen Saini
As OE-core explicitly have added depends for qemu-helper addto_recipe_sysroot 
task, which
breaks zephyr-qemuboot implementation of adding build dependencies
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=282d596b8cc81d650b6d20c6131fdc236bad2c20

ERROR: Error for meta-zephyr/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb:
do_bootconf_write[depends], dependency 
qemu-helper-native:do_addto_recipe_sysroot:do_addto_recipe_sysroot in
' qemu-helper-native:do_addto_recipe_sysroot:do_addto_recipe_sysroot 
qemu-helper-native:do_addto_recipe_sysroot:do_populate_sysroot' does not 
contain exactly one ':' character.
 Task 'depends' should be specified in the form 'packagename:task'
ERROR: Command execution failed: Exited with 1

Signed-off-by: Naveen Saini 
---
 classes/zephyr-qemuboot.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/zephyr-qemuboot.bbclass b/classes/zephyr-qemuboot.bbclass
index c268e9e..b45e6f6 100644
--- a/classes/zephyr-qemuboot.bbclass
+++ b/classes/zephyr-qemuboot.bbclass
@@ -48,7 +48,7 @@ python () {
 for dep in (d.getVar('EXTRA_IMAGEDEPENDS') or "").split():
 # Make sure we only add it for qemu
 if 'qemu-helper-native' in dep:
-deps += " %s:%s" % (dep, task)
+deps += " qemu-helper-native:%s" % (task)
 return deps
 d.appendVarFlag('do_bootconf_write', 'depends', 
extraimage_getdepends('do_addto_recipe_sysroot'))
 d.appendVarFlag('do_bootconf_write', 'depends', 
extraimage_getdepends('do_populate_sysroot'))
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54833): https://lists.yoctoproject.org/g/yocto/message/54833
Mute This Topic: https://lists.yoctoproject.org/mt/85833578/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 2/2] zephyr-kernel: upgrade 2.6.0 -> 2.6.1

2021-09-24 Thread Naveen Saini
It has GCC-11 fixes.
https://github.com/zephyrproject-rtos/zephyr/issues/35707

Commits included:
2d6322d74a demand_paging: eviction/nru: fix incorrect dirty bit return val
25771e6928 drivers: clock_control: stm32: enable PWR clock unconditionally
92e36185e8 [Backport v2.6-branch] Microchip: XEC GPIO driver interrupt enable 
part 2
68d33e3834 libc/minimal: locate the memory pool for malloc() to .bss
7f3abab9bf net: tcp: accept [FIN, PSH, ACK] in TCP_FIN_WAIT_2 state
533dcaf374 lib/os/cbprintf_nano.c: avoid sign extension on unsigned formats
ea55ebfa74 tests: schedule_api: use stack array extern macro
95bb8841b8 tests: mem_protect: fix warning on uninitialized variable
1f8c53dfaf tests: kernel/common: avoid using compiler builtin popcount
7bb7454a00 kernel: use proper macro to declare extern interrupt stacks
25fd176014 kernel: add macros to allow declaring extern stack arrays
e1cde092ac kernel: move Z_KERNEL_STACK_LEN higher in thread_stack.h
244049bd71 x86: type cast to uint8_t* for bit ops
5dae0c1bf0 kernel: ignore array bound warnings for generated syscall funcs
5666e4d525 cmake: force GCC to emit DWARF version 4
91a78866ca Bluetooth: Controller: Fix advertising after connections from same 
peer
0afddb2341 x86/cache: fix issues in arch dcache flush function
9bcf9b6a53 json: fix parsing first array-array element
2595cce714 cmake: oneApi: add oneApi support on windows.
18d314e750 cmake: oneApi: add oneApi support on windows
c8755e0b46 (tag: v2.6.1-rc1) tests/benchmarks: add dynamic memory allocation 
measurement
a4d35f0a3e doc: 2.6.1 release notes
7094aaee55 release: Bump release to 2.6.1-rc1
585c03a0b6 drivers/clock_control: stm32: Fix macro to get HCLK freq
cacb0a4e59 Bluetooth: L2CAP: Fix missing net_buf_unref()
78ab750540 timer: hpet: convert register access to functions
d9df404d47 timer: hpet: don't force TIMER_READS_ITS_FREQUENCY_AT_RUNTIME
8e80955511 timer: hpet: allow overriding MIN_DELAY
99dc33faaf timer: hpet: extract Counter Clock Period into a macro
02fbe652a5 logging: fs: fix leak of opened directories in check_log_file_exist()
80b406d784 x86: acpi: limit search on where EBDA can be

Signed-off-by: Naveen Saini 
---
 ...ephyr-kernel-src-2.6.0.inc => zephyr-kernel-src-2.6.1.inc} | 4 ++--
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc| 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
 rename recipes-kernel/zephyr-kernel/{zephyr-kernel-src-2.6.0.inc => 
zephyr-kernel-src-2.6.1.inc} (90%)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc
similarity index 90%
rename from recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
rename to recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc
index 63665bf..109242e 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.1.inc
@@ -1,5 +1,5 @@
 SRCREV_FORMAT = "default_cmsis"
-SRCREV_default = "837ab4a915f7802a6fb02a27e4b024e287ac93c2"
+SRCREV_default = "2d6322d74aaac838ead46bfcba0db619cff4b534"
 SRCREV_cmsis = "c3bd2094f92d574377f7af2aec147ae181aa5f8e"
 SRCREV_nordic = "574493fe29c79140df4827ab5d4a23df79d03681"
 SRCREV_stm32 = "f8ff8d25aa0a9e65948040c7b47ec67f3fa300df"
@@ -10,7 +10,7 @@ SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
 SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
 
 ZEPHYR_BRANCH = "v2.6-branch"
-PV = "2.6.0+git${SRCPV}"
+PV = "2.6.1+git${SRCPV}"
 
 SRC_URI:append = " file://0001-cmake-add-yocto-toolchain.patch \
 
file://0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch \
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index abe755d..458ff1e 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -22,5 +22,5 @@ SRC_URI = "\
 S = "${WORKDIR}/git"
 
 # Default to a stable version
-PREFERRED_VERSION_zephyr-kernel ??= "2.6.0"
+PREFERRED_VERSION_zephyr-kernel ??= "2.6.1"
 include zephyr-kernel-src-${PREFERRED_VERSION_zephyr-kernel}.inc
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54832): https://lists.yoctoproject.org/g/yocto/message/54832
Mute This Topic: https://lists.yoctoproject.org/mt/85833577/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] layer.conf: update machine confs with new tune locations

2021-08-23 Thread Naveen Saini
Added logic to make sure, it does not break with old releases.

Signed-off-by: Naveen Saini 
---
 conf/layer.conf | 2 ++
 conf/machine/include/tune-corei7-common.inc | 4 ++--
 conf/machine/qemu-x86.conf  | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/conf/layer.conf b/conf/layer.conf
index 5f13c27..35f1075 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -16,3 +16,5 @@ LAYERVERSION_zephyr = "1"
 LAYERDEPENDS_zephyr = "core meta-python"
 
 LAYERSERIES_COMPAT_zephyr = "dunfell gatesgarth hardknott honister"
+
+X86_TUNE_DIR = "${@bb.utils.contains('LAYERSERIES_CORENAMES', 'honister', 
'include/x86', 'include', d)}"
diff --git a/conf/machine/include/tune-corei7-common.inc 
b/conf/machine/include/tune-corei7-common.inc
index 509d190..b68fc05 100644
--- a/conf/machine/include/tune-corei7-common.inc
+++ b/conf/machine/include/tune-corei7-common.inc
@@ -1,6 +1,6 @@
 DEFAULTTUNE ?= "corei7-64"
-require conf/machine/include/tune-corei7.inc
-require conf/machine/include/x86-base.inc
+require conf/machine/${X86_TUNE_DIR}/tune-corei7.inc
+require conf/machine/${X86_TUNE_DIR}/x86-base.inc
 
 # Add x86 to MACHINEOVERRIDE
 MACHINEOVERRIDES =. "x86:"
diff --git a/conf/machine/qemu-x86.conf b/conf/machine/qemu-x86.conf
index 31ce80d..ae7716c 100644
--- a/conf/machine/qemu-x86.conf
+++ b/conf/machine/qemu-x86.conf
@@ -3,7 +3,7 @@
 #@DESCRIPTION: Machine for Zephyr BOARD qemu_x86
 
 require conf/machine/include/qemu.inc
-require conf/machine/include/tune-i586.inc
+require conf/machine/${X86_TUNE_DIR}/tune-i586.inc
 
 ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
 
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54537): https://lists.yoctoproject.org/g/yocto/message/54537
Mute This Topic: https://lists.yoctoproject.org/mt/85081141/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto] [yocto-kernel-cache][yocto-5.10][PATCH v2] nf: drop merged patch

2021-08-19 Thread Naveen Saini
From: Bruce Ashfield 

Ref:
https://github.com/torvalds/linux/commit/5d1549847c76b1ffcf8e388ef4d0f229bdd1d7e8
https://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/commit/?h=yocto-5.13=b085ea380cfe6101f56665de6b2362b66fcef9eb

Signed-off-by: Bruce Ashfield 
Signed-off-by: Naveen Saini 
---
 features/net/net.scc  |  1 -
 ...emainder-of-pseudo-header-protocol-0.patch | 92 ---
 2 files changed, 93 deletions(-)
 delete mode 100644 
features/net/netfilter-Fix-remainder-of-pseudo-header-protocol-0.patch

diff --git a/features/net/net.scc b/features/net/net.scc
index a907e016..606aaa91 100644
--- a/features/net/net.scc
+++ b/features/net/net.scc
@@ -1,4 +1,3 @@
 # SPDX-License-Identifier: MIT
 
 kconf hardware net.cfg
-patch netfilter-Fix-remainder-of-pseudo-header-protocol-0.patch
diff --git 
a/features/net/netfilter-Fix-remainder-of-pseudo-header-protocol-0.patch 
b/features/net/netfilter-Fix-remainder-of-pseudo-header-protocol-0.patch
deleted file mode 100644
index d1fdbf98..
--- a/features/net/netfilter-Fix-remainder-of-pseudo-header-protocol-0.patch
+++ /dev/null
@@ -1,92 +0,0 @@
-From b383959122e464ccdc21f6b37af88152d29cdf95 Mon Sep 17 00:00:00 2001
-From: He Zhe 
-Date: Tue, 25 Jun 2019 18:15:50 +0800
-Subject: [PATCH] netfilter: Fix remainder of pseudo-header protocol 0
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Since v5.1-rc1, some types of packets do not get unreachable reply with the
-following iptables setting. Fox example,
-
-$ iptables -A INPUT -p icmp --icmp-type 8 -j REJECT
-$ ping 127.0.0.1 -c 1
-PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
-— 127.0.0.1 ping statistics —
-1 packets transmitted, 0 received, 100% packet loss, time 0ms
-
-We should have got the following reply from command line, but we did not.
-From 127.0.0.1 icmp_seq=1 Destination Port Unreachable
-
-Yi Zhao reported it and narrowed it down to:
-7fc38225363d ("netfilter: reject: skip csum verification for protocols that 
don't support it"),
-
-This is because nf_ip_checksum still expects pseudo-header protocol type 0 for
-packets that are of neither TCP or UDP, and thus ICMP packets are mistakenly
-treated as TCP/UDP.
-
-This patch corrects the conditions in nf_ip_checksum and all other places that
-still call it with protocol 0.
-
-Fixes: 7fc38225363d ("netfilter: reject: skip csum verification for protocols 
that don't support it")
-Reported-by: Yi Zhao 
-Signed-off-by: He Zhe 
-Signed-off-by: Bruce Ashfield 

- net/netfilter/nf_conntrack_proto_icmp.c | 2 +-
- net/netfilter/nf_nat_proto.c| 2 +-
- net/netfilter/utils.c   | 5 +++--
- 3 files changed, 5 insertions(+), 4 deletions(-)
-
-diff --git a/net/netfilter/nf_conntrack_proto_icmp.c 
b/net/netfilter/nf_conntrack_proto_icmp.c
-index a824367ed518..dd53e2b20f6b 100644
 a/net/netfilter/nf_conntrack_proto_icmp.c
-+++ b/net/netfilter/nf_conntrack_proto_icmp.c
-@@ -218,7 +218,7 @@ int nf_conntrack_icmpv4_error(struct nf_conn *tmpl,
-   /* See ip_conntrack_proto_tcp.c */
-   if (state->net->ct.sysctl_checksum &&
-   state->hook == NF_INET_PRE_ROUTING &&
--  nf_ip_checksum(skb, state->hook, dataoff, 0)) {
-+  nf_ip_checksum(skb, state->hook, dataoff, IPPROTO_ICMP)) {
-   icmp_error_log(skb, state, "bad hw icmp checksum");
-   return -NF_ACCEPT;
-   }
-diff --git a/net/netfilter/nf_nat_proto.c b/net/netfilter/nf_nat_proto.c
-index 07da07788f6b..83a24cc5753b 100644
 a/net/netfilter/nf_nat_proto.c
-+++ b/net/netfilter/nf_nat_proto.c
-@@ -564,7 +564,7 @@ int nf_nat_icmp_reply_translation(struct sk_buff *skb,
- 
-   if (!skb_make_writable(skb, hdrlen + sizeof(*inside)))
-   return 0;
--  if (nf_ip_checksum(skb, hooknum, hdrlen, 0))
-+  if (nf_ip_checksum(skb, hooknum, hdrlen, IPPROTO_ICMP))
-   return 0;
- 
-   inside = (void *)skb->data + hdrlen;
-diff --git a/net/netfilter/utils.c b/net/netfilter/utils.c
-index 06dc55590441..51b454d8fa9c 100644
 a/net/netfilter/utils.c
-+++ b/net/netfilter/utils.c
-@@ -17,7 +17,8 @@ __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int 
hook,
-   case CHECKSUM_COMPLETE:
-   if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN)
-   break;
--  if ((protocol == 0 && !csum_fold(skb->csum)) ||
-+  if ((protocol != IPPROTO_TCP && protocol != IPPROTO_UDP &&
-+  !csum_fold(skb->csum)) ||
-   !csum_tcpudp_magic(iph->saddr, iph->daddr,
-  skb->len - dataoff, protocol,
-  skb->csum)) {
-@@ -26,7 +27,7 @@ __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int 
hook,
-   }
-   /* fall through */
-   

[linux-yocto] [yocto-kernel-cache][yocto-5.10][PATCH] nf: drop merged patch

2021-08-19 Thread Naveen Saini
From: Bruce Ashfield 

Ref:
https://github.com/torvalds/linux/commit/5d1549847c76b1ffcf8e388ef4d0f229bdd1d7e8
https://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/commit/?h=yocto-5.13=b085ea380cfe6101f56665de6b2362b66fcef9eb

Signed-off-by: Bruce Ashfield 
---
 features/net/net.scc  |  1 -
 ...emainder-of-pseudo-header-protocol-0.patch | 92 ---
 2 files changed, 93 deletions(-)
 delete mode 100644 
features/net/netfilter-Fix-remainder-of-pseudo-header-protocol-0.patch

diff --git a/features/net/net.scc b/features/net/net.scc
index a907e016..606aaa91 100644
--- a/features/net/net.scc
+++ b/features/net/net.scc
@@ -1,4 +1,3 @@
 # SPDX-License-Identifier: MIT
 
 kconf hardware net.cfg
-patch netfilter-Fix-remainder-of-pseudo-header-protocol-0.patch
diff --git 
a/features/net/netfilter-Fix-remainder-of-pseudo-header-protocol-0.patch 
b/features/net/netfilter-Fix-remainder-of-pseudo-header-protocol-0.patch
deleted file mode 100644
index d1fdbf98..
--- a/features/net/netfilter-Fix-remainder-of-pseudo-header-protocol-0.patch
+++ /dev/null
@@ -1,92 +0,0 @@
-From b383959122e464ccdc21f6b37af88152d29cdf95 Mon Sep 17 00:00:00 2001
-From: He Zhe 
-Date: Tue, 25 Jun 2019 18:15:50 +0800
-Subject: [PATCH] netfilter: Fix remainder of pseudo-header protocol 0
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Since v5.1-rc1, some types of packets do not get unreachable reply with the
-following iptables setting. Fox example,
-
-$ iptables -A INPUT -p icmp --icmp-type 8 -j REJECT
-$ ping 127.0.0.1 -c 1
-PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
-— 127.0.0.1 ping statistics —
-1 packets transmitted, 0 received, 100% packet loss, time 0ms
-
-We should have got the following reply from command line, but we did not.
-From 127.0.0.1 icmp_seq=1 Destination Port Unreachable
-
-Yi Zhao reported it and narrowed it down to:
-7fc38225363d ("netfilter: reject: skip csum verification for protocols that 
don't support it"),
-
-This is because nf_ip_checksum still expects pseudo-header protocol type 0 for
-packets that are of neither TCP or UDP, and thus ICMP packets are mistakenly
-treated as TCP/UDP.
-
-This patch corrects the conditions in nf_ip_checksum and all other places that
-still call it with protocol 0.
-
-Fixes: 7fc38225363d ("netfilter: reject: skip csum verification for protocols 
that don't support it")
-Reported-by: Yi Zhao 
-Signed-off-by: He Zhe 
-Signed-off-by: Bruce Ashfield 

- net/netfilter/nf_conntrack_proto_icmp.c | 2 +-
- net/netfilter/nf_nat_proto.c| 2 +-
- net/netfilter/utils.c   | 5 +++--
- 3 files changed, 5 insertions(+), 4 deletions(-)
-
-diff --git a/net/netfilter/nf_conntrack_proto_icmp.c 
b/net/netfilter/nf_conntrack_proto_icmp.c
-index a824367ed518..dd53e2b20f6b 100644
 a/net/netfilter/nf_conntrack_proto_icmp.c
-+++ b/net/netfilter/nf_conntrack_proto_icmp.c
-@@ -218,7 +218,7 @@ int nf_conntrack_icmpv4_error(struct nf_conn *tmpl,
-   /* See ip_conntrack_proto_tcp.c */
-   if (state->net->ct.sysctl_checksum &&
-   state->hook == NF_INET_PRE_ROUTING &&
--  nf_ip_checksum(skb, state->hook, dataoff, 0)) {
-+  nf_ip_checksum(skb, state->hook, dataoff, IPPROTO_ICMP)) {
-   icmp_error_log(skb, state, "bad hw icmp checksum");
-   return -NF_ACCEPT;
-   }
-diff --git a/net/netfilter/nf_nat_proto.c b/net/netfilter/nf_nat_proto.c
-index 07da07788f6b..83a24cc5753b 100644
 a/net/netfilter/nf_nat_proto.c
-+++ b/net/netfilter/nf_nat_proto.c
-@@ -564,7 +564,7 @@ int nf_nat_icmp_reply_translation(struct sk_buff *skb,
- 
-   if (!skb_make_writable(skb, hdrlen + sizeof(*inside)))
-   return 0;
--  if (nf_ip_checksum(skb, hooknum, hdrlen, 0))
-+  if (nf_ip_checksum(skb, hooknum, hdrlen, IPPROTO_ICMP))
-   return 0;
- 
-   inside = (void *)skb->data + hdrlen;
-diff --git a/net/netfilter/utils.c b/net/netfilter/utils.c
-index 06dc55590441..51b454d8fa9c 100644
 a/net/netfilter/utils.c
-+++ b/net/netfilter/utils.c
-@@ -17,7 +17,8 @@ __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int 
hook,
-   case CHECKSUM_COMPLETE:
-   if (hook != NF_INET_PRE_ROUTING && hook != NF_INET_LOCAL_IN)
-   break;
--  if ((protocol == 0 && !csum_fold(skb->csum)) ||
-+  if ((protocol != IPPROTO_TCP && protocol != IPPROTO_UDP &&
-+  !csum_fold(skb->csum)) ||
-   !csum_tcpudp_magic(iph->saddr, iph->daddr,
-  skb->len - dataoff, protocol,
-  skb->csum)) {
-@@ -26,7 +27,7 @@ __sum16 nf_ip_checksum(struct sk_buff *skb, unsigned int 
hook,
-   }
-   /* fall through */
-   case CHECKSUM_NONE:
--  if (protocol == 0)
-+  if (protocol != IPPROTO_TCP && protocol != IPPROTO_UDP)
-   

[yocto] [meta-zephyr][PATCH 1/2] zephyr-kernel-src: switch to main branch for hal_stm32 module repo

2021-08-10 Thread Naveen Saini
Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index 950966e..abe755d 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -12,7 +12,7 @@ SRC_URI = "\
 
git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=${ZEPHYR_BRANCH};name=default
 \
 
git://github.com/zephyrproject-rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis
 \
 
git://github.com/zephyrproject-rtos/hal_nordic.git;protocol=https;destsuffix=git/modules/hal/nordic;name=nordic
 \
-
git://github.com/zephyrproject-rtos/hal_stm32.git;protocol=https;destsuffix=git/modules/hal/stm32;name=stm32
 \
+
git://github.com/zephyrproject-rtos/hal_stm32.git;branch=main;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
 \
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54367): https://lists.yoctoproject.org/g/yocto/message/54367
Mute This Topic: https://lists.yoctoproject.org/mt/84809468/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 2/2] zephyr-kernel-src-dev.inc: add dev recipe

2021-08-10 Thread Naveen Saini
It allow to build against latest main branch. User need
to have following config locally to use it.

PREFERRED_VERSION_zephyr-kernel = "dev"

Signed-off-by: Naveen Saini 
---
 .../zephyr-kernel/zephyr-kernel-src-dev.inc | 17 +
 1 file changed, 17 insertions(+)
 create mode 100644 recipes-kernel/zephyr-kernel/zephyr-kernel-src-dev.inc

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-dev.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-dev.inc
new file mode 100644
index 000..da2a5d5
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-dev.inc
@@ -0,0 +1,17 @@
+SRCREV_FORMAT = "default_cmsis"
+SRCREV_default = "72bb75a360ce05bfc94ff0fbecda2e2d094e3d84"
+SRCREV_cmsis = "c3bd2094f92d574377f7af2aec147ae181aa5f8e"
+SRCREV_nordic = "00fd2aa97a22ea1052d9dabe1b18ab396daab93a"
+SRCREV_stm32 = "4200321ef1cd27cacc37b0439389424156bb1267"
+SRCREV_open-amp = "6010f0523cbc75f551d9256cf782f173177acdef"
+SRCREV_openthread = "542b14a5bc5b38f29e2cab892c66da670a524b05"
+SRCREV_libmetal = "39d049d4ae68e6f6d595fce7de1dcfc1024fb4eb"
+SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
+SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
+
+ZEPHYR_BRANCH = "main"
+PV = "2.6.0+git${SRCPV}"
+
+SRC_URI:append = " file://0001-cmake-add-yocto-toolchain.patch \
+
file://0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch \
+"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54366): https://lists.yoctoproject.org/g/yocto/message/54366
Mute This Topic: https://lists.yoctoproject.org/mt/84809467/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH v2 1/2] Convert to new override syntax

2021-08-04 Thread Naveen Saini
Use the convert-overrides.py to convert to new syntax and fixed
some additional changes manually.

Signed-off-by: Naveen Saini 
---
 classes/zephyr.bbclass |  2 +-
 conf/machine/96b-avenger96.conf|  2 +-
 conf/machine/96b-nitrogen.conf |  2 +-
 conf/machine/arduino-nano-33-ble.conf  |  2 +-
 conf/machine/include/tune-arc.inc  |  2 +-
 conf/machine/include/tune-cortexm0.inc |  8 
 conf/machine/include/tune-cortexm3.inc | 10 +-
 conf/machine/include/tune-cortexm4.inc | 10 +-
 conf/machine/include/tune-iamcu.inc|  4 ++--
 conf/machine/include/tune-nios2.inc|  4 ++--
 conf/machine/intel-x86-64.conf |  2 +-
 conf/machine/nrf52840dk-nrf52840.conf  |  2 +-
 conf/machine/qemu-cortex-m3.conf   |  2 +-
 conf/machine/qemu-nios2.conf   |  2 +-
 conf/machine/qemu-x86.conf |  6 +++---
 recipes-core/newlib/newlib_%.bbappend  | 10 +-
 recipes-devtools-arc/binutils/binutils-2.26arc.inc |  4 ++--
 .../binutils/binutils-cross-canadian_2.26arc.bb|  2 +-
 .../binutils/binutils-cross_2.26arc.bb |  4 ++--
 recipes-devtools-arc/gcc/gcc-6.x.arc.inc   |  4 ++--
 .../gcc/gcc-cross-canadian_6.x.arc.bb  |  8 
 recipes-devtools-arc/gcc/gcc-cross_6.x.arc .bb |  8 
 recipes-devtools-arc/gcc/libgcc_6.x.arc.bb |  6 +++---
 recipes-devtools/gcc/gcc-cross_6.%.bbappend|  2 +-
 recipes-devtools/gcc/libgcc_6.%.bbappend   |  4 ++--
 recipes-devtools/qemu/qemu_%.bbappend  |  6 +++---
 recipes-kernel/zephyr-kernel/zephyr-coap-client.bb |  2 +-
 recipes-kernel/zephyr-kernel/zephyr-coap-server.bb |  2 +-
 recipes-kernel/zephyr-kernel/zephyr-echo-client.bb |  2 +-
 recipes-kernel/zephyr-kernel/zephyr-http-client.bb |  2 +-
 .../zephyr-kernel/zephyr-kernel-common.inc | 14 +++---
 .../zephyr-kernel/zephyr-kernel-src-2.5.0.inc  |  2 +-
 .../zephyr-kernel/zephyr-kernel-src-2.6.0.inc  |  2 +-
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.bb  |  2 +-
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc |  2 +-
 .../zephyr-kernel/zephyr-kernel-test.inc   | 12 ++--
 .../zephyr-kernel/zephyr-mqtt-publisher.bb |  2 +-
 .../zephyr-kernel/zephyr-openthread-echo-client.bb |  4 ++--
 .../zephyr-kernel/zephyr-peripheral-esp.bb |  2 +-
 .../zephyr-kernel/zephyr-peripheral-hr.bb  |  2 +-
 .../zephyr-kernel/zephyr-websocket-client.bb   |  2 +-
 41 files changed, 86 insertions(+), 86 deletions(-)

diff --git a/classes/zephyr.bbclass b/classes/zephyr.bbclass
index 6fceb04..e1d3185 100644
--- a/classes/zephyr.bbclass
+++ b/classes/zephyr.bbclass
@@ -48,7 +48,7 @@ do_menuconfig[nostamp] = "1"
 do_menuconfig[dirs] = "${B}"
 addtask menuconfig after do_configure
 
-python do_devshell_prepend () {
+python do_devshell:prepend () {
 # Most likely we need to manually edit prj.conf...
 os.chdir(d.getVar('ZEPHYR_SRC_DIR', True))
 }
diff --git a/conf/machine/96b-avenger96.conf b/conf/machine/96b-avenger96.conf
index 7bcfb4a..ae6f972 100644
--- a/conf/machine/96b-avenger96.conf
+++ b/conf/machine/96b-avenger96.conf
@@ -5,4 +5,4 @@
 
 require conf/machine/include/stm32mp1-cortex-m4.inc
 
-ARCH_96b-avenger96 = "arm"
+ARCH:96b-avenger96 = "arm"
diff --git a/conf/machine/96b-nitrogen.conf b/conf/machine/96b-nitrogen.conf
index 48f2041..affe9eb 100644
--- a/conf/machine/96b-nitrogen.conf
+++ b/conf/machine/96b-nitrogen.conf
@@ -5,4 +5,4 @@
 
 require conf/machine/include/nrf52.inc
 ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
-ARCH_96b-nitrogen = "arm"
+ARCH:96b-nitrogen = "arm"
diff --git a/conf/machine/arduino-nano-33-ble.conf 
b/conf/machine/arduino-nano-33-ble.conf
index 18ba056..ebf4155 100644
--- a/conf/machine/arduino-nano-33-ble.conf
+++ b/conf/machine/arduino-nano-33-ble.conf
@@ -5,5 +5,5 @@
 
 require conf/machine/include/nrf52.inc
 ZEPHYR_INHERIT_CLASSES += "zephyr-flash-bossac"
-ARCH_arduino-nano-33-ble = "arm"
+ARCH:arduino-nano-33-ble = "arm"
 
diff --git a/conf/machine/include/tune-arc.inc 
b/conf/machine/include/tune-arc.inc
index ff841e7..7db88ef 100644
--- a/conf/machine/include/tune-arc.inc
+++ b/conf/machine/include/tune-arc.inc
@@ -2,7 +2,7 @@ DEFAULTTUNE ?= "arc"
 
 TUNE_ARCH = "arc"
 TUNE_PKGARCH = "arc"
-TUNE_FEATURES_tune-arc = "littleendian"
+TUNE_FEATURES:tune-arc = "littleendian"
 TUNE_CCARGS = ""
 
 TUNEVALID[littleendian] = "Little endian mode"
diff --git a/conf/machine/include/tune-cortexm0.inc 
b/conf/machine/include/tune-cortexm0.inc
index d4f95e4..5067eb2 100644
--- a/conf/machine/include/tune-cortexm0.inc
+++ b

[yocto] [meta-zephyr][PATCH v2 2/2] layer.conf: add honister to LAYERSERIES_COMPAT

2021-08-04 Thread Naveen Saini
Signed-off-by: Naveen Saini 
---
 conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/layer.conf b/conf/layer.conf
index 8e6b15d..5f13c27 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -15,4 +15,4 @@ LAYERVERSION_zephyr = "1"
 
 LAYERDEPENDS_zephyr = "core meta-python"
 
-LAYERSERIES_COMPAT_zephyr = "dunfell gatesgarth hardknott"
+LAYERSERIES_COMPAT_zephyr = "dunfell gatesgarth hardknott honister"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54315): https://lists.yoctoproject.org/g/yocto/message/54315
Mute This Topic: https://lists.yoctoproject.org/mt/84676192/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 1/2] Convert to new override syntax

2021-08-03 Thread Naveen Saini
Use the convert-overrides.py to convert to new syntax and fixed
some additional changes manually.

Signed-off-by: Naveen Saini 
---
 classes/zephyr.bbclass |  2 +-
 conf/machine/96b-avenger96.conf|  2 +-
 conf/machine/96b-nitrogen.conf |  2 +-
 conf/machine/arduino-nano-33-ble.conf  |  2 +-
 conf/machine/include/tune-arc.inc  |  2 +-
 conf/machine/include/tune-cortexm0.inc |  8 
 conf/machine/include/tune-cortexm3.inc | 10 +-
 conf/machine/include/tune-cortexm4.inc | 10 +-
 conf/machine/include/tune-iamcu.inc|  4 ++--
 conf/machine/include/tune-nios2.inc|  4 ++--
 conf/machine/intel-x86-64.conf |  2 +-
 conf/machine/nrf52840dk-nrf52840.conf  |  2 +-
 conf/machine/qemu-cortex-m3.conf   |  2 +-
 conf/machine/qemu-nios2.conf   |  4 ++--
 conf/machine/qemu-x86.conf |  8 
 recipes-core/newlib/newlib_%.bbappend  | 10 +-
 recipes-devtools-arc/binutils/binutils-2.26arc.inc |  4 ++--
 .../binutils/binutils-cross-canadian_2.26arc.bb|  2 +-
 .../binutils/binutils-cross_2.26arc.bb |  4 ++--
 recipes-devtools-arc/gcc/gcc-6.x.arc.inc   |  4 ++--
 .../gcc/gcc-cross-canadian_6.x.arc.bb  |  8 
 recipes-devtools-arc/gcc/gcc-cross_6.x.arc .bb |  8 
 recipes-devtools-arc/gcc/libgcc_6.x.arc.bb |  6 +++---
 recipes-devtools/gcc/gcc-cross_6.%.bbappend|  2 +-
 recipes-devtools/gcc/libgcc_6.%.bbappend   |  4 ++--
 recipes-devtools/qemu/qemu_%.bbappend  |  6 +++---
 recipes-kernel/zephyr-kernel/zephyr-coap-client.bb |  2 +-
 recipes-kernel/zephyr-kernel/zephyr-coap-server.bb |  2 +-
 recipes-kernel/zephyr-kernel/zephyr-echo-client.bb |  2 +-
 recipes-kernel/zephyr-kernel/zephyr-http-client.bb |  2 +-
 .../zephyr-kernel/zephyr-kernel-common.inc | 14 +++---
 .../zephyr-kernel/zephyr-kernel-src-2.5.0.inc  |  2 +-
 .../zephyr-kernel/zephyr-kernel-src-2.6.0.inc  |  2 +-
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.bb  |  2 +-
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc |  2 +-
 .../zephyr-kernel/zephyr-kernel-test.inc   | 12 ++--
 .../zephyr-kernel/zephyr-mqtt-publisher.bb |  2 +-
 .../zephyr-kernel/zephyr-openthread-echo-client.bb |  4 ++--
 .../zephyr-kernel/zephyr-peripheral-esp.bb |  2 +-
 .../zephyr-kernel/zephyr-peripheral-hr.bb  |  2 +-
 .../zephyr-kernel/zephyr-websocket-client.bb   |  2 +-
 41 files changed, 88 insertions(+), 88 deletions(-)

diff --git a/classes/zephyr.bbclass b/classes/zephyr.bbclass
index 6fceb04..e1d3185 100644
--- a/classes/zephyr.bbclass
+++ b/classes/zephyr.bbclass
@@ -48,7 +48,7 @@ do_menuconfig[nostamp] = "1"
 do_menuconfig[dirs] = "${B}"
 addtask menuconfig after do_configure
 
-python do_devshell_prepend () {
+python do_devshell:prepend () {
 # Most likely we need to manually edit prj.conf...
 os.chdir(d.getVar('ZEPHYR_SRC_DIR', True))
 }
diff --git a/conf/machine/96b-avenger96.conf b/conf/machine/96b-avenger96.conf
index 7bcfb4a..ae6f972 100644
--- a/conf/machine/96b-avenger96.conf
+++ b/conf/machine/96b-avenger96.conf
@@ -5,4 +5,4 @@
 
 require conf/machine/include/stm32mp1-cortex-m4.inc
 
-ARCH_96b-avenger96 = "arm"
+ARCH:96b-avenger96 = "arm"
diff --git a/conf/machine/96b-nitrogen.conf b/conf/machine/96b-nitrogen.conf
index 48f2041..affe9eb 100644
--- a/conf/machine/96b-nitrogen.conf
+++ b/conf/machine/96b-nitrogen.conf
@@ -5,4 +5,4 @@
 
 require conf/machine/include/nrf52.inc
 ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
-ARCH_96b-nitrogen = "arm"
+ARCH:96b-nitrogen = "arm"
diff --git a/conf/machine/arduino-nano-33-ble.conf 
b/conf/machine/arduino-nano-33-ble.conf
index 18ba056..ebf4155 100644
--- a/conf/machine/arduino-nano-33-ble.conf
+++ b/conf/machine/arduino-nano-33-ble.conf
@@ -5,5 +5,5 @@
 
 require conf/machine/include/nrf52.inc
 ZEPHYR_INHERIT_CLASSES += "zephyr-flash-bossac"
-ARCH_arduino-nano-33-ble = "arm"
+ARCH:arduino-nano-33-ble = "arm"
 
diff --git a/conf/machine/include/tune-arc.inc 
b/conf/machine/include/tune-arc.inc
index ff841e7..7db88ef 100644
--- a/conf/machine/include/tune-arc.inc
+++ b/conf/machine/include/tune-arc.inc
@@ -2,7 +2,7 @@ DEFAULTTUNE ?= "arc"
 
 TUNE_ARCH = "arc"
 TUNE_PKGARCH = "arc"
-TUNE_FEATURES_tune-arc = "littleendian"
+TUNE_FEATURES:tune-arc = "littleendian"
 TUNE_CCARGS = ""
 
 TUNEVALID[littleendian] = "Little endian mode"
diff --git a/conf/machine/include/tune-cortexm0.inc 
b/conf/machine/include/tune-cortexm0.inc
index d4f95e4..5067eb2 100644
--- a/conf/machine/include/tune-cortexm0.inc
+++ b

[yocto] [meta-zephyr][PATCH 2/2] layer.conf: add honister to LAYERSERIES_COMPAT

2021-08-03 Thread Naveen Saini
Signed-off-by: Naveen Saini 
---
 conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/layer.conf b/conf/layer.conf
index 8e6b15d..5f13c27 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -15,4 +15,4 @@ LAYERVERSION_zephyr = "1"
 
 LAYERDEPENDS_zephyr = "core meta-python"
 
-LAYERSERIES_COMPAT_zephyr = "dunfell gatesgarth hardknott"
+LAYERSERIES_COMPAT_zephyr = "dunfell gatesgarth hardknott honister"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54285): https://lists.yoctoproject.org/g/yocto/message/54285
Mute This Topic: https://lists.yoctoproject.org/mt/84634749/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] intel-x86-32.conf: drop machine configuration

2021-07-19 Thread Naveen Saini
Support for 'minnowboard' and 'up_squared_32' BOARDS have been removed.

https://github.com/zephyrproject-rtos/zephyr/commit/ec5e3017acb1bb4aa802349dcc684eacbefef01c
https://github.com/zephyrproject-rtos/zephyr/commit/11b8dd85b976e9c56861e9cdc0695ea60a96e617

Signed-off-by: Naveen Saini 
---
 conf/machine/include/tune-core2-common.inc |  6 --
 conf/machine/intel-x86-32.conf | 12 
 2 files changed, 18 deletions(-)
 delete mode 100644 conf/machine/include/tune-core2-common.inc
 delete mode 100644 conf/machine/intel-x86-32.conf

diff --git a/conf/machine/include/tune-core2-common.inc 
b/conf/machine/include/tune-core2-common.inc
deleted file mode 100644
index 012f078..000
--- a/conf/machine/include/tune-core2-common.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-DEFAULTTUNE ?= "core2-32"
-require conf/machine/include/tune-core2.inc
-require conf/machine/include/x86-base.inc
-
-# Add x86 to MACHINEOVERRIDES
-MACHINEOVERRIDES =. "x86:"
diff --git a/conf/machine/intel-x86-32.conf b/conf/machine/intel-x86-32.conf
deleted file mode 100644
index 06f6da5..000
--- a/conf/machine/intel-x86-32.conf
+++ /dev/null
@@ -1,12 +0,0 @@
-#@TYPE: Machine
-#@NAME: intel-x86-32
-#@DESCRIPTION: common MACHINE for 32-bit x86 boards. User must set 
${ZEPHYR_BOARD}. By default is set to 'minnowboard' board.
-
-require conf/machine/include/tune-core2-common.inc
-
-ARCH_intel-x86-32 = "x86"
-
-# Supported Boards:
-# ZEPHYR_BOARD ?= "minnowboard"
-# ZEPHYR_BOARD ?= "up_squared_32"
-ZEPHYR_BOARD ?= "minnowboard"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54159): https://lists.yoctoproject.org/g/yocto/message/54159
Mute This Topic: https://lists.yoctoproject.org/mt/84304256/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][PATCH v4 1/2] zephyr-kernel-src.inc: Add backport patch for storage partition

2021-07-16 Thread Naveen Saini
Merged after minor changes.

> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Stefan Schmidt
> Sent: Thursday, July 15, 2021 8:55 PM
> To: yocto@lists.yoctoproject.org
> Cc: Stefan Schmidt ; Stefan Schmidt
> 
> Subject: [yocto] [meta-zephyr][PATCH v4 1/2] zephyr-kernel-src.inc: Add
> backport patch for storage partition
> 
> From: Stefan Schmidt 
> 
> Patch already merged upstream, but after the 2.6 release we are based on.
> Taking the backport in here until we can figure out if that can go to the
> Zephyr 2.6 LTS branch.
> 
> The storage partition itself is needed on the Arduino Nano e.g. for
> OpenThread or applications needed a storage space.
> 
> Signed-off-by: Stefan Schmidt 
> ---
> since v3: Added backported patch for flash layout
> 
>  ...rduino-nano-33-ble-storage-partition.patch | 46 +++
>  .../zephyr-kernel/zephyr-kernel-src.inc   |  1 +
>  2 files changed, 47 insertions(+)
>  create mode 100644 recipes-kernel/zephyr-kernel/files/arduino-nano-33-
> ble-storage-partition.patch
> 
> diff --git a/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-
> partition.patch b/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-
> storage-partition.patch
> new file mode 100644
> index 000..fa0f27f
> --- /dev/null
> +++ b/recipes-kernel/zephyr-kernel/files/arduino-nano-33-ble-storage-par
> +++ tition.patch
> @@ -0,0 +1,46 @@
> +commit 6c9945aafa00c09149e2052a9c2bccad16dd1d8a
> +Author: Stefan Schmidt 
> +Date:   Fri May 7 11:47:44 2021 +0200
> +
> +boards/arduino_nano_33_ble: add storage partition at end of flash
> +
> +Change default partition table to allow for application which need
> +storage. One use case is running the OpenThread integration which has
> +a dependency on this.
> +
> +Signed-off-by: Stefan Schmidt 
> +
> +diff --git a/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
> +b/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
> +index d09b66ec43..d11d800eb5 100644
> +--- a/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
>  b/boards/arm/arduino_nano_33_ble/arduino_nano_33_ble.dts
> +@@ -44,15 +44,27 @@
> +
> + boot_partition: partition@0 {
> + label = "sam-ba";
> +-reg = <0x0 0x1>;
> ++reg = <0x 0x0001>;
> + read-only;
> + };
> +
> + code_partition: partition@1 {
> + label = "code";
> +-reg = <0x1 0xf>;
> ++reg = <0x0001 0x000e8000>;
> + read-only;
> + };
> ++
> ++/*
> ++ * The flash starting at 0x000f8000 and ending at
> ++ * 0x000f is reserved for use by the application.
> ++ *
> ++ * Storage partition will be used by FCB/LittleFS/NVS
> ++ * if enabled.
> ++ */
> ++storage_partition: partition@f8000 {
> ++label = "storage";
> ++reg = <0x000f8000 0x8000>;
> ++};
> + };
> + };
> +
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/recipes-
> kernel/zephyr-kernel/zephyr-kernel-src.inc
> index a0004ed..227c7f4 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> @@ -18,6 +18,7 @@ SRC_URI = "\
>  git://github.com/zephyrproject-
> rtos/openthread.git;protocol=https;branch=zephyr;destsuffix=git/modules/l
> ib/openthread;name=openthread \
>  git://github.com/zephyrproject-
> 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://arduino-nano-33-ble-storage-partition.patch \
>  "
>  S = "${WORKDIR}/git"
> 
> --
> 2.31.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54133): https://lists.yoctoproject.org/g/yocto/message/54133
Mute This Topic: https://lists.yoctoproject.org/mt/84224334/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 2/2] zephyr-kernel: install .efi image if available

2021-07-07 Thread Naveen Saini
EFI images are being generated for x86 platforms.

Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc | 1 +
 recipes-kernel/zephyr-kernel/zephyr-sample.inc| 6 ++
 2 files changed, 7 insertions(+)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
index 46f19e2..7d44b97 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
@@ -13,6 +13,7 @@ ZEPHYR_SYSROOT="${STAGING_DIR_TARGET}"
 
 ZEPHYR_MAKE_OUTPUT = "zephyr.elf"
 ZEPHYR_MAKE_BIN_OUTPUT = "zephyr.bin"
+ZEPHYR_MAKE_EFI_OUTPUT = "zephyr.efi"
 
 EXTRA_OECMAKE = "\
 -DZEPHYR_BASE=${S} \
diff --git a/recipes-kernel/zephyr-kernel/zephyr-sample.inc 
b/recipes-kernel/zephyr-kernel/zephyr-sample.inc
index 7b49611..77fa5ad 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-sample.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-sample.inc
@@ -9,9 +9,15 @@ do_install[noexec] = "1"
 
 do_deploy () {
 install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${DEPLOYDIR}/${PN}.elf
+
 if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
 then
   install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ${DEPLOYDIR}/${PN}.bin
 fi
+
+if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
+then
+  install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ${DEPLOYDIR}/${PN}.efi
+fi
 }
 addtask deploy after do_compile
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54069): https://lists.yoctoproject.org/g/yocto/message/54069
Mute This Topic: https://lists.yoctoproject.org/mt/84040511/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 1/2] zephyr-kernel/2.6.0: update to include latest commits

2021-07-07 Thread Naveen Saini
Switched to v2.6-branch. It included x86 EFI binary fix.

It requried rebasing of yocto toolchain patch.

Commits included:
837ab4a915 ARC: save/restore accumulator registers on all ARCv2 HS CPUs by 
default
0943608550 riscv: openisa_rv32m1: Fix booting of rv32m1_vega
3c56e0df0b cmake: ld: Disable manual linking of libgcc components for host
b0cb7412b9 cmake: host-gcc: Remove libgcc library path resolution
80e1b785dc cmake: host-gcc: Detect libgcc for all archs
e72a327107 cmake: gcc: Remove no_libgcc exclusion for libgcc detection
1cf1d75d3f Bluetooth: Controller: Fix Data Length Update node Rx reservations
e43afd10f7 Bluetooth: Controller: Fix free rx buffer MFIFO enqueue
6d9b318dca Bluetooth: Controller: Minor change to use IS_ENABLED
d4d362d081 doc: api: fix devicetree modification version
d0dca15734 arch/x86/zefi: Fix entry-nop hack for EFI entry
218e438f3e drivers: bluetooth: hci driver for stm32wb includes clock control
f66d0cea06 Tracing: TraceRecorder CMake update
d5a1a22b1a python-devicetree: tox: fix mypy
c77f8fae83 doc/guides/dts: bindings: Fix code snippet for 'signal-gpios'
3ec1caa504 dts/arm: st: g0: closes parenthesis for soc
a221f358eb drivers: flash_stm32_v1: fix a potential unaligned access
f5a6110b4a tests: cpp: libcxx: Test with full and nano variants of newlib
1d6106fd5e tests: cpp: libcxx: Use full version of newlib for testing
4b87e90167 cpp: Fix C++ exception handling newlib dependency
1d4d16b748 linker: cpp: Fix C++ exception handling info section linking
4a564cdef0 version: add EXTRAVERSION to VERSION file

Signed-off-by: Naveen Saini 
---
 .../0001-cmake-add-yocto-toolchain.patch  | 24 +++
 ...phyr-2.5.0-cmake-add-yocto-toolchain.patch | 63 +++
 .../zephyr-kernel/zephyr-kernel-src-2.5.0.inc |  6 +-
 .../zephyr-kernel/zephyr-kernel-src-2.6.0.inc |  8 ++-
 .../zephyr-kernel/zephyr-kernel-src.inc   |  3 +-
 5 files changed, 85 insertions(+), 19 deletions(-)
 create mode 100644 
recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch

diff --git 
a/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch 
b/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch
index caab16f..563af7d 100644
--- a/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch
+++ b/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch
@@ -1,6 +1,6 @@
-From 511745625637da0effca13c5489a392e15d32271 Mon Sep 17 00:00:00 2001
+From bfab268c870548e3e7a24ea67ebed2a0513b2307 Mon Sep 17 00:00:00 2001
 From: Naveen Saini 
-Date: Tue, 31 Mar 2020 13:22:17 +0800
+Date: Wed, 7 Jul 2021 13:53:05 +0800
 Subject: [PATCH] cmake: add yocto toolchain
 
 Upstream status: inappropriate [OE specific]
@@ -15,23 +15,23 @@ Signed-off-by: Naveen Saini 
  create mode 100644 cmake/toolchain/yocto/target.cmake
 
 diff --git a/cmake/compiler/gcc/target.cmake b/cmake/compiler/gcc/target.cmake
-index 401cc28db8..5a026f4559 100644
+index 2b90c5d2ef..b6f28b2f87 100644
 --- a/cmake/compiler/gcc/target.cmake
 +++ b/cmake/compiler/gcc/target.cmake
-@@ -66,13 +66,6 @@ if(NOT no_libgcc)
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
+@@ -68,13 +68,6 @@ execute_process(
+   OUTPUT_STRIP_TRAILING_WHITESPACE
+   )
  
--  assert_exists(LIBGCC_FILE_NAME)
+-assert_exists(LIBGCC_FILE_NAME)
 -
--  get_filename_component(LIBGCC_DIR ${LIBGCC_FILE_NAME} DIRECTORY)
+-get_filename_component(LIBGCC_DIR ${LIBGCC_FILE_NAME} DIRECTORY)
 -
--  assert_exists(LIBGCC_DIR)
+-assert_exists(LIBGCC_DIR)
 -
--  LIST(APPEND LIB_INCLUDE_DIR "-L\"${LIBGCC_DIR}\"")
-   LIST(APPEND TOOLCHAIN_LIBS gcc)
- endif()
+-LIST(APPEND LIB_INCLUDE_DIR "-L\"${LIBGCC_DIR}\"")
+ LIST(APPEND TOOLCHAIN_LIBS gcc)
  
+ if(SYSROOT_DIR)
 diff --git a/cmake/toolchain/yocto/generic.cmake 
b/cmake/toolchain/yocto/generic.cmake
 new file mode 100644
 index 00..45e5777e2a
diff --git 
a/recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch
 
b/recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch
new file mode 100644
index 000..caab16f
--- /dev/null
+++ 
b/recipes-kernel/zephyr-kernel/files/0001-zephyr-2.5.0-cmake-add-yocto-toolchain.patch
@@ -0,0 +1,63 @@
+From 511745625637da0effca13c5489a392e15d32271 Mon Sep 17 00:00:00 2001
+From: Naveen Saini 
+Date: Tue, 31 Mar 2020 13:22:17 +0800
+Subject: [PATCH] cmake: add yocto toolchain
+
+Upstream status: inappropriate [OE specific]
+
+Signed-off-by: Naveen Saini 
+---
+ cmake/compiler/gcc/target.cmake |  7 ---
+ cmake/toolchain/yocto/generic.cmake | 13 +
+ cmake/toolchain/yocto/target.cmake  |  1 +
+ 3 files changed, 14 insertions(+), 7 deletions(-)
+ create mode 100644 cmake/toolchain/yocto/generic.cmake
+ create mode 100644 cmake/toolchain/yocto/target.cmake
+
+diff --git a/cmake/compiler/gcc/target.cmake b/cmake/compiler/gcc/target.cmake
+index 401cc28db8..5a026f4559 100644
+--- a/cmake/compiler/gc

Re: [yocto] [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add OpenThread add module to build

2021-06-10 Thread Naveen Saini


> -Original Message-
> From: 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 Schmidt
> 
> Subject: [yocto] [meta-zephyr][PATCH v2 1/2] zephyr-kernel: Add
> OpenThread add module to build
> 
> From: Stefan Schmidt 
> 
> 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 
> ---
>  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


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53832): https://lists.yoctoproject.org/g/yocto/message/53832
Mute This Topic: https://lists.yoctoproject.org/mt/83440062/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][PATCHv2 1/5] zephyr-kernel: Clone mbedtls

2021-06-08 Thread Naveen Saini
Made few changes in this patch. Re-sent patchset including some additional 
patches.

Regards,
Naveen

> -Original Message-
> From: Amit Kucheria 
> Sent: Tuesday, June 8, 2021 7:11 PM
> To: Saini, Naveen Kumar ;
> amit.kuche...@verdurent.com; yocto@lists.yoctoproject.org; Wojciech
> Zmuda ; Andrei Gherzan
> 
> Subject: RE: [meta-zephyr][PATCHv2 1/5] zephyr-kernel: Clone mbedtls
> 
> Hi Naveen,
> 
> I'll take a look with the specific revision ID mentioned. I don't see a build
> failure here locally.
> 
> On a related note, since 2.6 is now released, should we just focus on getting
> all this working on 2.6 (assuming you'll move meta-zephyr to it soon)?
> 
> Regards,
> Amit
> 
> > -Original Message-
> > From: Saini, Naveen Kumar [mailto:naveen.kumar.sa...@intel.com]
> > Sent: 08 June 2021 16:10
> > To: amit.kuche...@verdurent.com; yocto@lists.yoctoproject.org;
> > Wojciech Zmuda ; Andrei Gherzan
> > 
> > Cc: Amit Kucheria 
> > Subject: RE: [meta-zephyr][PATCHv2 1/5] zephyr-kernel: Clone mbedtls
> >
> > Build failing:
> >
> > Could not open 'poky/build-zephyr/tmp-newlib/work/armv7m-yocto-
> > eabi/zephyr-mqtt-publisher/2.5.0+gitAUTOINC+fe7c2efca8_c3bd2094f9-
> > r0/git/' (in 'osource "$(ZEPHYR_MBEDTLS_KCONFIG)"') (EISDIR: Is a
> > directory)
> >
> >
> >
> > To fix, can you try following revision for mbedtls.
> > - name: mbedtls
> >   revision: 24d84ecff195fb15c889d9046e44e4804d626c67
> > https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-
> > v2.5.0/west.yml#L94
> >
> > Regards,
> > Naveen
> >
> >
> >
> > > -Original Message-
> > > From: amit.kuche...@verdurent.com 
> > > Sent: Monday, June 7, 2021 2:01 PM
> > > To: yocto@lists.yoctoproject.org; wojciech.zm...@huawei.com;
> > > andrei.gher...@huawei.com; Saini, Naveen Kumar
> > > 
> > > Cc: Amit Kucheria 
> > > Subject: [meta-zephyr][PATCHv2 1/5] zephyr-kernel: Clone mbedtls
> > >
> > > From: Amit Kucheria 
> > >
> > > MBed TLS is a library that implements cryptographic primitives and
> > > SSL/TLS and DTLS protocols that are needed in secure network
> > communications.
> > >
> > > Add it to the kernel include files to build and link against
> > > applications that need mbedtls.
> > >
> > > Signed-off-by: Amit Kucheria 
> > > ---
> > >  recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc| 1 +
> > >  recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.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 330fe59aebe5..c9acbbbc3645 100644
> > > --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> > > +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> > > @@ -28,6 +28,7 @@ ZEPHYR_MODULES = ""
> > >  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_mbedtls = "\;${S}/modules/lib/mbedtls"
> > >  ZEPHYR_MODULES_append_openamp = "\;${S}/modules/lib/open-
> > > amp\;${S}/modules/hal/libmetal"
> > >
> > >  EXTRA_OECMAKE_append = " -
> DZEPHYR_MODULES=${ZEPHYR_MODULES}"
> > > diff --git
> > > a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> > > b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> > > index 5d66f0f3cb5b..3aeb3bf6fc3f 100644
> > > --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> > > +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> > > @@ -6,6 +6,7 @@ SRCREV_stm32 =
> > > "cc8731dba4fd9c57d7fe8ea6149828b89c2bd635"
> > >  SRCREV_open-amp = "de1b85a13032a2de1d8b6695ae5f800b613e739d"
> > >  SRCREV_libmetal = "9d4ee2c3cfd5f49861939447990f3b7d7bf9bf94"
> > >  SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
> > > +SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
> > >
> > >  PV = "2.5.0+git${SRCPV}"
> > >
> > > diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> > > b/recipes- kernel/zephyr-kernel/zephyr-kernel-src.inc
> > > index 1d06d916a1e0..069fa561667c 100644
> > > --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> > > +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> > > @@ -13,6 +13,7 @@ SRC_URI = "\
> > >  git://github.com/zephyrproject-
> > > rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis
> \
> > >  git://github.com/zephyrproject-
> > > rtos/hal_nordic.git;protocol=https;destsuffix=git/modules/hal/nordic
> > > ;n
> > > ame=
> > > nordic \
> > >  git://github.com/zephyrproject-
> > > rtos/hal_stm32.git;protocol=https;destsuffix=git/modules/hal/stm32;n
> > > am
> > > e=
> > > stm32 \
> > > +
> > > + git://github.com/zephyrproject-rtos/mbedtls.git;protocol=https;des
> > > + ts uf fix=git/modules/lib/mbedtls;name=mbedtls \
> > >  git://github.com/zephyrproject-rtos/open-
> > 

[yocto] [meta-zephyr][PATCH 10/10] zephyr-kernel-src: drop 2.4.0 support

2021-06-08 Thread Naveen Saini
v2.6.0 is available now.

Signed-off-by: Naveen Saini 
---
 .../zephyr-kernel/zephyr-kernel-src-2.4.0.inc | 11 ---
 1 file changed, 11 deletions(-)
 delete mode 100644 recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.4.0.inc

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.4.0.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.4.0.inc
deleted file mode 100644
index a2a3770..000
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.4.0.inc
+++ /dev/null
@@ -1,11 +0,0 @@
-SRCREV_FORMAT = "default_cmsis"
-SRCREV_default = "7a3b253ced7333f5c0269387a7f3ed1dee69739d"
-SRCREV_cmsis = "542b2296e6d515b265e25c6b7208e8fea3014f90"
-SRCREV_nordic = "d8a6ea9695ddf792bb18bb6035c13b1daac5d79c"
-SRCREV_stm32 = "f0e11398128ac9abdff713da5d3035e6c96e9b86"
-SRCREV_open-amp = "de1b85a13032a2de1d8b6695ae5f800b613e739d"
-SRCREV_libmetal = "9d4ee2c3cfd5f49861939447990f3b7d7bf9bf94"
-SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
-SRCREV_mbedtls = "aef137b1af8aa7a0f43345c82459254b8832262e"
-
-PV = "2.4.0+git${SRCPV}"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53810): https://lists.yoctoproject.org/g/yocto/message/53810
Mute This Topic: https://lists.yoctoproject.org/mt/83412279/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 09/10] zephyr-kernel-src-2.4.0.inc: add srcrev for mbedtls module

2021-06-08 Thread Naveen Saini
Ref: 
https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.4.0/west.yml#L93

Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.4.0.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.4.0.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.4.0.inc
index d1ef80e..a2a3770 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.4.0.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.4.0.inc
@@ -6,5 +6,6 @@ SRCREV_stm32 = "f0e11398128ac9abdff713da5d3035e6c96e9b86"
 SRCREV_open-amp = "de1b85a13032a2de1d8b6695ae5f800b613e739d"
 SRCREV_libmetal = "9d4ee2c3cfd5f49861939447990f3b7d7bf9bf94"
 SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
+SRCREV_mbedtls = "aef137b1af8aa7a0f43345c82459254b8832262e"
 
 PV = "2.4.0+git${SRCPV}"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53809): https://lists.yoctoproject.org/g/yocto/message/53809
Mute This Topic: https://lists.yoctoproject.org/mt/83412278/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 08/10] zephyr-kernel-src-2.6.0.inc: add srcrev for mbedtls module

2021-06-08 Thread Naveen Saini
Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc | 1 +
 1 file changed, 1 insertion(+)

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 7ef1697..8475b5b 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
@@ -6,6 +6,7 @@ SRCREV_stm32 = "f8ff8d25aa0a9e65948040c7b47ec67f3fa300df"
 SRCREV_open-amp = "6010f0523cbc75f551d9256cf782f173177acdef"
 SRCREV_libmetal = "39d049d4ae68e6f6d595fce7de1dcfc1024fb4eb"
 SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
+SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
 
 PV = "2.6.0+git${SRCPV}"
 
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53808): https://lists.yoctoproject.org/g/yocto/message/53808
Mute This Topic: https://lists.yoctoproject.org/mt/83412277/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 07/10] zephyr-kernel-src set default preferred version to 2.6.0

2021-06-08 Thread Naveen Saini
From: Wojciech Zmuda 

Signed-off-by: Wojciech Zmuda 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index 01c87c4..5e43583 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -22,5 +22,5 @@ SRC_URI = "\
 S = "${WORKDIR}/git"
 
 # Default to a stable version
-PREFERRED_VERSION_zephyr-kernel ??= "2.5.0"
+PREFERRED_VERSION_zephyr-kernel ??= "2.6.0"
 include zephyr-kernel-src-${PREFERRED_VERSION_zephyr-kernel}.inc
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53807): https://lists.yoctoproject.org/g/yocto/message/53807
Mute This Topic: https://lists.yoctoproject.org/mt/83412276/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 06/10] zephyr-kernel-src: add 2.6.0 release

2021-06-08 Thread Naveen Saini
From: Wojciech Zmuda 

Zephyr 2.6.0 release notes:
  https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.6.0

Update the following submodules to most recent revisions:
- hal_nordic:
nrfx_dppi: Fix variable used in logging function
- hal_stm32:
dts/st: use a pull-down for SPI SCK pin
- openamp:
lib: update open-amp lib to release v2021.04.0
- libmetal:
lib: update libmetal to release v2021.04.0 + VERSION path fix

Signed-off-by: Wojciech Zmuda 
Signed-off-by: Naveen Saini 
---
 .../zephyr-kernel/zephyr-kernel-src-2.6.0.inc   | 13 +
 1 file changed, 13 insertions(+)
 create mode 100644 recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc

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
new file mode 100644
index 000..7ef1697
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0.inc
@@ -0,0 +1,13 @@
+SRCREV_FORMAT = "default_cmsis"
+SRCREV_default = "79a6c07536bc14583198f8e3555df6134d8822cf"
+SRCREV_cmsis = "c3bd2094f92d574377f7af2aec147ae181aa5f8e"
+SRCREV_nordic = "574493fe29c79140df4827ab5d4a23df79d03681"
+SRCREV_stm32 = "f8ff8d25aa0a9e65948040c7b47ec67f3fa300df"
+SRCREV_open-amp = "6010f0523cbc75f551d9256cf782f173177acdef"
+SRCREV_libmetal = "39d049d4ae68e6f6d595fce7de1dcfc1024fb4eb"
+SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
+
+PV = "2.6.0+git${SRCPV}"
+
+SRC_URI_append = " 
file://0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch \
+"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53806): https://lists.yoctoproject.org/g/yocto/message/53806
Mute This Topic: https://lists.yoctoproject.org/mt/83412274/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 02/10] zephyr-echo-client: Add recipe for echo client

2021-06-08 Thread Naveen Saini
From: Amit Kucheria 

This sample application provides an example of using the the MBEDTLS library.

Signed-off-by: Amit Kucheria 
Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-echo-client.bb | 5 +
 1 file changed, 5 insertions(+)
 create mode 100644 recipes-kernel/zephyr-kernel/zephyr-echo-client.bb

diff --git a/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb 
b/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb
new file mode 100644
index 000..c17e1e7
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-echo-client.bb
@@ -0,0 +1,5 @@
+include zephyr-sample.inc
+
+ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/echo_client"
+
+ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53802): https://lists.yoctoproject.org/g/yocto/message/53802
Mute This Topic: https://lists.yoctoproject.org/mt/83412270/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 05/10] zephyr-mqtt-publisher: Add recipe for mqtt publisher

2021-06-08 Thread Naveen Saini
From: Amit Kucheria 

This sample application provides an example of using the the MBEDTLS library.

Signed-off-by: Amit Kucheria 
Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb | 5 +
 1 file changed, 5 insertions(+)
 create mode 100644 recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb

diff --git a/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb 
b/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb
new file mode 100644
index 000..b4e3067
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-mqtt-publisher.bb
@@ -0,0 +1,5 @@
+include zephyr-sample.inc
+
+ZEPHYR_SRC_DIR = "${S}/samples/net/mqtt_publisher"
+
+ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53805): https://lists.yoctoproject.org/g/yocto/message/53805
Mute This Topic: https://lists.yoctoproject.org/mt/83412273/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 01/10] zephyr-kernel: Clone mbedtls

2021-06-08 Thread Naveen Saini
From: Amit Kucheria 

MBed TLS is a library that implements cryptographic primitives and
SSL/TLS and DTLS protocols that are needed in secure network
communications.

Add it to the kernel include files to build and link against
applications that need mbedtls.

Signed-off-by: Amit Kucheria 
Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc | 1 +
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
index 5d66f0f..545197f 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
@@ -6,6 +6,7 @@ SRCREV_stm32 = "cc8731dba4fd9c57d7fe8ea6149828b89c2bd635"
 SRCREV_open-amp = "de1b85a13032a2de1d8b6695ae5f800b613e739d"
 SRCREV_libmetal = "9d4ee2c3cfd5f49861939447990f3b7d7bf9bf94"
 SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
+SRCREV_mbedtls = "24d84ecff195fb15c889d9046e44e4804d626c67"
 
 PV = "2.5.0+git${SRCPV}"
 
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index b3b9565..01c87c4 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -13,6 +13,7 @@ SRC_URI = "\
 
git://github.com/zephyrproject-rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis
 \
 
git://github.com/zephyrproject-rtos/hal_nordic.git;protocol=https;destsuffix=git/modules/hal/nordic;name=nordic
 \
 
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/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
 \
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53801): https://lists.yoctoproject.org/g/yocto/message/53801
Mute This Topic: https://lists.yoctoproject.org/mt/83412269/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 03/10] zephyr-http-client: Add recipe for http client

2021-06-08 Thread Naveen Saini
From: Amit Kucheria 

This sample application provides an example of using the the MBEDTLS library.

Signed-off-by: Amit Kucheria 
Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-http-client.bb | 5 +
 1 file changed, 5 insertions(+)
 create mode 100644 recipes-kernel/zephyr-kernel/zephyr-http-client.bb

diff --git a/recipes-kernel/zephyr-kernel/zephyr-http-client.bb 
b/recipes-kernel/zephyr-kernel/zephyr-http-client.bb
new file mode 100644
index 000..cf3c322
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-http-client.bb
@@ -0,0 +1,5 @@
+include zephyr-sample.inc
+
+ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/http_client"
+
+ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53803): https://lists.yoctoproject.org/g/yocto/message/53803
Mute This Topic: https://lists.yoctoproject.org/mt/83412271/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 04/10] zephyr-websocket-client: Add recipe for websocket client

2021-06-08 Thread Naveen Saini
From: Amit Kucheria 

This sample application provides an example of using the the MBEDTLS library.

Signed-off-by: Amit Kucheria 
Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb | 5 +
 1 file changed, 5 insertions(+)
 create mode 100644 recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb

diff --git a/recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb 
b/recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb
new file mode 100644
index 000..428f75e
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-websocket-client.bb
@@ -0,0 +1,5 @@
+include zephyr-sample.inc
+
+ZEPHYR_SRC_DIR = "${S}/samples/net/sockets/websocket_client"
+
+ZEPHYR_MODULES_append = "\;${S}/modules/lib/mbedtls"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53804): https://lists.yoctoproject.org/g/yocto/message/53804
Mute This Topic: https://lists.yoctoproject.org/mt/83412272/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][PATCHv2 1/5] zephyr-kernel: Clone mbedtls

2021-06-08 Thread Naveen Saini
Build failing:

Could not open 
'poky/build-zephyr/tmp-newlib/work/armv7m-yocto-eabi/zephyr-mqtt-publisher/2.5.0+gitAUTOINC+fe7c2efca8_c3bd2094f9-r0/git/'
 (in 'osource "$(ZEPHYR_MBEDTLS_KCONFIG)"') (EISDIR: Is a directory)



To fix, can you try following revision for mbedtls.
- name: mbedtls
  revision: 24d84ecff195fb15c889d9046e44e4804d626c67
https://github.com/zephyrproject-rtos/zephyr/blob/zephyr-v2.5.0/west.yml#L94

Regards,
Naveen



> -Original Message-
> From: amit.kuche...@verdurent.com 
> Sent: Monday, June 7, 2021 2:01 PM
> To: yocto@lists.yoctoproject.org; wojciech.zm...@huawei.com;
> andrei.gher...@huawei.com; Saini, Naveen Kumar
> 
> Cc: Amit Kucheria 
> Subject: [meta-zephyr][PATCHv2 1/5] zephyr-kernel: Clone mbedtls
> 
> From: Amit Kucheria 
> 
> MBed TLS is a library that implements cryptographic primitives and SSL/TLS
> and DTLS protocols that are needed in secure network communications.
> 
> Add it to the kernel include files to build and link against applications that
> need mbedtls.
> 
> Signed-off-by: Amit Kucheria 
> ---
>  recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc| 1 +
>  recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.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 330fe59aebe5..c9acbbbc3645 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> @@ -28,6 +28,7 @@ ZEPHYR_MODULES = ""
>  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_mbedtls = "\;${S}/modules/lib/mbedtls"
>  ZEPHYR_MODULES_append_openamp = "\;${S}/modules/lib/open-
> amp\;${S}/modules/hal/libmetal"
> 
>  EXTRA_OECMAKE_append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}"
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> index 5d66f0f3cb5b..3aeb3bf6fc3f 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> @@ -6,6 +6,7 @@ SRCREV_stm32 =
> "cc8731dba4fd9c57d7fe8ea6149828b89c2bd635"
>  SRCREV_open-amp = "de1b85a13032a2de1d8b6695ae5f800b613e739d"
>  SRCREV_libmetal = "9d4ee2c3cfd5f49861939447990f3b7d7bf9bf94"
>  SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
> +SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
> 
>  PV = "2.5.0+git${SRCPV}"
> 
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/recipes-
> kernel/zephyr-kernel/zephyr-kernel-src.inc
> index 1d06d916a1e0..069fa561667c 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> @@ -13,6 +13,7 @@ SRC_URI = "\
>  git://github.com/zephyrproject-
> rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis \
>  git://github.com/zephyrproject-
> rtos/hal_nordic.git;protocol=https;destsuffix=git/modules/hal/nordic;name=
> nordic \
>  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;destsuf
> + fix=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/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 \
> --
> 2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53788): https://lists.yoctoproject.org/g/yocto/message/53788
Mute This Topic: https://lists.yoctoproject.org/mt/83364119/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][PATCHv2 1/5] zephyr-kernel: Clone mbedtls

2021-06-08 Thread Naveen Saini


> -Original Message-
> From: amit.kuche...@verdurent.com 
> Sent: Monday, June 7, 2021 2:01 PM
> To: yocto@lists.yoctoproject.org; wojciech.zm...@huawei.com;
> andrei.gher...@huawei.com; Saini, Naveen Kumar
> 
> Cc: Amit Kucheria 
> Subject: [meta-zephyr][PATCHv2 1/5] zephyr-kernel: Clone mbedtls
> 
> From: Amit Kucheria 
> 
> MBed TLS is a library that implements cryptographic primitives and SSL/TLS
> and DTLS protocols that are needed in secure network communications.
> 
> Add it to the kernel include files to build and link against applications that
> need mbedtls.
> 
> Signed-off-by: Amit Kucheria 
> ---
>  recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc| 1 +
>  recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.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 330fe59aebe5..c9acbbbc3645 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> @@ -28,6 +28,7 @@ ZEPHYR_MODULES = ""
>  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_mbedtls = "\;${S}/modules/lib/mbedtls"

Why override used here? I can see all new samples already adding mbedtls to 
ZEPHYR_MODULES

>  ZEPHYR_MODULES_append_openamp = "\;${S}/modules/lib/open-
> amp\;${S}/modules/hal/libmetal"
> 
>  EXTRA_OECMAKE_append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}"
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> index 5d66f0f3cb5b..3aeb3bf6fc3f 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
> @@ -6,6 +6,7 @@ SRCREV_stm32 =
> "cc8731dba4fd9c57d7fe8ea6149828b89c2bd635"
>  SRCREV_open-amp = "de1b85a13032a2de1d8b6695ae5f800b613e739d"
>  SRCREV_libmetal = "9d4ee2c3cfd5f49861939447990f3b7d7bf9bf94"
>  SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
> +SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
> 
>  PV = "2.5.0+git${SRCPV}"
> 
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/recipes-
> kernel/zephyr-kernel/zephyr-kernel-src.inc
> index 1d06d916a1e0..069fa561667c 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> @@ -13,6 +13,7 @@ SRC_URI = "\
>  git://github.com/zephyrproject-
> rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis \
>  git://github.com/zephyrproject-
> rtos/hal_nordic.git;protocol=https;destsuffix=git/modules/hal/nordic;name=
> nordic \
>  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;destsuf
> + fix=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/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 \
> --
> 2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53787): https://lists.yoctoproject.org/g/yocto/message/53787
Mute This Topic: https://lists.yoctoproject.org/mt/83364119/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][hardknott][PATCH 4/4] acrn.conf: drop acrn machine configuration

2021-05-28 Thread Naveen Saini
zephyr can be build for 'acrn' with following configuration:

MACHINE = "intel-x86-64"
ZEPHYR_BOARD = "acrn"

Signed-off-by: Naveen Saini 
---
 conf/machine/acrn.conf | 9 -
 1 file changed, 9 deletions(-)
 delete mode 100644 conf/machine/acrn.conf

diff --git a/conf/machine/acrn.conf b/conf/machine/acrn.conf
deleted file mode 100644
index c044933..000
--- a/conf/machine/acrn.conf
+++ /dev/null
@@ -1,9 +0,0 @@
-#@TYPE: Machine
-#@NAME: acrn
-#@DESCRIPTION: Machine for Zephyr BOARD acrn
-
-require conf/machine/include/qemu.inc
-require conf/machine/include/tune-corei7-common.inc
-ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
-
-ARCH_acrn = "x86"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53685): https://lists.yoctoproject.org/g/yocto/message/53685
Mute This Topic: https://lists.yoctoproject.org/mt/83145039/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][hardknott][PATCH 2/4] intel-x86-64.conf: add common MACHINE for x86 (64-bit) BOARDS

2021-05-28 Thread Naveen Saini
User need to specify board value to ZEPHYR_BOARD in local.conf
ZEPHYR_BOARD = "ehl_crb"

By default it set to Elkhart Lake CRB 'ehl_crb'

Currently 64-bit supported boards:
* up_squared
* ehl_crb_sbl
* ehl_crb
* acrn
* acrn_ehl_crb

Ref:
https://docs.zephyrproject.org/latest/boards/x86/index.html

Signed-off-by: Naveen Saini 
---
 conf/machine/include/tune-corei7-common.inc |  3 +++
 conf/machine/intel-x86-64.conf  | 14 ++
 2 files changed, 17 insertions(+)
 create mode 100644 conf/machine/intel-x86-64.conf

diff --git a/conf/machine/include/tune-corei7-common.inc 
b/conf/machine/include/tune-corei7-common.inc
index 7ad9516..509d190 100644
--- a/conf/machine/include/tune-corei7-common.inc
+++ b/conf/machine/include/tune-corei7-common.inc
@@ -1,3 +1,6 @@
 DEFAULTTUNE ?= "corei7-64"
 require conf/machine/include/tune-corei7.inc
 require conf/machine/include/x86-base.inc
+
+# Add x86 to MACHINEOVERRIDE
+MACHINEOVERRIDES =. "x86:"
diff --git a/conf/machine/intel-x86-64.conf b/conf/machine/intel-x86-64.conf
new file mode 100644
index 000..2935cff
--- /dev/null
+++ b/conf/machine/intel-x86-64.conf
@@ -0,0 +1,14 @@
+#@TYPE: Machine
+#@NAME: intel-x86-64
+#@DESCRIPTION: common MACHINE for 64-bit x86 boards. User must set 
${ZEPHYR_BOARD}. By default is set to 'ech_crb' board.
+
+require conf/machine/include/tune-corei7-common.inc
+
+ARCH_intel-x86-64 = "x86"
+
+# Supported Boards:
+# ZEPHYR_BOARD ?= "acrn"
+# ZEPHYR_BOARD ?= "acrn_ehl_crb"
+# ZEPHYR_BOARD ?= "up_squared"
+# ZEPHYR_BOARD ?= "ehl_crb_sbl"
+ZEPHYR_BOARD ?= "ehl_crb"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53682): https://lists.yoctoproject.org/g/yocto/message/53682
Mute This Topic: https://lists.yoctoproject.org/mt/83145036/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][hardknott][PATCH 3/4] intel-x86-32.conf: add common MACHINE for x86 (32-bit) BOARDS

2021-05-28 Thread Naveen Saini
User need to specify board value to ZEPHYR_BOARD in local.conf
ZEPHYR_BOARD = "minnowboard"

By default it set to MinnowBoard Max 'minnowboard'

Currently 32-bit supported boards:
* up_squared_32
* minnowboard

Ref:
https://docs.zephyrproject.org/latest/boards/x86/index.html

Signed-off-by: Naveen Saini 
---
 conf/machine/include/tune-core2-common.inc |  6 ++
 conf/machine/intel-x86-32.conf | 12 
 2 files changed, 18 insertions(+)
 create mode 100644 conf/machine/include/tune-core2-common.inc
 create mode 100644 conf/machine/intel-x86-32.conf

diff --git a/conf/machine/include/tune-core2-common.inc 
b/conf/machine/include/tune-core2-common.inc
new file mode 100644
index 000..012f078
--- /dev/null
+++ b/conf/machine/include/tune-core2-common.inc
@@ -0,0 +1,6 @@
+DEFAULTTUNE ?= "core2-32"
+require conf/machine/include/tune-core2.inc
+require conf/machine/include/x86-base.inc
+
+# Add x86 to MACHINEOVERRIDES
+MACHINEOVERRIDES =. "x86:"
diff --git a/conf/machine/intel-x86-32.conf b/conf/machine/intel-x86-32.conf
new file mode 100644
index 000..06f6da5
--- /dev/null
+++ b/conf/machine/intel-x86-32.conf
@@ -0,0 +1,12 @@
+#@TYPE: Machine
+#@NAME: intel-x86-32
+#@DESCRIPTION: common MACHINE for 32-bit x86 boards. User must set 
${ZEPHYR_BOARD}. By default is set to 'minnowboard' board.
+
+require conf/machine/include/tune-core2-common.inc
+
+ARCH_intel-x86-32 = "x86"
+
+# Supported Boards:
+# ZEPHYR_BOARD ?= "minnowboard"
+# ZEPHYR_BOARD ?= "up_squared_32"
+ZEPHYR_BOARD ?= "minnowboard"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53684): https://lists.yoctoproject.org/g/yocto/message/53684
Mute This Topic: https://lists.yoctoproject.org/mt/83145038/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][hardknott][PATCH 1/4] zephyr-kernel-src: fix efi generation failure for x86 boards

2021-05-28 Thread Naveen Saini
With zephyr v2.5.0, EFI binary support has been added for x86 board (64-bit 
mode).

To achieve this, an python tool[1] has been added to convert zephyr ELF file
into an EFI appliable. But currently this does not work with Yocto
cross-compilation env.
This patch fix this issue and allow to build zephyr.efi

Ref:
[1]https://github.com/zephyrproject-rtos/zephyr/commit/928d31125f0b4eb28fe1cf3f3ad02b0ae071d7fd

Signed-off-by: Naveen Saini 
---
 ...ry-generation-issue-in-cross-compila.patch | 80 +++
 .../zephyr-kernel/zephyr-kernel-src-2.5.0.inc |  3 +
 .../zephyr-kernel/zephyr-kernel-src.inc   |  8 +-
 3 files changed, 87 insertions(+), 4 deletions(-)
 create mode 100644 
recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch

diff --git 
a/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
 
b/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
new file mode 100644
index 000..fd6fc6b
--- /dev/null
+++ 
b/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
@@ -0,0 +1,80 @@
+From cfde3b1018c3151b6cc1fbe3e9e163d0aaf16954 Mon Sep 17 00:00:00 2001
+From: Naveen Saini 
+Date: Tue, 11 May 2021 13:46:39 +0800
+Subject: [PATCH] x86: fix efi binary generation issue in cross compilation env
+
+Set root directory for headers.
+
+Upstream-Status: Inappropriate [Cross-compilation specific]
+
+Signed-off-by: Naveen Saini 
+---
+ arch/x86/zefi/zefi.py| 6 +-
+ boards/x86/ehl_crb/CMakeLists.txt| 1 +
+ boards/x86/qemu_x86/CMakeLists.txt   | 1 +
+ boards/x86/up_squared/CMakeLists.txt | 1 +
+ 4 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/arch/x86/zefi/zefi.py b/arch/x86/zefi/zefi.py
+index d3514391a8..b9eccbfa10 100755
+--- a/arch/x86/zefi/zefi.py
 b/arch/x86/zefi/zefi.py
+@@ -106,7 +106,10 @@ def build_elf(elf_file):
+ #  + We need pic to enforce that the linker adds no relocations
+ #  + UEFI can take interrupts on our stack, so no red zone
+ #  + UEFI API assumes 16-bit wchar_t
+-cmd = [args.compiler, "-shared", "-Wall", "-Werror", "-I.",
++
++#  Pass --sysroot path for cross compilation
++sysrootarg = "--sysroot=" + args.sysroot
++cmd = [args.compiler, "-shared", "-Wall", "-Werror", "-I.", sysrootarg,
+ "-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar",
+ "-Wl,-nostdlib", "-T", ldscript, "-o", "zefi.elf", cfile]
+ verbose(" ".join(cmd))
+@@ -145,6 +148,7 @@ def parse_args():
+ parser.add_argument("-o", "--objcopy", required=True, help="objcopy to be 
used")
+ parser.add_argument("-f", "--elf-file", required=True, help="Input file")
+ parser.add_argument("-v", "--verbose", action="store_true", help="Verbose 
output")
++parser.add_argument("-s", "--sysroot", required=True, help="Cross 
compilation --sysroot=path")
+ 
+ return parser.parse_args()
+ 
+diff --git a/boards/x86/ehl_crb/CMakeLists.txt 
b/boards/x86/ehl_crb/CMakeLists.txt
+index 0d572eff30..6a228107dc 100644
+--- a/boards/x86/ehl_crb/CMakeLists.txt
 b/boards/x86/ehl_crb/CMakeLists.txt
+@@ -5,6 +5,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -c ${CMAKE_C_COMPILER}
+   -o ${CMAKE_OBJCOPY}
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+diff --git a/boards/x86/qemu_x86/CMakeLists.txt 
b/boards/x86/qemu_x86/CMakeLists.txt
+index 1131a5c7ce..489f17192b 100644
+--- a/boards/x86/qemu_x86/CMakeLists.txt
 b/boards/x86/qemu_x86/CMakeLists.txt
+@@ -4,6 +4,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -c ${CMAKE_C_COMPILER}
+   -o ${CMAKE_OBJCOPY}
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+diff --git a/boards/x86/up_squared/CMakeLists.txt 
b/boards/x86/up_squared/CMakeLists.txt
+index 0eaa9753fc..2e8ce7cfbc 100644
+--- a/boards/x86/up_squared/CMakeLists.txt
 b/boards/x86/up_squared/CMakeLists.txt
+@@ -5,6 +5,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -c ${CMAKE_C_COMPILER}
+   -o ${CMAKE_OBJCOPY}
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+-- 
+2.17.1
+
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
index 6350d86..5d66f0f 100644
--- a/recipe

Re: [yocto] [meta-zephyr][PATCH 1/5] zephyr-kernel: Clone mbedtls

2021-05-27 Thread Naveen Saini
V2.6.0-rc1 patch is not merged as it is pre-release. Lets wait for stable 
release.
Could you please rebase these patches for v2.5.0 latest master ?

Regards,
Naveen

> -Original Message-
> From: amit.kuche...@verdurent.com 
> Sent: Wednesday, May 26, 2021 11:36 PM
> To: yocto@lists.yoctoproject.org; wojciech.zm...@huawei.com;
> andrei.gher...@huawei.com; Saini, Naveen Kumar
> ; zbigniew.bo...@huawei.com
> Cc: Amit Kucheria 
> Subject: [meta-zephyr][PATCH 1/5] zephyr-kernel: Clone mbedtls
> 
> From: Amit Kucheria 
> 
> MBed TLS is a library that implements cryptographic primitives and SSL/TLS
> and DTLS protocols that are needed in secure network communications.
> 
> Add it to the kernel include files to build and link against applications that
> need mbedtls.
> 
> Signed-off-by: Amit Kucheria 
> ---
>  recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc| 1 +
>  recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0-rc1.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 330fe59aebe5..c9acbbbc3645 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
> @@ -28,6 +28,7 @@ ZEPHYR_MODULES = ""
>  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_mbedtls = "\;${S}/modules/lib/mbedtls"
>  ZEPHYR_MODULES_append_openamp = "\;${S}/modules/lib/open-
> amp\;${S}/modules/hal/libmetal"
> 
>  EXTRA_OECMAKE_append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}"
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0-rc1.inc
> b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0-rc1.inc
> index 6ea15931607d..a0e358ecd4f4 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0-rc1.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.6.0-rc1.inc
> @@ -6,5 +6,6 @@ SRCREV_stm32 =
> "f8ff8d25aa0a9e65948040c7b47ec67f3fa300df"
>  SRCREV_open-amp = "6010f0523cbc75f551d9256cf782f173177acdef"
>  SRCREV_libmetal = "39d049d4ae68e6f6d595fce7de1dcfc1024fb4eb"
>  SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
> +SRCREV_mbedtls = "5765cb7f75a9973ae9232d438e361a9d7bbc49e7"
> 
>  PV = "2.6.0-rc1+git${SRCPV}"
> diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc b/recipes-
> kernel/zephyr-kernel/zephyr-kernel-src.inc
> index 9fc08baaf210..8dcfec6f1f88 100644
> --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> @@ -17,6 +17,7 @@ SRC_URI = "\
>  git://github.com/zephyrproject-
> rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis \
>  git://github.com/zephyrproject-
> rtos/hal_nordic.git;protocol=https;destsuffix=git/modules/hal/nordic;name=
> nordic \
>  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;destsuf
> + fix=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/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 \
> --
> 2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53681): https://lists.yoctoproject.org/g/yocto/message/53681
Mute This Topic: https://lists.yoctoproject.org/mt/83103652/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] zephyrtargetcontrol.py: fix testimage 'testimage_dump_monitor' argument issue

2021-05-25 Thread Naveen Saini
Error log:
Exception: TypeError: __init__() got an unexpected keyword argument 
'testimage_dump_monitor'

Ref:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3acbec85b00d693d2d731bc2b09cc40be1cc68e9

Signed-off-by: Naveen Saini 
---
 lib/oeqa/controllers/zephyrtargetcontrol.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/oeqa/controllers/zephyrtargetcontrol.py 
b/lib/oeqa/controllers/zephyrtargetcontrol.py
index 1dd7fd2..d342314 100644
--- a/lib/oeqa/controllers/zephyrtargetcontrol.py
+++ b/lib/oeqa/controllers/zephyrtargetcontrol.py
@@ -15,7 +15,7 @@ class QemuTargetZephyr(OETarget):
 machine='', rootfs='', tmpdir ='',dir_image ='',display=None,
 kernel='',boottime=60,bootlog='',kvm=False,slirp=False,
 dump_dir='',serial_ports=0,ovmf=None,tmpfsdir='' 
,target_modules_path='',powercontrol_cmd='',powercontrol_extra_args='',
-
serialcontrol_cmd=None,serialcontrol_extra_args='',testimage_dump_target=''):
+
serialcontrol_cmd=None,serialcontrol_extra_args='',testimage_dump_target='',testimage_dump_monitor=''):
 
 timeout =  300
 user = 'root'
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53637): https://lists.yoctoproject.org/g/yocto/message/53637
Mute This Topic: https://lists.yoctoproject.org/mt/83070159/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-dpdk][PATCH] dpdk: fix build with GCC 11

2021-05-23 Thread Naveen Saini
Please send this patch to meta-intel mailing list.


> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Yu, Mingli
> Sent: Thursday, May 20, 2021 3:38 PM
> To: yo...@yoctoproject.org
> Subject: [yocto] [meta-dpdk][PATCH] dpdk: fix build with GCC 11
> 
> From: Mingli Yu 
> 
> Fixes:
>  | In function 'memset',
>  | inlined from 'test_table_stub' at test_table_tables.c:151:4:
>  | /buildarea/tmp/work/intel_x86_64-wrs-linux/dpdk/19.11.5-r0/recipe-
> sysroot/usr/include/bits/string_fortified.h:59:10: error: '__builtin_memset'
> offset [0, 31] is out of the bounds [0, 0] [-Werror=array-bounds]
> 
> Signed-off-by: Mingli Yu 
> ---
>  ...001-test-table-fix-build-with-GCC-11.patch | 56 +++
>  recipes-extended/dpdk/dpdk_19.11.5.bb |  3 +-
>  2 files changed, 58 insertions(+), 1 deletion(-)  create mode 100644 recipes-
> extended/dpdk/dpdk/0001-test-table-fix-build-with-GCC-11.patch
> 
> diff --git a/recipes-extended/dpdk/dpdk/0001-test-table-fix-build-with-GCC-
> 11.patch b/recipes-extended/dpdk/dpdk/0001-test-table-fix-build-with-
> GCC-11.patch
> new file mode 100644
> index 000..4f76290
> --- /dev/null
> +++ b/recipes-extended/dpdk/dpdk/0001-test-table-fix-build-with-GCC-
> 11.p
> +++ atch
> @@ -0,0 +1,56 @@
> +From 33c12ac5ba5f09727c6de807e71403dd260a7bbc Mon Sep 17 00:00:00
> 2001
> +From: Ferruh Yigit 
> +Date: Mon, 17 May 2021 16:57:39 +0100
> +Subject: [PATCH] test/table: fix build with GCC 11
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +Build error:
> +../app/test/test_table_tables.c: In function ‘test_table_stub’:
> +../app/test/test_table_tables.c:31:9:
> + warning: ‘memset’ offset [0, 31] is out of the bounds [0, 0]
> + [-Warray-bounds]
> + memset((uint8_t *)mbuf + sizeof(struct rte_mbuf) + 32, 0, 32); \
> +
> ^~
> ~~~
> +../app/test/test_table_tables.c:151:25:
> + note: in expansion of macro ‘PREPARE_PACKET’
> +  151 | PREPARE_PACKET(mbufs[i], 0xadadadad);
> +  | ^~
> +
> +'key' points to mbuf header + 32 bytes, and memset clears next 32 bytes
> +of 'key', so overall there needs to be 64 bytes after mbuf header.
> +Adding a mbuf size check before memset.
> +
> +The original code has an assumption that mbuf data buffer follows mbuf
> +header, this patch accepts same assumption.
> +
> +Bugzilla ID: 677
> +Fixes: 5205954791cb ("app/test: packet framework unit tests")
> +Cc: sta...@dpdk.org
> +
> +Upstream-Status: Backport
> +[https://github.com/DPDK/dpdk/commit/33c12ac5ba5f09727c6de807e7140
> 3dd26
> +0a7bbc]
> +
> +Signed-off-by: Ferruh Yigit 
> +Signed-off-by: Mingli Yu 
> +---
> + app/test/test_table_tables.c | 3 ++-
> + 1 file changed, 2 insertions(+), 1 deletion(-)
> +
> +diff --git a/app/test/test_table_tables.c
> +b/app/test/test_table_tables.c index 1aa269f95..4ff6ab16a 100644
> +--- a/app/test/test_table_tables.c
>  b/app/test/test_table_tables.c
> +@@ -28,7 +28,8 @@ table_test table_tests[] = {
> + APP_METADATA_OFFSET(0));\
> + key = RTE_MBUF_METADATA_UINT8_PTR(mbuf,
>   \
> + APP_METADATA_OFFSET(32));   \
> +-memset(key, 0, 32); \
> ++if (mbuf->priv_size + mbuf->buf_len >= 64)  \
> ++memset(key, 0, 32); \
> + k32 = (uint32_t *) key; \
> + k32[0] = (value);   \
> + *signature = pipeline_test_hash(key, NULL, 0, 0);
>   \
> +--
> +2.17.1
> +
> diff --git a/recipes-extended/dpdk/dpdk_19.11.5.bb b/recipes-
> extended/dpdk/dpdk_19.11.5.bb
> index 8410c8a..2ae9b43 100644
> --- a/recipes-extended/dpdk/dpdk_19.11.5.bb
> +++ b/recipes-extended/dpdk/dpdk_19.11.5.bb
> @@ -4,7 +4,8 @@ SRC_URI += " \
>  file://dpdk-16.04-add-RTE_KERNELDIR_OUT-to-split-kernel-bu.patch 
> \
>  file://dpdk-16.07-add-sysroot-option-within-app-makefile.patch \
>  file://0001-Starting-from-Linux-5.9-get_user_pages_remote-API-
> do.patch \
> -
> file://usertools-devbind-fix-binding-for-built-in-kernel-dr.patch"
> +
> file://usertools-devbind-fix-binding-for-built-in-kernel-dr.patch \
> +file://0001-test-table-fix-build-with-GCC-11.patch"
> 
> 
>  STABLE = "-stable"
> --
> 2.29.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53620): https://lists.yoctoproject.org/g/yocto/message/53620
Mute This Topic: https://lists.yoctoproject.org/mt/82956852/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][hardknott][PATCH] zephyr-kernel-src: switch from master branch to main

2021-05-21 Thread Naveen Saini
* branch was renamed in upstream repo

It fixes do_fetch failure

Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index 8c987bb..5ee40d4 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -13,7 +13,7 @@ inherit cmake
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
 SRC_URI = "\
-
git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=master;name=default
 \
+
git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=main;name=default
 \
 
git://github.com/zephyrproject-rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis
 \
 
git://github.com/zephyrproject-rtos/hal_nordic.git;protocol=https;destsuffix=git/modules/hal/nordic;name=nordic
 \
 
git://github.com/zephyrproject-rtos/hal_stm32.git;protocol=https;destsuffix=git/modules/hal/stm32;name=stm32
 \
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53615): https://lists.yoctoproject.org/g/yocto/message/53615
Mute This Topic: https://lists.yoctoproject.org/mt/82980643/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] qemu-x86: set new -machine value for QEMU

2021-05-20 Thread Naveen Saini
-machine type=pc-1.3 is deprecated with QEMU 5.1.0

Error:
machine runqemu - ERROR - Failed
to run qemu: qemu-system-i386: unsupported machine type

Signed-off-by: Naveen Saini 
---
 conf/machine/qemu-x86.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/machine/qemu-x86.conf b/conf/machine/qemu-x86.conf
index ce79b5b..85b3f0d 100644
--- a/conf/machine/qemu-x86.conf
+++ b/conf/machine/qemu-x86.conf
@@ -9,7 +9,7 @@ ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
 
 # For runqemu
 QB_SYSTEM_NAME = "qemu-system-i386"
-QB_MACHINE = "-machine type=pc-1.3"
+QB_MACHINE = "-machine type=pc-q35-2.10"
 QB_OPT_APPEND = "-nographic -no-acpi"
 QB_CPU_x86 = "-cpu qemu32,+nx,+pae"
 QB_CPU_KVM_x86 = "-cpu kvm32"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53613): https://lists.yoctoproject.org/g/yocto/message/53613
Mute This Topic: https://lists.yoctoproject.org/mt/82977041/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH v2 0/4] Fix efi generation and add x86 MACHINE confs (cover letter)

2021-05-20 Thread Naveen Saini
(1) zephyr-kernel-src: fix efi generation failure for x86 boards

With zephyr v2.5.0, EFI binary generation support has been added for x86 board 
(64-bit mode).
To achieve this, an python tool[1] has been added to convert zephyr EFL file
into an EFI appliable. But unfortunately at current this does not work with 
Yocto cross-compilation env.
This patch fix this issue and allow to build zephyr.efi for ehl_crb and 
up_squared boards.


(2)
Instead of creating machine configuration for each
supported boards, I would like to have common machine configurations for
supported boards. One for 64-bit (intel-x86-64.conf) and one for 32-bit
(intel-x86-32.conf).

User need to specify board value to ZEPHYR_BOARD in local.conf based on
targeted board i.e
ZEPHYR_BOARD = "ehl_crb"

64-bit supported boards:
* up_squared
* ehl_crb_sbl
* ehl_crb (default)
* acrn
* acrn_ehl_crb

32-bit supported boards:
* up_squared_32
* minnowboard (default)

(3) Dropped acrn MACHINE configuration, which can be build with
MACHINE = "intel-x86-64"
ZEPHYR_BOARD = "acrn"

---
v2:
Fixed build for Zephyr 2.4.0
Dropped ACRN configuration

Naveen Saini (4):
  zephyr-kernel-src: fix efi generation failure for x86 boards
  intel-x86-64.conf: add common MACHINE for x86 (64-bit) BOARDS
  intel-x86-32.conf: add common MACHINE for x86 (32-bit) BOARDS
  acrn.conf: drop acrn machine configuration

 conf/machine/acrn.conf|  9 ---
 conf/machine/include/tune-core2-common.inc|  6 ++
 conf/machine/include/tune-corei7-common.inc   |  3 +
 conf/machine/intel-x86-32.conf| 12 +++
 conf/machine/intel-x86-64.conf| 14 
 ...ry-generation-issue-in-cross-compila.patch | 80 +++
 .../zephyr-kernel/zephyr-kernel-src-2.5.0.inc |  3 +
 .../zephyr-kernel/zephyr-kernel-src.inc   |  8 +-
 8 files changed, 122 insertions(+), 13 deletions(-)
 delete mode 100644 conf/machine/acrn.conf
 create mode 100644 conf/machine/include/tune-core2-common.inc
 create mode 100644 conf/machine/intel-x86-32.conf
 create mode 100644 conf/machine/intel-x86-64.conf
 create mode 100644 
recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch

-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53600): https://lists.yoctoproject.org/g/yocto/message/53600
Mute This Topic: https://lists.yoctoproject.org/mt/82960965/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH v2 4/4] acrn.conf: drop acrn machine configuration

2021-05-20 Thread Naveen Saini
zephyr can be build for 'acrn' with following configuration:

MACHINE = "intel-x86-64"
ZEPHYR_BOARD = "acrn"

Signed-off-by: Naveen Saini 
---
 conf/machine/acrn.conf | 9 -
 1 file changed, 9 deletions(-)
 delete mode 100644 conf/machine/acrn.conf

diff --git a/conf/machine/acrn.conf b/conf/machine/acrn.conf
deleted file mode 100644
index c044933..000
--- a/conf/machine/acrn.conf
+++ /dev/null
@@ -1,9 +0,0 @@
-#@TYPE: Machine
-#@NAME: acrn
-#@DESCRIPTION: Machine for Zephyr BOARD acrn
-
-require conf/machine/include/qemu.inc
-require conf/machine/include/tune-corei7-common.inc
-ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
-
-ARCH_acrn = "x86"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53604): https://lists.yoctoproject.org/g/yocto/message/53604
Mute This Topic: https://lists.yoctoproject.org/mt/82960969/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH v2 3/4] intel-x86-32.conf: add common MACHINE for x86 (32-bit) BOARDS

2021-05-20 Thread Naveen Saini
User need to specify board value to ZEPHYR_BOARD in local.conf
ZEPHYR_BOARD = "minnowboard"

By default it set to MinnowBoard Max 'minnowboard'

Currently 32-bit supported boards:
* up_squared_32
* minnowboard

Ref:
https://docs.zephyrproject.org/latest/boards/x86/index.html

Signed-off-by: Naveen Saini 
---
 conf/machine/include/tune-core2-common.inc |  6 ++
 conf/machine/intel-x86-32.conf | 12 
 2 files changed, 18 insertions(+)
 create mode 100644 conf/machine/include/tune-core2-common.inc
 create mode 100644 conf/machine/intel-x86-32.conf

diff --git a/conf/machine/include/tune-core2-common.inc 
b/conf/machine/include/tune-core2-common.inc
new file mode 100644
index 000..012f078
--- /dev/null
+++ b/conf/machine/include/tune-core2-common.inc
@@ -0,0 +1,6 @@
+DEFAULTTUNE ?= "core2-32"
+require conf/machine/include/tune-core2.inc
+require conf/machine/include/x86-base.inc
+
+# Add x86 to MACHINEOVERRIDES
+MACHINEOVERRIDES =. "x86:"
diff --git a/conf/machine/intel-x86-32.conf b/conf/machine/intel-x86-32.conf
new file mode 100644
index 000..06f6da5
--- /dev/null
+++ b/conf/machine/intel-x86-32.conf
@@ -0,0 +1,12 @@
+#@TYPE: Machine
+#@NAME: intel-x86-32
+#@DESCRIPTION: common MACHINE for 32-bit x86 boards. User must set 
${ZEPHYR_BOARD}. By default is set to 'minnowboard' board.
+
+require conf/machine/include/tune-core2-common.inc
+
+ARCH_intel-x86-32 = "x86"
+
+# Supported Boards:
+# ZEPHYR_BOARD ?= "minnowboard"
+# ZEPHYR_BOARD ?= "up_squared_32"
+ZEPHYR_BOARD ?= "minnowboard"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53603): https://lists.yoctoproject.org/g/yocto/message/53603
Mute This Topic: https://lists.yoctoproject.org/mt/82960968/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH v2 1/4] zephyr-kernel-src: fix efi generation failure for x86 boards

2021-05-20 Thread Naveen Saini
With zephyr v2.5.0, EFI binary support has been added for x86 board (64-bit 
mode).

To achieve this, an python tool[1] has been added to convert zephyr ELF file
into an EFI appliable. But currently this does not work with Yocto
cross-compilation env.
This patch fix this issue and allow to build zephyr.efi

Ref:
[1]https://github.com/zephyrproject-rtos/zephyr/commit/928d31125f0b4eb28fe1cf3f3ad02b0ae071d7fd

Signed-off-by: Naveen Saini 
---
 ...ry-generation-issue-in-cross-compila.patch | 80 +++
 .../zephyr-kernel/zephyr-kernel-src-2.5.0.inc |  3 +
 .../zephyr-kernel/zephyr-kernel-src.inc   |  8 +-
 3 files changed, 87 insertions(+), 4 deletions(-)
 create mode 100644 
recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch

diff --git 
a/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
 
b/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
new file mode 100644
index 000..fd6fc6b
--- /dev/null
+++ 
b/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
@@ -0,0 +1,80 @@
+From cfde3b1018c3151b6cc1fbe3e9e163d0aaf16954 Mon Sep 17 00:00:00 2001
+From: Naveen Saini 
+Date: Tue, 11 May 2021 13:46:39 +0800
+Subject: [PATCH] x86: fix efi binary generation issue in cross compilation env
+
+Set root directory for headers.
+
+Upstream-Status: Inappropriate [Cross-compilation specific]
+
+Signed-off-by: Naveen Saini 
+---
+ arch/x86/zefi/zefi.py| 6 +-
+ boards/x86/ehl_crb/CMakeLists.txt| 1 +
+ boards/x86/qemu_x86/CMakeLists.txt   | 1 +
+ boards/x86/up_squared/CMakeLists.txt | 1 +
+ 4 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/arch/x86/zefi/zefi.py b/arch/x86/zefi/zefi.py
+index d3514391a8..b9eccbfa10 100755
+--- a/arch/x86/zefi/zefi.py
 b/arch/x86/zefi/zefi.py
+@@ -106,7 +106,10 @@ def build_elf(elf_file):
+ #  + We need pic to enforce that the linker adds no relocations
+ #  + UEFI can take interrupts on our stack, so no red zone
+ #  + UEFI API assumes 16-bit wchar_t
+-cmd = [args.compiler, "-shared", "-Wall", "-Werror", "-I.",
++
++#  Pass --sysroot path for cross compilation
++sysrootarg = "--sysroot=" + args.sysroot
++cmd = [args.compiler, "-shared", "-Wall", "-Werror", "-I.", sysrootarg,
+ "-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar",
+ "-Wl,-nostdlib", "-T", ldscript, "-o", "zefi.elf", cfile]
+ verbose(" ".join(cmd))
+@@ -145,6 +148,7 @@ def parse_args():
+ parser.add_argument("-o", "--objcopy", required=True, help="objcopy to be 
used")
+ parser.add_argument("-f", "--elf-file", required=True, help="Input file")
+ parser.add_argument("-v", "--verbose", action="store_true", help="Verbose 
output")
++parser.add_argument("-s", "--sysroot", required=True, help="Cross 
compilation --sysroot=path")
+ 
+ return parser.parse_args()
+ 
+diff --git a/boards/x86/ehl_crb/CMakeLists.txt 
b/boards/x86/ehl_crb/CMakeLists.txt
+index 0d572eff30..6a228107dc 100644
+--- a/boards/x86/ehl_crb/CMakeLists.txt
 b/boards/x86/ehl_crb/CMakeLists.txt
+@@ -5,6 +5,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -c ${CMAKE_C_COMPILER}
+   -o ${CMAKE_OBJCOPY}
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+diff --git a/boards/x86/qemu_x86/CMakeLists.txt 
b/boards/x86/qemu_x86/CMakeLists.txt
+index 1131a5c7ce..489f17192b 100644
+--- a/boards/x86/qemu_x86/CMakeLists.txt
 b/boards/x86/qemu_x86/CMakeLists.txt
+@@ -4,6 +4,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -c ${CMAKE_C_COMPILER}
+   -o ${CMAKE_OBJCOPY}
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+diff --git a/boards/x86/up_squared/CMakeLists.txt 
b/boards/x86/up_squared/CMakeLists.txt
+index 0eaa9753fc..2e8ce7cfbc 100644
+--- a/boards/x86/up_squared/CMakeLists.txt
 b/boards/x86/up_squared/CMakeLists.txt
+@@ -5,6 +5,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -c ${CMAKE_C_COMPILER}
+   -o ${CMAKE_OBJCOPY}
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+-- 
+2.17.1
+
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
index 6350d86..5d66f0f 100644
--- a/recipe

[yocto] [meta-zephyr][PATCH v2 2/4] intel-x86-64.conf: add common MACHINE for x86 (64-bit) BOARDS

2021-05-20 Thread Naveen Saini
User need to specify board value to ZEPHYR_BOARD in local.conf
ZEPHYR_BOARD = "ehl_crb"

By default it set to Elkhart Lake CRB 'ehl_crb'

Currently 64-bit supported boards:
* up_squared
* ehl_crb_sbl
* ehl_crb
* acrn
* acrn_ehl_crb

Ref:
https://docs.zephyrproject.org/latest/boards/x86/index.html

Signed-off-by: Naveen Saini 
---
 conf/machine/include/tune-corei7-common.inc |  3 +++
 conf/machine/intel-x86-64.conf  | 14 ++
 2 files changed, 17 insertions(+)
 create mode 100644 conf/machine/intel-x86-64.conf

diff --git a/conf/machine/include/tune-corei7-common.inc 
b/conf/machine/include/tune-corei7-common.inc
index 7ad9516..509d190 100644
--- a/conf/machine/include/tune-corei7-common.inc
+++ b/conf/machine/include/tune-corei7-common.inc
@@ -1,3 +1,6 @@
 DEFAULTTUNE ?= "corei7-64"
 require conf/machine/include/tune-corei7.inc
 require conf/machine/include/x86-base.inc
+
+# Add x86 to MACHINEOVERRIDE
+MACHINEOVERRIDES =. "x86:"
diff --git a/conf/machine/intel-x86-64.conf b/conf/machine/intel-x86-64.conf
new file mode 100644
index 000..2935cff
--- /dev/null
+++ b/conf/machine/intel-x86-64.conf
@@ -0,0 +1,14 @@
+#@TYPE: Machine
+#@NAME: intel-x86-64
+#@DESCRIPTION: common MACHINE for 64-bit x86 boards. User must set 
${ZEPHYR_BOARD}. By default is set to 'ech_crb' board.
+
+require conf/machine/include/tune-corei7-common.inc
+
+ARCH_intel-x86-64 = "x86"
+
+# Supported Boards:
+# ZEPHYR_BOARD ?= "acrn"
+# ZEPHYR_BOARD ?= "acrn_ehl_crb"
+# ZEPHYR_BOARD ?= "up_squared"
+# ZEPHYR_BOARD ?= "ehl_crb_sbl"
+ZEPHYR_BOARD ?= "ehl_crb"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53602): https://lists.yoctoproject.org/g/yocto/message/53602
Mute This Topic: https://lists.yoctoproject.org/mt/82960967/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][PATCH] qemuzephyrrunner.py: use existing qemu conf file

2021-05-20 Thread Naveen Saini
Hi Jon,

> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Jon Mason
> Sent: Tuesday, May 18, 2021 11:10 PM
> To: yocto@lists.yoctoproject.org
> Subject: [yocto] [meta-zephyr][PATCH] qemuzephyrrunner.py: use existing
> qemu conf file
> 
> Read the generated QEMU conf file, instead of using hard coded values.
> This allows for machines not conforming to the hard coded values to work
> with testimage.
> 
> Signed-off-by: Jon Mason 
> ---
>  conf/machine/qemu-x86.conf |  1 +
>  lib/oeqa/utils/qemuzephyrrunner.py | 89 +--
> ---
>  2 files changed, 77 insertions(+), 13 deletions(-)
> 
> diff --git a/conf/machine/qemu-x86.conf b/conf/machine/qemu-x86.conf
> index d85c22215520..ce79b5b1f510 100644
> --- a/conf/machine/qemu-x86.conf
> +++ b/conf/machine/qemu-x86.conf
> @@ -9,6 +9,7 @@ ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
> 
>  # For runqemu
>  QB_SYSTEM_NAME = "qemu-system-i386"
> +QB_MACHINE = "-machine type=pc-1.3"
[Naveen] ruqemu failed with qemu-x86 machine
runqemu - ERROR - Failed to run qemu: qemu-system-i386: -nographic: unsupported 
machine type

I run in my host :
$  qemu-helper-native/1.0-r1/recipe-sysroot-native/usr/bin/qemu-system-i386 
-machine help

Supported machines are:
microvm  microvm (i386)
pc   Standard PC (i440FX + PIIX, 1996) (alias of pc-i440fx-6.0)
pc-i440fx-6.0Standard PC (i440FX + PIIX, 1996) (default)
pc-i440fx-5.2Standard PC (i440FX + PIIX, 1996)
pc-i440fx-5.1Standard PC (i440FX + PIIX, 1996)
pc-i440fx-5.0Standard PC (i440FX + PIIX, 1996)
pc-i440fx-4.2Standard PC (i440FX + PIIX, 1996)
pc-i440fx-4.1Standard PC (i440FX + PIIX, 1996)
pc-i440fx-4.0Standard PC (i440FX + PIIX, 1996)
pc-i440fx-3.1Standard PC (i440FX + PIIX, 1996)
pc-i440fx-3.0Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.9Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.8Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.7Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.6Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.5Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.4Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.3Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.2Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.12   Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.11   Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.10   Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.1Standard PC (i440FX + PIIX, 1996)
pc-i440fx-2.0Standard PC (i440FX + PIIX, 1996)
pc-i440fx-1.7Standard PC (i440FX + PIIX, 1996)
pc-i440fx-1.6Standard PC (i440FX + PIIX, 1996)
pc-i440fx-1.5Standard PC (i440FX + PIIX, 1996)
pc-i440fx-1.4Standard PC (i440FX + PIIX, 1996)
q35  Standard PC (Q35 + ICH9, 2009) (alias of pc-q35-6.0)
pc-q35-6.0   Standard PC (Q35 + ICH9, 2009)
pc-q35-5.2   Standard PC (Q35 + ICH9, 2009)
pc-q35-5.1   Standard PC (Q35 + ICH9, 2009)
pc-q35-5.0   Standard PC (Q35 + ICH9, 2009)
pc-q35-4.2   Standard PC (Q35 + ICH9, 2009)
pc-q35-4.1   Standard PC (Q35 + ICH9, 2009)
pc-q35-4.0.1 Standard PC (Q35 + ICH9, 2009)
pc-q35-4.0   Standard PC (Q35 + ICH9, 2009)
pc-q35-3.1   Standard PC (Q35 + ICH9, 2009)
pc-q35-3.0   Standard PC (Q35 + ICH9, 2009)
pc-q35-2.9   Standard PC (Q35 + ICH9, 2009)
pc-q35-2.8   Standard PC (Q35 + ICH9, 2009)
pc-q35-2.7   Standard PC (Q35 + ICH9, 2009)
pc-q35-2.6   Standard PC (Q35 + ICH9, 2009)
pc-q35-2.5   Standard PC (Q35 + ICH9, 2009)
pc-q35-2.4   Standard PC (Q35 + ICH9, 2009)
pc-q35-2.12  Standard PC (Q35 + ICH9, 2009)
pc-q35-2.11  Standard PC (Q35 + ICH9, 2009)
pc-q35-2.10  Standard PC (Q35 + ICH9, 2009)
isapcISA-only PC
none empty machine
x-remote Experimental remote machine

  

>  QB_OPT_APPEND = "-nographic -no-acpi"
>  QB_CPU_x86 = "-cpu qemu32,+nx,+pae"
>  QB_CPU_KVM_x86 = "-cpu kvm32"
> diff --git a/lib/oeqa/utils/qemuzephyrrunner.py
> b/lib/oeqa/utils/qemuzephyrrunner.py
> index e8a1bd4544cf..a1ed30be1ca8 100644
> --- a/lib/oeqa/utils/qemuzephyrrunner.py
> +++ b/lib/oeqa/utils/qemuzephyrrunner.py
> @@ -14,6 +14,7 @@ import select
>  import bb
>  import tempfile
>  import sys
> +import configparser
>  from oeqa.utils.qemurunner import QemuRunner
> 
>  class QemuZephyrRunner(QemuRunner):
> @@ -42,6 +43,72 @@ class QemuZephyrRunner(QemuRunner):
>  # 5 minutes timeout...
>  self.endtime = time.time() + 60*5
> 
> +self.qemuboot = False
> +self.d = {'QB_KERNEL_ROOT': '/dev/vda'}
> +
> +def get(self, key):
> +if key in self.d:
> +return self.d.get(key)
> +elif os.getenv(key):
> +return os.getenv(key)
> +else:
> +return ''
> +
> +def set(self, key, 

Re: [yocto] [meta-zephyr][PATCH 2/2] zephyr-kernel-src.inc: set default preferred version to 2.6.0-rc1

2021-05-19 Thread Naveen Saini


> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Jon Mason
> Sent: Wednesday, May 19, 2021 12:00 AM
> To: Zbigniew Bodek 
> Cc: Wojciech Zmuda ; yocto@lists.yoctoproject.org
> Subject: Re: [yocto] [meta-zephyr][PATCH 2/2] zephyr-kernel-src.inc: set
> default preferred version to 2.6.0-rc1
> 
> On Tue, May 18, 2021 at 11:24 AM Zbigniew Bodek
>  wrote:
> >
> > Hello Jon,
> >
> > Thanks for your comment. I will try to answer.
> > This change is to include following bug fix:
> > https://github.com/zephyrproject-rtos/zephyr/pull/33251
> > I can also see we've had multiple RC versions in the past but in principle, 
> > I'm
> not against your suggestion to have master-next, etc. So where should we go
> from here?
> 
> My recommendation would be to pull that patch out and apply it directly on
> top of v2.5.0 (assuming that is feasible).  Maybe even asking the upstream
> zephyr project to port this to v2.5.0 and make it
> v2.5.1 would be the optimal solution.

[Naveen]  We can wait for stable release. If it is urgent, we can carry patches 
for bug fixes,  in case upstream does not give dot release !

> As far as a master-next branch, that would be up to Naveen.
> 
> >
> > Kind regards
> > Zbigniew
> >
> > -Original Message-
> > From: Jon Mason [mailto:jdma...@kudzu.us]
> > Sent: 18 May, 2021 17:17
> > To: Wojciech Zmuda 
> > Cc: yocto@lists.yoctoproject.org; Zbigniew Bodek
> > 
> > Subject: Re: [yocto] [meta-zephyr][PATCH 2/2] zephyr-kernel-src.inc:
> > set default preferred version to 2.6.0-rc1
> >
> > On Tue, May 18, 2021 at 8:30 AM Wojciech Zmuda 
> wrote:
> > >
> > > From: Zbigniew Bodek 
> > >
> > > Signed-off-by: Zbigniew Bodek 
> >
> > Do we really want to have Zephyr on a release candidate?  IMHO, we
> should never be doing this, as we should want the kernel in meta-zephyr to
> be as stable as possible.  If this is really desired, perhaps a master-next
> branch for things like this.
> >
> > Thanks,
> > Jon
> >
> > > ---
> > >  recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> > > b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> > > index 5ee40d4..9fc08ba 100644
> > > --- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> > > +++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
> > > @@ -2,7 +2,7 @@ LICENSE = "Apache-2.0"
> > >  LIC_FILES_CHKSUM =
> "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc"
> > >
> > >  # Default to a stable version
> > > -PREFERRED_VERSION_zephyr-kernel ??= "2.5.0"
> > > +PREFERRED_VERSION_zephyr-kernel ??= "2.6.0-rc1"
> > >  include zephyr-kernel-src-${PREFERRED_VERSION_zephyr-kernel}.inc
> > >
> > >  inherit cmake
> > > --
> > > 2.25.1
> > >
> > >
> > >
> > >

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53576): https://lists.yoctoproject.org/g/yocto/message/53576
Mute This Topic: https://lists.yoctoproject.org/mt/82910264/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][PATCH 2/2] nrf52840dk_nrf52840.conf: Add nRF52840 DK support

2021-05-18 Thread Naveen Saini
So far, MACHINE configurations are named using '-' instead of '_' . Could you 
use change it ?

Regards,
Naveen

> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Wojciech Zmuda
> Sent: Tuesday, May 18, 2021 7:28 PM
> To: yocto@lists.yoctoproject.org
> Cc: Wojciech Zmuda 
> Subject: [yocto] [meta-zephyr][PATCH 2/2] nrf52840dk_nrf52840.conf: Add
> nRF52840 DK support
> 
> From: Wojciech Zmuda 
> 
> Add support for Nordic Semiconductor nRF52840 Development Kit board.
> 
> This is a generic MACHINE over nRF52 SoC family config plus PyOCD flashing
> ability.
> 
> Signed-off-by: Wojciech Zmuda 
> ---
>  conf/machine/nrf52840dk_nrf52840.conf | 8 
>  1 file changed, 8 insertions(+)
>  create mode 100644 conf/machine/nrf52840dk_nrf52840.conf
> 
> diff --git a/conf/machine/nrf52840dk_nrf52840.conf
> b/conf/machine/nrf52840dk_nrf52840.conf
> new file mode 100644
> index 000..0aa50e0
> --- /dev/null
> +++ b/conf/machine/nrf52840dk_nrf52840.conf
> @@ -0,0 +1,8 @@
> +#@TYPE: Machine
> +#@NAME: nrf52840dk_nrf52840
> +
> +#@DESCRIPTION: Machine configuration for Nordic Semiconductor
> nRF52840 Development Kit.
> +
> +require conf/machine/include/nrf52.inc
> +ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
> +ARCH_nrf52840dk_nrf52840 = "arm"
> --
> 2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53575): https://lists.yoctoproject.org/g/yocto/message/53575
Mute This Topic: https://lists.yoctoproject.org/mt/82909263/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] zephyr-kernel-src: switch from master branch to main

2021-05-17 Thread Naveen Saini
* branch was renamed in upstream repo

It fixes do_fetch failure

Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index 8d5f176..dfc2250 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -13,7 +13,7 @@ inherit cmake
 FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
 
 SRC_URI = "\
-
git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=master;name=default
 \
+
git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=main;name=default
 \
 
git://github.com/zephyrproject-rtos/cmsis.git;protocol=https;destsuffix=git/modules/cmsis;name=cmsis
 \
 
git://github.com/zephyrproject-rtos/hal_nordic.git;protocol=https;destsuffix=git/modules/hal/nordic;name=nordic
 \
 
git://github.com/zephyrproject-rtos/hal_stm32.git;protocol=https;destsuffix=git/modules/hal/stm32;name=stm32
 \
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53532): https://lists.yoctoproject.org/g/yocto/message/53532
Mute This Topic: https://lists.yoctoproject.org/mt/82881426/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 0/3] Fix efi generation and add x86 MACHINE confs (cover letter)

2021-05-11 Thread Naveen Saini
(1) zephyr-kernel-src: fix efi generation failure for x86 boards

With zephyr v2.5.0, EFI binary generation support has been added for x86 board 
(64-bit mode).
To achieve this, an python tool[1] has been added to convert zephyr EFL file
into an EFI appliable. But unfortunately at current this does not work with 
Yocto cross-compilation env.
This patch fix this issue and allow to build zephyr.efi for ehl_crb and 
up_squared boards.


(2)
Instead of creating machine configuration for each
supported boards, I would like to have common machine configurations for
supported boards. One for 64-bit (intel-x86-64.conf) and one for 32-bit
(intel-x86-32.conf).

User need to specify board value to ZEPHYR_BOARD in local.conf based on
targeted board i.e
ZEPHYR_BOARD = "ehl_crb"

64-bit supported boards:
* up_squared
* ehl_crb_sbl
* ehl_crb (default)

32-bit supported boards:
* up_squared_32
* minnowboard (default)



Naveen Saini (3):
  zephyr-kernel-src: fix efi generation failure for x86 boards
  intel-x86-64.conf: add common MACHINE for x86 (64-bit) BOARDS
  intel-x86-32.conf: add common MACHINE for x86 (32-bit) BOARDS

 conf/machine/include/tune-core2-common.inc|  6 ++
 conf/machine/include/tune-corei7-common.inc   |  3 +
 conf/machine/intel-x86-32.conf| 12 +++
 conf/machine/intel-x86-64.conf| 12 +++
 ...ry-generation-issue-in-cross-compila.patch | 80 +++
 .../zephyr-kernel/zephyr-kernel-src.inc   |  1 +
 6 files changed, 114 insertions(+)
 create mode 100644 conf/machine/include/tune-core2-common.inc
 create mode 100644 conf/machine/intel-x86-32.conf
 create mode 100644 conf/machine/intel-x86-64.conf
 create mode 100644 
recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch

-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53467): https://lists.yoctoproject.org/g/yocto/message/53467
Mute This Topic: https://lists.yoctoproject.org/mt/82763602/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 3/3] intel-x86-32.conf: add common MACHINE for x86 (32-bit) BOARDS

2021-05-11 Thread Naveen Saini
User need to specify board value to ZEPHYR_BOARD in local.conf
ZEPHYR_BOARD = "minnowboard"

By default it set to MinnowBoard Max 'minnowboard'

Currently 32-bit supported boards:
* up_squared_32
* minnowboard

Ref:
https://docs.zephyrproject.org/latest/boards/x86/index.html

Signed-off-by: Naveen Saini 
---
 conf/machine/include/tune-core2-common.inc |  6 ++
 conf/machine/intel-x86-32.conf | 12 
 2 files changed, 18 insertions(+)
 create mode 100644 conf/machine/include/tune-core2-common.inc
 create mode 100644 conf/machine/intel-x86-32.conf

diff --git a/conf/machine/include/tune-core2-common.inc 
b/conf/machine/include/tune-core2-common.inc
new file mode 100644
index 000..012f078
--- /dev/null
+++ b/conf/machine/include/tune-core2-common.inc
@@ -0,0 +1,6 @@
+DEFAULTTUNE ?= "core2-32"
+require conf/machine/include/tune-core2.inc
+require conf/machine/include/x86-base.inc
+
+# Add x86 to MACHINEOVERRIDES
+MACHINEOVERRIDES =. "x86:"
diff --git a/conf/machine/intel-x86-32.conf b/conf/machine/intel-x86-32.conf
new file mode 100644
index 000..06f6da5
--- /dev/null
+++ b/conf/machine/intel-x86-32.conf
@@ -0,0 +1,12 @@
+#@TYPE: Machine
+#@NAME: intel-x86-32
+#@DESCRIPTION: common MACHINE for 32-bit x86 boards. User must set 
${ZEPHYR_BOARD}. By default is set to 'minnowboard' board.
+
+require conf/machine/include/tune-core2-common.inc
+
+ARCH_intel-x86-32 = "x86"
+
+# Supported Boards:
+# ZEPHYR_BOARD ?= "minnowboard"
+# ZEPHYR_BOARD ?= "up_squared_32"
+ZEPHYR_BOARD ?= "minnowboard"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53469): https://lists.yoctoproject.org/g/yocto/message/53469
Mute This Topic: https://lists.yoctoproject.org/mt/82763604/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 2/3] intel-x86-64.conf: add common MACHINE for x86 (64-bit) BOARDS

2021-05-11 Thread Naveen Saini
User need to specify board value to ZEPHYR_BOARD in local.conf
ZEPHYR_BOARD = "ehl_crb"

By default it set to Elkhart Lake CRB 'ehl_crb'

Currently 64-bit supported boards:
* up_squared
* ehl_crb_sbl
* ehl_crb

Ref:
https://docs.zephyrproject.org/latest/boards/x86/index.html

Signed-off-by: Naveen Saini 
---
 conf/machine/include/tune-corei7-common.inc |  3 +++
 conf/machine/intel-x86-64.conf  | 12 
 2 files changed, 15 insertions(+)
 create mode 100644 conf/machine/intel-x86-64.conf

diff --git a/conf/machine/include/tune-corei7-common.inc 
b/conf/machine/include/tune-corei7-common.inc
index 7ad9516..509d190 100644
--- a/conf/machine/include/tune-corei7-common.inc
+++ b/conf/machine/include/tune-corei7-common.inc
@@ -1,3 +1,6 @@
 DEFAULTTUNE ?= "corei7-64"
 require conf/machine/include/tune-corei7.inc
 require conf/machine/include/x86-base.inc
+
+# Add x86 to MACHINEOVERRIDE
+MACHINEOVERRIDES =. "x86:"
diff --git a/conf/machine/intel-x86-64.conf b/conf/machine/intel-x86-64.conf
new file mode 100644
index 000..15e3ad8
--- /dev/null
+++ b/conf/machine/intel-x86-64.conf
@@ -0,0 +1,12 @@
+#@TYPE: Machine
+#@NAME: intel-x86-64
+#@DESCRIPTION: common MACHINE for 64-bit x86 boards. User must set 
${ZEPHYR_BOARD}. By default is set to 'ech_crb' board.
+
+require conf/machine/include/tune-corei7-common.inc
+
+ARCH_intel-x86-64 = "x86"
+
+# Supported Boards:
+# ZEPHYR_BOARD ?= "up_squared"
+# ZEPHYR_BOARD ?= "ehl_crb_sbl"
+ZEPHYR_BOARD ?= "ehl_crb"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53468): https://lists.yoctoproject.org/g/yocto/message/53468
Mute This Topic: https://lists.yoctoproject.org/mt/82763603/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 1/3] zephyr-kernel-src: fix efi generation failure for x86 boards

2021-05-11 Thread Naveen Saini
With zephyr v2.5.0, EFI binary support has been added for x86 board (64-bit 
mode).

To achieve this, an python tool[1] has been added to convert zephyr ELF file
into an EFI appliable. But currently this does not work with Yocto
cross-compilation env.
This patch fix this issue and allow to build zephyr.efi

Ref:
[1]https://github.com/zephyrproject-rtos/zephyr/commit/928d31125f0b4eb28fe1cf3f3ad02b0ae071d7fd

Signed-off-by: Naveen Saini 
---
 ...ry-generation-issue-in-cross-compila.patch | 80 +++
 .../zephyr-kernel/zephyr-kernel-src.inc   |  1 +
 2 files changed, 81 insertions(+)
 create mode 100644 
recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch

diff --git 
a/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
 
b/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
new file mode 100644
index 000..fd6fc6b
--- /dev/null
+++ 
b/recipes-kernel/zephyr-kernel/files/0001-x86-fix-efi-binary-generation-issue-in-cross-compila.patch
@@ -0,0 +1,80 @@
+From cfde3b1018c3151b6cc1fbe3e9e163d0aaf16954 Mon Sep 17 00:00:00 2001
+From: Naveen Saini 
+Date: Tue, 11 May 2021 13:46:39 +0800
+Subject: [PATCH] x86: fix efi binary generation issue in cross compilation env
+
+Set root directory for headers.
+
+Upstream-Status: Inappropriate [Cross-compilation specific]
+
+Signed-off-by: Naveen Saini 
+---
+ arch/x86/zefi/zefi.py| 6 +-
+ boards/x86/ehl_crb/CMakeLists.txt| 1 +
+ boards/x86/qemu_x86/CMakeLists.txt   | 1 +
+ boards/x86/up_squared/CMakeLists.txt | 1 +
+ 4 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/arch/x86/zefi/zefi.py b/arch/x86/zefi/zefi.py
+index d3514391a8..b9eccbfa10 100755
+--- a/arch/x86/zefi/zefi.py
 b/arch/x86/zefi/zefi.py
+@@ -106,7 +106,10 @@ def build_elf(elf_file):
+ #  + We need pic to enforce that the linker adds no relocations
+ #  + UEFI can take interrupts on our stack, so no red zone
+ #  + UEFI API assumes 16-bit wchar_t
+-cmd = [args.compiler, "-shared", "-Wall", "-Werror", "-I.",
++
++#  Pass --sysroot path for cross compilation
++sysrootarg = "--sysroot=" + args.sysroot
++cmd = [args.compiler, "-shared", "-Wall", "-Werror", "-I.", sysrootarg,
+ "-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar",
+ "-Wl,-nostdlib", "-T", ldscript, "-o", "zefi.elf", cfile]
+ verbose(" ".join(cmd))
+@@ -145,6 +148,7 @@ def parse_args():
+ parser.add_argument("-o", "--objcopy", required=True, help="objcopy to be 
used")
+ parser.add_argument("-f", "--elf-file", required=True, help="Input file")
+ parser.add_argument("-v", "--verbose", action="store_true", help="Verbose 
output")
++parser.add_argument("-s", "--sysroot", required=True, help="Cross 
compilation --sysroot=path")
+ 
+ return parser.parse_args()
+ 
+diff --git a/boards/x86/ehl_crb/CMakeLists.txt 
b/boards/x86/ehl_crb/CMakeLists.txt
+index 0d572eff30..6a228107dc 100644
+--- a/boards/x86/ehl_crb/CMakeLists.txt
 b/boards/x86/ehl_crb/CMakeLists.txt
+@@ -5,6 +5,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -c ${CMAKE_C_COMPILER}
+   -o ${CMAKE_OBJCOPY}
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+diff --git a/boards/x86/qemu_x86/CMakeLists.txt 
b/boards/x86/qemu_x86/CMakeLists.txt
+index 1131a5c7ce..489f17192b 100644
+--- a/boards/x86/qemu_x86/CMakeLists.txt
 b/boards/x86/qemu_x86/CMakeLists.txt
+@@ -4,6 +4,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -c ${CMAKE_C_COMPILER}
+   -o ${CMAKE_OBJCOPY}
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+diff --git a/boards/x86/up_squared/CMakeLists.txt 
b/boards/x86/up_squared/CMakeLists.txt
+index 0eaa9753fc..2e8ce7cfbc 100644
+--- a/boards/x86/up_squared/CMakeLists.txt
 b/boards/x86/up_squared/CMakeLists.txt
+@@ -5,6 +5,7 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
+   -c ${CMAKE_C_COMPILER}
+   -o ${CMAKE_OBJCOPY}
+   -f ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.elf
++  -s ${SYSROOT_DIR}
+   $<$:--verbose>
+   WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
+ )
+-- 
+2.17.1
+
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index 8c987bb..8d5f176 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-ke

[yocto] [meta-zephyr][PATCH 1/2] zephyr: upgrade 2.5.0-rc4 -> 2.5.0

2021-02-18 Thread Naveen Saini
Release notes:
https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.5.0

Signed-off-by: Naveen Saini 
---
 ...r-kernel-src-2.5.0-rc4.inc => zephyr-kernel-src-2.5.0.inc} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename recipes-kernel/zephyr-kernel/{zephyr-kernel-src-2.5.0-rc4.inc => 
zephyr-kernel-src-2.5.0.inc} (82%)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0-rc4.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
similarity index 82%
rename from recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0-rc4.inc
rename to recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
index b8aa4dc..6350d86 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0-rc4.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src-2.5.0.inc
@@ -1,5 +1,5 @@
 SRCREV_FORMAT = "default_cmsis"
-SRCREV_default = "v2.5.0-rc4"
+SRCREV_default = "fe7c2efca800a0cf1bccf23aefe08b3c4beb88bf"
 SRCREV_cmsis = "c3bd2094f92d574377f7af2aec147ae181aa5f8e"
 SRCREV_nordic = "f3434da6446380fcdd426dbe2866af21d0d549b6"
 SRCREV_stm32 = "cc8731dba4fd9c57d7fe8ea6149828b89c2bd635"
@@ -7,4 +7,4 @@ SRCREV_open-amp = "de1b85a13032a2de1d8b6695ae5f800b613e739d"
 SRCREV_libmetal = "9d4ee2c3cfd5f49861939447990f3b7d7bf9bf94"
 SRCREV_tinycrypt = "3e9a49d2672ec01435ffbf0d788db6d95ef28de0"
 
-PV = "2.5.0-rc4+git${SRCPV}"
+PV = "2.5.0+git${SRCPV}"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52377): https://lists.yoctoproject.org/g/yocto/message/52377
Mute This Topic: https://lists.yoctoproject.org/mt/80725694/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 2/2] zephyr-kernel-src.inc: set default preferred version to 2.5.0

2021-02-18 Thread Naveen Saini
Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
index 2dcde74..39cbc10 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src.inc
@@ -2,7 +2,7 @@ LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc"
 
 # Default to a stable version
-PREFERRED_VERSION_zephyr-kernel ??= "2.4.0"
+PREFERRED_VERSION_zephyr-kernel ??= "2.5.0"
 include zephyr-kernel-src-${PREFERRED_VERSION_zephyr-kernel}.inc
 
 inherit cmake
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52378): https://lists.yoctoproject.org/g/yocto/message/52378
Mute This Topic: https://lists.yoctoproject.org/mt/80725695/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephy][PATCH 13/14] zephyr-flash-pyocd.bbclass: Implement configurable probe IDs to program

2021-02-16 Thread Naveen Saini
Thanks Andrei for adding support for v2.5-rc4 and re-structuring.

Could you fix a whitespace in this patch ? Other patches looks good to me.

Later I will fix subject-prefix meta-zephyr typo in README. 

Regards,
Naveen

> -Original Message-
> From: yocto@lists.yoctoproject.org  On
> Behalf Of Andrei Gherzan
> Sent: Monday, February 15, 2021 7:20 PM
> To: yocto@lists.yoctoproject.org
> Cc: Andrei Gherzan 
> Subject: [yocto] [meta-zephy][PATCH 13/14] zephyr-flash-pyocd.bbclass:
> Implement configurable probe IDs to program
> 
> From: Andrei Gherzan 
> 
> Implement logic to configure what probes to program based on the
> PYOCD_FLASH_IDS variable:
> 1. by default program all attached probes 2. change default behaviour by
> listing the probe IDs to flash
> 
> CONNECT_TIMEOUT_SECONDS was also renamed to maintain consistency
> with the PYOCD_FLASH_IDS variable.
> 
> One can query the IDs using `pyocd list`.
> 
> The value of PYOCD_FLASH_IDS can also be injected into the datastore using
> BB_ENV_EXTRAWHITE.
> 
> Signed-off-by: Andrei Gherzan 
> ---
>  README.txt |  9 +
>  classes/zephyr-flash-pyocd.bbclass | 57 --
>  2 files changed, 48 insertions(+), 18 deletions(-)
> 
> diff --git a/README.txt b/README.txt
> index bda872b..ce5338b 100644
> --- a/README.txt
> +++ b/README.txt
> @@ -67,6 +67,15 @@ dfu-util and/or pyocd need to be installed in your
> system. If you observe  permission errors or the flashing process seem to
> hang, follow those instructions:
>  https://github.com/pyocd/pyOCD/tree/master/udev
> 
> +By default, pyocd tries to flash all the attached probes. This
> +behaviour can be customised by defining the PYOCD_FLASH_IDS variable as
> +a space-separated list of IDs. Once that is set, the tool will only try
> +to program these IDs. You can query for the IDs by running `pyocd list`
> +on your host while having the probes attached. Besides setting this
> +variable through the build's configuration or metadata, you can also inject
> its value from command line with something like:
> +
> +$ PYOCD_FLASH_IDS='  '
> + BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE PYOCD_FLASH_IDS"
> bitbake
> +  -c flash_usb
> +
>  Building and Running Zephyr Tests
>  =
>  Presently only toolchains for ARM, x86, IAMCU and Nios2 are supported.
> diff --git a/classes/zephyr-flash-pyocd.bbclass b/classes/zephyr-flash-
> pyocd.bbclass
> index 4d24e6a..7e1cec5 100644
> --- a/classes/zephyr-flash-pyocd.bbclass
> +++ b/classes/zephyr-flash-pyocd.bbclass
> @@ -1,4 +1,5 @@
> -CONNECT_TIMEOUT_SECONDS ?= "30"
> +PYOCD_CONNECT_TIMEOUT_SECONDS ?= "30"
> +PYOCD_FLASH_IDS ?= "all"
> 
>  python do_flash_usb() {
>  try:
> @@ -7,26 +8,46 @@ python do_flash_usb() {
>  except ImportError:
>  bb.fatal("Flashing with pyocd needs the relevant python package. Make
> sure your host provides it or consult your distribution packages for how to
> install this prerequisite.")
> 
> -timeout = int(d.getVar('CONNECT_TIMEOUT_SECONDS'))
> +try:
> +timeout = int(d.getVar('PYOCD_CONNECT_TIMEOUT_SECONDS'))
> +except ValueError:
> +bb.fatal(f"PYOCD_CONNECT_TIMEOUT_SECONDS was set to an invalid
> + value: {d.getVar('PYOCD_CONNECT_TIMEOUT_SECONDS')}.")
>  image = f"{d.getVar('DEPLOY_DIR_IMAGE')}/{d.getVar('PN')}.elf"
> -bb.plain(f"Attempting to flash {image} to board {d.getVar('BOARD')}")
> +ids = d.getVar('PYOCD_FLASH_IDS')
> +
> +# Compute the list of IDs to program
> +if ids == 'all':
> +ids = []
> +for probe in
> ConnectHelper.get_all_connected_probes(blocking=False):
> +ids.append(probe.unique_id)
> +if not ids:
> +bb.fatal("No probe detected. Make sure your target is 
> connected.")
> +else:
> +ids = ids.split()
> +if not ids:
> +bb.fatal("No probe requested for programming. Make sure
> + PYOCD_FLASH_IDS is set.")
> 
> -# Try to connect to a probe with a timeout
> -now = 0
> -step = 3
> -while True:
> -session = ConnectHelper.session_with_chosen_probe(blocking=False,
> return_first=True)
> -if session:
> -break
> -if now >= timeout:
> -bb.fatal("Timeout while trying to connect to a probe. Make sure 
> the
> target device is connected and the udev is configured accordingly. See
>  for help.")
> -bb.warn("Can't connect to the probe. Retrying in %d seconds..." % 
> step)
> -time.sleep(step)
> -now += step
> +# Program each ID
> +for id in ids:
> +bb.plain(f"Attempting to flash {os.path.basename(image)} to
> + board {d.getVar('BOARD')} [{id}]")
> 
> -with session:
> -FileProgrammer(session).program(image)
> -session.board.target.reset()
> +# Try to connect to a probe with a timeout
> +now = 0
> +step = 3
> +while True:
> + 

[yocto] [meta-zephyr][PATCH 5/5] arduino-101-ble.conf: drop machine configuration

2021-02-05 Thread Naveen Saini
No longer supported.
https://github.com/zephyrproject-rtos/zephyr/commit/66d60d29411fa34725b450a9e5fa000f1c69b747

Signed-off-by: Naveen Saini 
---
 conf/machine/arduino-101-ble.conf | 12 
 1 file changed, 12 deletions(-)
 delete mode 100644 conf/machine/arduino-101-ble.conf

diff --git a/conf/machine/arduino-101-ble.conf 
b/conf/machine/arduino-101-ble.conf
deleted file mode 100644
index 55c3857..000
--- a/conf/machine/arduino-101-ble.conf
+++ /dev/null
@@ -1,12 +0,0 @@
-#@TYPE: Machine
-#@NAME: arduino-101-ble
-
-#@DESCRIPTION: Machine configuration for Arduino 101 Board.
-
-DEFAULTTUNE = "cortexm0"
-require conf/machine/include/tune-cortexm0.inc
-
-TARGET_LINK_HASH_STYLE = ""
-ZEPHYR_INHERIT_CLASSES += "zephyr-flash-dfu"
-
-ARCH_arduino-101-ble = "arm"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52239): https://lists.yoctoproject.org/g/yocto/message/52239
Mute This Topic: https://lists.yoctoproject.org/mt/80402218/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 4/5] arduino-101-sss.conf: drop machine configuration

2021-02-05 Thread Naveen Saini
No longer supported.
https://github.com/zephyrproject-rtos/zephyr/commit/ffaba63b107780562c2c76ca066a7857bc497303

Signed-off-by: Naveen Saini 
---
 conf/machine/arduino-101-sss.conf | 21 -
 1 file changed, 21 deletions(-)
 delete mode 100644 conf/machine/arduino-101-sss.conf

diff --git a/conf/machine/arduino-101-sss.conf 
b/conf/machine/arduino-101-sss.conf
deleted file mode 100644
index a27f672..000
--- a/conf/machine/arduino-101-sss.conf
+++ /dev/null
@@ -1,21 +0,0 @@
-#@TYPE: Machine
-#@NAME: arduino-101-sss
-
-#@DESCRIPTION: Machine configuration for Arduino 101 Board (ARC Core).
-
-TUNE_FEATURES ="arc quark-se no-sdata no-delete-null-pointer-checks"
-
-require conf/machine/include/tune-arc.inc
-PACKAGE_EXTRA_ARCHS_tune-arc = "arc"
-
-PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} = "6.x.arc"
-PREFERRED_VERSION_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} = "6.x.arc"
-PREFERRED_VERSION_libgcc = "6.x.arc"
-
-PREFERRED_VERSION_binutils-cross-${TARGET_ARCH} = "2.26+gitarc"
-PREFERRED_VERSION_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} = 
"2.26+gitarc"
-
-TARGET_LINK_HASH_STYLE = ""
-ZEPHYR_INHERIT_CLASSES += "zephyr-flash-dfu"
-
-ARCH_arduino-101-sss = "arc"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52238): https://lists.yoctoproject.org/g/yocto/message/52238
Mute This Topic: https://lists.yoctoproject.org/mt/80402216/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 1/5] zephyr-hci-uart: set COMPATIBLE_MACHINE to 96b-nitrogen machine

2021-02-05 Thread Naveen Saini
Fix recipe to build.
Support for Board arduino-101-ble already dropped from v1.12

Ref:
https://github.com/zephyrproject-rtos/zephyr/blob/v2.4-branch/samples/bluetooth/hci_uart/README.rst
https://github.com/zephyrproject-rtos/zephyr/blob/v2.4-branch/samples/bluetooth/hci_uart/boards/96b_nitrogen.conf

Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb | 11 ---
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb 
b/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
index b70542a..ec6b13e 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
+++ b/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
@@ -2,19 +2,16 @@ require zephyr-kernel.inc
 require zephyr-kernel-common.inc
 inherit deploy
 
-COMPATIBLE_MACHINE = "(arduino-101-ble)"
+COMPATIBLE_MACHINE = "(96b-nitrogen)"
 
 ZEPHYR_SRC_DIR = "${S}/samples/bluetooth/hci_uart"
 ZEPHYR_BASE = "${S}"
 
-do_compile () {
-cd ${ZEPHYR_SRC_DIR}
-oe_runmake ${ZEPHYR_MAKE_ARGS}
-}
+OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"
 
 do_deploy () {
-install -D samples/bluetooth/hci_uart/outdir/${BOARD}/zephyr.elf 
${DEPLOYDIR}/${PN}.elf
-install -D samples/bluetooth/hci_uart/outdir/${BOARD}/zephyr.bin 
${DEPLOYDIR}/${PN}.bin
+install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${DEPLOYDIR}/${PN}.elf
 }
 
 addtask deploy after do_compile
+do_install[noexec] = "1"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52235): https://lists.yoctoproject.org/g/yocto/message/52235
Mute This Topic: https://lists.yoctoproject.org/mt/80402213/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 3/5] arduino-101: drop machine configuration

2021-02-05 Thread Naveen Saini
No longer supported.
https://github.com/zephyrproject-rtos/zephyr/commit/ffaba63b107780562c2c76ca066a7857bc497303

Signed-off-by: Naveen Saini 
---
 conf/machine/arduino-101.conf | 14 --
 1 file changed, 14 deletions(-)
 delete mode 100644 conf/machine/arduino-101.conf

diff --git a/conf/machine/arduino-101.conf b/conf/machine/arduino-101.conf
deleted file mode 100644
index 0773903..000
--- a/conf/machine/arduino-101.conf
+++ /dev/null
@@ -1,14 +0,0 @@
-#@TYPE: Machine
-#@NAME: arduino-101
-
-#@DESCRIPTION: Machine configuration for Arduino 101 Board.
-
-TARGET_OS_arduino-101 = "elfiamcu"
-require conf/machine/include/tune-iamcu.inc
-TUNE_PKGARCH_arduino-101 = "iamcu"
-
-TARGET_LINK_HASH_STYLE = ""
-ZEPHYR_INHERIT_CLASSES += "zephyr-flash-dfu"
-
-ARCH_arduino-101 = "x86"
-
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52237): https://lists.yoctoproject.org/g/yocto/message/52237
Mute This Topic: https://lists.yoctoproject.org/mt/80402215/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH 2/5] zephyr-ipm: drop recipe

2021-02-05 Thread Naveen Saini
ipm moved to driver folder. Sample is no longer available.

Ref:
https://github.com/zephyrproject-rtos/zephyr/commit/131cfa2043b255246ae5c30c2c1383dff49a0442

Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-ipm.bb | 24 --
 1 file changed, 24 deletions(-)
 delete mode 100644 recipes-kernel/zephyr-kernel/zephyr-ipm.bb

diff --git a/recipes-kernel/zephyr-kernel/zephyr-ipm.bb 
b/recipes-kernel/zephyr-kernel/zephyr-ipm.bb
deleted file mode 100644
index 2f158c8..000
--- a/recipes-kernel/zephyr-kernel/zephyr-ipm.bb
+++ /dev/null
@@ -1,24 +0,0 @@
-require zephyr-kernel.inc
-require zephyr-kernel-common.inc
-inherit deploy
-
-SRC_DIR_IPM_arduino-101-sss = "samples/ipm/ipm_demo_arc"
-SRC_DIR_IPM_arduino-101 = "samples/ipm/ipm_demo_lmt"
-
-COMPATIBLE_MACHINE = "(arduino-101-sss|arduino-101)"
-
-ZEPHYR_SRC_DIR = "${S}/${SRC_DIR_IPM}/src"
-
-ZEPHYR_BASE = "${S}"
-
-do_compile () {
-cd ${SRC_DIR_IPM}
-oe_runmake ${ZEPHYR_MAKE_ARGS}
-}
-
-do_deploy () {
-install -D ${SRC_DIR_IPM}/outdir/${BOARD}/zephyr.elf ${DEPLOYDIR}/${PN}.elf
-install -D ${SRC_DIR_IPM}/outdir/${BOARD}/zephyr.bin ${DEPLOYDIR}/${PN}.bin
-}
-
-addtask deploy after do_compile
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52236): https://lists.yoctoproject.org/g/yocto/message/52236
Mute This Topic: https://lists.yoctoproject.org/mt/80402214/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] zephyr-kernel-common.inc: use ZEPHYR_MODULES var

2021-02-05 Thread Naveen Saini
Use ZEPHYR_MODULES variable to pass list of absolute source paths of
additional external modules.

Signed-off-by: Naveen Saini 
---
 .../zephyr-kernel/zephyr-kernel-common.inc  | 13 +
 .../zephyr-kernel/zephyr-peripheral-esp.bb  |  2 +-
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
index 1357c8f..5313030 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
@@ -15,10 +15,15 @@ ZEPHYR_MAKE_OUTPUT = "zephyr.elf"
 
 
 EXTRA_OECMAKE = " -DZEPHYR_BASE=${S} -DZEPHYR_GCC_VARIANT=yocto 
-DBOARD=${BOARD} -DARCH=${ARCH} -DCROSS_COMPILE=${CROSS_COMPILE} 
-DZEPHYR_SYSROOT=${ZEPHYR_SYSROOT} -DZEPHYR_TOOLCHAIN_VARIANT=yocto"
-EXTRA_OECMAKE_append_arm = " -DZEPHYR_MODULES=${S}/modules/cmsis"
-EXTRA_OECMAKE_append_nordic = "\;${S}/modules/hal/nordic"
-EXTRA_OECMAKE_append_stm32 = "\;${S}/modules/hal/stm32"
-EXTRA_OECMAKE_append_openamp = 
"\;${S}/modules/lib/open-amp\;${S}/modules/hal/libmetal"
+
+ZEPHYR_MODULES = ""
+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"
+
+EXTRA_OECMAKE_append = " -DZEPHYR_MODULES=${ZEPHYR_MODULES}"
+
 export ZEPHYR_BASE="${S}"
 
 
diff --git a/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb 
b/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb
index 192c76d..24f030a 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb
+++ b/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb
@@ -6,7 +6,7 @@ ZEPHYR_SAMPLE_NAME="samples/bluetooth/peripheral_esp"
 ZEPHYR_SRC_DIR = "${S}/${ZEPHYR_SAMPLE_NAME}"
 ZEPHYR_BASE = "${S}"
 OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"
-EXTRA_OECMAKE_append = "\;${S}/modules/crypto/tinycrypt"
+ZEPHYR_MODULES_append = "\;${S}/modules/crypto/tinycrypt"
 
 do_deploy () {
 install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${DEPLOYDIR}/${PN}.elf
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52234): https://lists.yoctoproject.org/g/yocto/message/52234
Mute This Topic: https://lists.yoctoproject.org/mt/80401367/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][PATCH 5/5] zephyr-flash-pyocd.bbclass: support for flashing via pyocd

2020-12-13 Thread Naveen Saini
yr-flash-pyocd.bbclass| 17 ++
 conf/machine/96b-nitrogen.conf|  1 +
 .../zephyr-kernel/zephyr-helloworld.bb<http://zephyr-helloworld.bb>|  
1 +
 .../zephyr-kernel/zephyr-philosophers.bb<http://zephyr-philosophers.bb>  | 
 1 +
 5 files changed, 43 insertions(+)
 create mode 100644 classes/zephyr-flash-pyocd.bbclass

diff --git a/README.txt b/README.txt
index 6463339..4366764 100644
--- a/README.txt
+++ b/README.txt
@@ -43,6 +43,29 @@ The same sample, for Nios2 image:
 $ MACHINE=qemu-nios2 bitbake zephyr-philosophers
 $ runqemu qemu-nios2

+Flashing
+=
+
+You can flash Zephyr samples to boards. Currently, the following
+MACHINEs are supported:
+ * DFU:
+  - arduino_101_sss
+  - arduino_101
+  - arduino_101_ble
+ * pyocd:
+  - 96b_nitrogen
+
+To flash the example you built with command e.g.
+
+$ MACHINE=96b_nitrogen bitbake zephyr-philosophers
[Naveen Saini] Typo here, MACHINE=96b-nitrogen
+
+call similar command with explicit flash_usb command:
+
+$ MACHINE=96b_nitrogen bitbake zephyr-philosophers -c flash_usb
[Naveen Saini]  Same as above

+
+dfu-util and/or pyocd need to be installed in your system. If you
+observe permission errors or the flashing process seem to hang, follow those 
instructions:
+https://github.com/pyocd/pyOCD/tree/master/udev

 Building and Running Zephyr Tests
 =
diff --git a/classes/zephyr-flash-pyocd.bbclass 
b/classes/zephyr-flash-pyocd.bbclass
new file mode 100644
index 000..aafe9e7
--- /dev/null
+++ b/classes/zephyr-flash-pyocd.bbclass
@@ -0,0 +1,17 @@
+
+python do_flash_usb() {
+from pyocd.core.helpers import ConnectHelper
+from pyocd.flash.file_programmer import FileProgrammer
+
+image = f"{d.getVar('DEPLOY_DIR_IMAGE')}/{d.getVar('PN')}.hex"
+bb.plain(f"Attempting to flash {image} to board
+ {d.getVar('BOARD')}")
+
+with ConnectHelper.session_with_chosen_probe() as session:
+FileProgrammer(session).program(image)
+session.board.target.reset()
+}
+
+addtask do_flash_usb
+
+do_flash_usb[nostamp] = "1"
+do_flash_usb[vardepsexclude] = "BB_ORIGENV"
diff --git a/conf/machine/96b-nitrogen.conf b/conf/machine/96b-nitrogen.conf 
index d1905f2..998db4c 100644
--- a/conf/machine/96b-nitrogen.conf
+++ b/conf/machine/96b-nitrogen.conf
@@ -4,4 +4,5 @@
 #@DESCRIPTION: Machine configuration for 96Boards Nitrogen Board.

 require conf/machine/include/nrf52832.inc
+ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
 ARCH_96b-nitrogen = "arm"
diff --git 
a/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb<http://zephyr-helloworld.bb>
 
b/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb<http://zephyr-helloworld.bb>
index 1400e72..9b77975 100644
--- 
a/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb<http://zephyr-helloworld.bb>
+++ 
b/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb<http://zephyr-helloworld.bb>
@@ -8,6 +8,7 @@ OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"

 do_deploy () {
 install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}.elf ${DEPLOYDIR}/${PN}.elf
+install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}.hex
+ ${DEPLOYDIR}/${PN}.hex
 }
[Naveen Saini]  No *.hex file while building for MACHINE=qemu-x86  Error log:  
...build/zephyr/zephyr.hex': No such file or directory


 addtask deploy after do_compile
diff --git 
a/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb<http://zephyr-philosophers.bb>
 
b/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb<http://zephyr-philosophers.bb>
index 5f7fbcb..f720999 100644
--- 
a/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb<http://zephyr-philosophers.bb>
+++ 
b/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb<http://zephyr-philosophers.bb>
@@ -8,6 +8,7 @@ OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"

 do_deploy () {
 install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}.elf ${DEPLOYDIR}/${PN}.elf
+install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}.hex
+ ${DEPLOYDIR}/${PN}.hex
 }

[Naveen Saini]  No *.hex file while building for MACHINE=qemu-x86  Error log:  
...build/zephyr/zephyr.hex': No such file or directory

Could you also try to build testcases !!
$ MACHINE=96b-nitrogen bitbake zephyr-kernel-test-all

Build breaks with error: ..build/zephyr/zephyr.elf.elf': No such file or 
directory

 addtask deploy after do_compile
--
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#51733): https://lists.yoctoproject.org/g/yocto/message/51733
Mute This Topic: https://lists.yoctoproject.org/mt/78763460/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-zephyr][PATCH 5/5] zephyr-flash-pyocd.bbclass: support for flashing via pyocd

2020-12-07 Thread Naveen Saini
You have missed few of my comments in v2 !

Regards,
Naveen

-Original Message-
From: Saini, Naveen Kumar 
Sent: Monday, December 7, 2020 8:06 PM
To: 'Wojciech Zmuda' ; yocto@lists.yoctoproject.org
Cc: davide.ri...@huawei.com; zbigniew.bo...@huawei.com; 
jaroslaw.ma...@huawei.com; robert.d...@huawei.com; Wojciech Zmuda 

Subject: RE: [yocto] [meta-zephyr][PATCH 5/5] zephyr-flash-pyocd.bbclass: 
support for flashing via pyocd

Thanks for the patches.  Please find my comments below.

-Original Message-
From: yocto@lists.yoctoproject.org  On Behalf Of 
Wojciech Zmuda
Sent: Monday, December 7, 2020 4:15 AM
To: yocto@lists.yoctoproject.org
Cc: davide.ri...@huawei.com; zbigniew.bo...@huawei.com; 
jaroslaw.ma...@huawei.com; robert.d...@huawei.com; Wojciech Zmuda 

Subject: [yocto] [meta-zephyr][PATCH 5/5] zephyr-flash-pyocd.bbclass: support 
for flashing via pyocd

Flash boards supported via pyocd:

MACHINE=xxx bitbake yyy -c flash_usb

The only supported board for now is 96Boards Nitrogen. Modify its config 
accordingly.

Modify helloworld and philosopers samples with adidtional .hex output file 
deployment, as this format is required by pyocd.

Describe the feature in README.

Signed-off-by: Wojciech Zmuda 
---
 README.txt| 23 +++
 classes/zephyr-flash-pyocd.bbclass| 17 ++
 conf/machine/96b-nitrogen.conf|  1 +
 .../zephyr-kernel/zephyr-helloworld.bb|  1 +
 .../zephyr-kernel/zephyr-philosophers.bb  |  1 +
 5 files changed, 43 insertions(+)
 create mode 100644 classes/zephyr-flash-pyocd.bbclass

diff --git a/README.txt b/README.txt
index 6463339..4366764 100644
--- a/README.txt
+++ b/README.txt
@@ -43,6 +43,29 @@ The same sample, for Nios2 image:
 $ MACHINE=qemu-nios2 bitbake zephyr-philosophers
 $ runqemu qemu-nios2
 
+Flashing
+=
+
+You can flash Zephyr samples to boards. Currently, the following 
+MACHINEs are supported:
+ * DFU:
+  - arduino_101_sss
+  - arduino_101
+  - arduino_101_ble
+ * pyocd:
+  - 96b_nitrogen
+
+To flash the example you built with command e.g.
+
+$ MACHINE=96b_nitrogen bitbake zephyr-philosophers
[Naveen Saini] Typo here, MACHINE=96b-nitrogen
+
+call similar command with explicit flash_usb command:
+
+$ MACHINE=96b_nitrogen bitbake zephyr-philosophers -c flash_usb
[Naveen Saini]  Same as above

+
+dfu-util and/or pyocd need to be installed in your system. If you 
+observe permission errors or the flashing process seem to hang, follow those 
instructions:
+https://github.com/pyocd/pyOCD/tree/master/udev
 
 Building and Running Zephyr Tests
 =
diff --git a/classes/zephyr-flash-pyocd.bbclass 
b/classes/zephyr-flash-pyocd.bbclass
new file mode 100644
index 000..aafe9e7
--- /dev/null
+++ b/classes/zephyr-flash-pyocd.bbclass
@@ -0,0 +1,17 @@
+
+python do_flash_usb() {
+from pyocd.core.helpers import ConnectHelper
+from pyocd.flash.file_programmer import FileProgrammer
+
+image = f"{d.getVar('DEPLOY_DIR_IMAGE')}/{d.getVar('PN')}.hex"
+bb.plain(f"Attempting to flash {image} to board
+ {d.getVar('BOARD')}")
+
+with ConnectHelper.session_with_chosen_probe() as session:
+FileProgrammer(session).program(image)
+session.board.target.reset()
+}
+
+addtask do_flash_usb
+
+do_flash_usb[nostamp] = "1"
+do_flash_usb[vardepsexclude] = "BB_ORIGENV"
diff --git a/conf/machine/96b-nitrogen.conf b/conf/machine/96b-nitrogen.conf 
index d1905f2..998db4c 100644
--- a/conf/machine/96b-nitrogen.conf
+++ b/conf/machine/96b-nitrogen.conf
@@ -4,4 +4,5 @@
 #@DESCRIPTION: Machine configuration for 96Boards Nitrogen Board.
 
 require conf/machine/include/nrf52832.inc
+ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
 ARCH_96b-nitrogen = "arm"
diff --git a/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb 
b/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
index 1400e72..9b77975 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
+++ b/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
@@ -8,6 +8,7 @@ OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"
 
 do_deploy () {
 install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}.elf ${DEPLOYDIR}/${PN}.elf
+install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}.hex
+ ${DEPLOYDIR}/${PN}.hex
 }
[Naveen Saini]  No *.hex file while building for MACHINE=qemu-x86  Error log:  
...build/zephyr/zephyr.hex': No such file or directory


 addtask deploy after do_compile
diff --git a/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb 
b/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
index 5f7fbcb..f720999 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
+++ b/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
@@ -8,6 +8,7 @@ OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"
 
 do_deploy () {
 install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}.elf ${DEPLOYDIR}/${PN}.el

Re: [yocto] [meta-zephyr][PATCH 5/5] zephyr-flash-pyocd.bbclass: support for flashing via pyocd

2020-12-07 Thread Naveen Saini
Thanks for the patches.  Please find my comments below.

-Original Message-
From: yocto@lists.yoctoproject.org  On Behalf Of 
Wojciech Zmuda
Sent: Monday, December 7, 2020 4:15 AM
To: yocto@lists.yoctoproject.org
Cc: davide.ri...@huawei.com; zbigniew.bo...@huawei.com; 
jaroslaw.ma...@huawei.com; robert.d...@huawei.com; Wojciech Zmuda 

Subject: [yocto] [meta-zephyr][PATCH 5/5] zephyr-flash-pyocd.bbclass: support 
for flashing via pyocd

Flash boards supported via pyocd:

MACHINE=xxx bitbake yyy -c flash_usb

The only supported board for now is 96Boards Nitrogen. Modify its config 
accordingly.

Modify helloworld and philosopers samples with adidtional .hex output file 
deployment, as this format is required by pyocd.

Describe the feature in README.

Signed-off-by: Wojciech Zmuda 
---
 README.txt| 23 +++
 classes/zephyr-flash-pyocd.bbclass| 17 ++
 conf/machine/96b-nitrogen.conf|  1 +
 .../zephyr-kernel/zephyr-helloworld.bb|  1 +
 .../zephyr-kernel/zephyr-philosophers.bb  |  1 +
 5 files changed, 43 insertions(+)
 create mode 100644 classes/zephyr-flash-pyocd.bbclass

diff --git a/README.txt b/README.txt
index 6463339..4366764 100644
--- a/README.txt
+++ b/README.txt
@@ -43,6 +43,29 @@ The same sample, for Nios2 image:
 $ MACHINE=qemu-nios2 bitbake zephyr-philosophers
 $ runqemu qemu-nios2
 
+Flashing
+=
+
+You can flash Zephyr samples to boards. Currently, the following 
+MACHINEs are supported:
+ * DFU:
+  - arduino_101_sss
+  - arduino_101
+  - arduino_101_ble
+ * pyocd:
+  - 96b_nitrogen
+
+To flash the example you built with command e.g.
+
+$ MACHINE=96b_nitrogen bitbake zephyr-philosophers
[Naveen Saini] Typo here, MACHINE=96b-nitrogen
+
+call similar command with explicit flash_usb command:
+
+$ MACHINE=96b_nitrogen bitbake zephyr-philosophers -c flash_usb
[Naveen Saini]  Same as above

+
+dfu-util and/or pyocd need to be installed in your system. If you 
+observe permission errors or the flashing process seem to hang, follow those 
instructions:
+https://github.com/pyocd/pyOCD/tree/master/udev
 
 Building and Running Zephyr Tests
 =
diff --git a/classes/zephyr-flash-pyocd.bbclass 
b/classes/zephyr-flash-pyocd.bbclass
new file mode 100644
index 000..aafe9e7
--- /dev/null
+++ b/classes/zephyr-flash-pyocd.bbclass
@@ -0,0 +1,17 @@
+
+python do_flash_usb() {
+from pyocd.core.helpers import ConnectHelper
+from pyocd.flash.file_programmer import FileProgrammer
+
+image = f"{d.getVar('DEPLOY_DIR_IMAGE')}/{d.getVar('PN')}.hex"
+bb.plain(f"Attempting to flash {image} to board 
+ {d.getVar('BOARD')}")
+
+with ConnectHelper.session_with_chosen_probe() as session:
+FileProgrammer(session).program(image)
+session.board.target.reset()
+}
+
+addtask do_flash_usb
+
+do_flash_usb[nostamp] = "1"
+do_flash_usb[vardepsexclude] = "BB_ORIGENV"
diff --git a/conf/machine/96b-nitrogen.conf b/conf/machine/96b-nitrogen.conf 
index d1905f2..998db4c 100644
--- a/conf/machine/96b-nitrogen.conf
+++ b/conf/machine/96b-nitrogen.conf
@@ -4,4 +4,5 @@
 #@DESCRIPTION: Machine configuration for 96Boards Nitrogen Board.
 
 require conf/machine/include/nrf52832.inc
+ZEPHYR_INHERIT_CLASSES += "zephyr-flash-pyocd"
 ARCH_96b-nitrogen = "arm"
diff --git a/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb 
b/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
index 1400e72..9b77975 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
+++ b/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
@@ -8,6 +8,7 @@ OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"
 
 do_deploy () {
 install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}.elf ${DEPLOYDIR}/${PN}.elf
+install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}.hex 
+ ${DEPLOYDIR}/${PN}.hex
 }
[Naveen Saini]  No *.hex file while building for MACHINE=qemu-x86
 Error log:  ...build/zephyr/zephyr.hex': No such file or directory


 addtask deploy after do_compile
diff --git a/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb 
b/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
index 5f7fbcb..f720999 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
+++ b/recipes-kernel/zephyr-kernel/zephyr-philosophers.bb
@@ -8,6 +8,7 @@ OECMAKE_SOURCEPATH = "${ZEPHYR_SRC_DIR}"
 
 do_deploy () {
 install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}.elf ${DEPLOYDIR}/${PN}.elf
+install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT}.hex 
+ ${DEPLOYDIR}/${PN}.hex
 }
 
[Naveen Saini]  No *.hex file while building for MACHINE=qemu-x86
 Error log:  ...build/zephyr/zephyr.hex': No such file or directory

Could you also try to build testcases !!
$ MACHINE=96b-nitrogen bitbake zephyr-kernel-test-all

Build breaks with error: ..build/zephyr/zephyr.elf.elf': No such file or 
directory

 addtask deploy after do_

[yocto] [meta-security][PATCH 2/3] wic: add wks.in for intel dm-verity

2020-10-01 Thread Naveen Saini
Based on systemd-bootdisk-microcode.wks.in, this adds
the dm-verity image similar to the beaglebone wks
already in meta-security.

Signed-off-by: Naveen Saini 
---
 wic/systemd-bootdisk-dmverity.wks.in | 15 +++
 1 file changed, 15 insertions(+)
 create mode 100644 wic/systemd-bootdisk-dmverity.wks.in

diff --git a/wic/systemd-bootdisk-dmverity.wks.in 
b/wic/systemd-bootdisk-dmverity.wks.in
new file mode 100644
index 000..ef114ca
--- /dev/null
+++ b/wic/systemd-bootdisk-dmverity.wks.in
@@ -0,0 +1,15 @@
+# A dm-verity variant of the regular wks for IA machines. We need to fetch
+# the partition images from the IMGDEPLOYDIR as the rootfs source plugin will
+# not recreate the exact block device corresponding with the hash tree. We must
+# not alter the label or any other setting on the image.
+# Based on OE-core's systemd-bootdisk.wks and meta-security's 
beaglebone-yocto-verity.wks.in file
+#
+# This .wks only works with the dm-verity-img class.
+
+part /boot --source bootimg-efi 
--sourceparams="loader=systemd-boot,initrd=microcode.cpio" --ondisk sda --label 
msdos --active --align 1024 --use-uuid
+
+part / --source rawcopy --ondisk sda  
--sourceparams="file=${IMGDEPLOYDIR}/${DM_VERITY_IMAGE}-${MACHINE}.${DM_VERITY_IMAGE_TYPE}.verity"
 --use-uuid
+
+part swap --ondisk sda --size 44 --label swap1 --fstype=swap --use-uuid
+
+bootloader --ptable gpt --timeout=5 --append=" "
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50914): https://lists.yoctoproject.org/g/yocto/message/50914
Mute This Topic: https://lists.yoctoproject.org/mt/77255233/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-security][PATCH 1/3] initramfs-framework/dmverity: add retry loop for slow boot devices

2020-10-01 Thread Naveen Saini
Detection of USB devices by the kernel is slow enough. We need to
keep trying for a while (default: 5s seconds, controlled by 
roottimeout=)
and sleep between each attempt (default: one second, rootdelay=).

Fix is based on 
https://git.yoctoproject.org/cgit.cgi/poky/commit/meta/recipes-core/initrdscripts/initramfs-framework/rootfs?id=ee6a6c3461694ce09789bf4d852cea2e22fc95e4

Signed-off-by: Naveen Saini 
---
 .../initramfs-framework/dmverity  | 64 +++
 1 file changed, 37 insertions(+), 27 deletions(-)

diff --git a/recipes-core/initrdscripts/initramfs-framework/dmverity 
b/recipes-core/initrdscripts/initramfs-framework/dmverity
index bb07aab..888052c 100644
--- a/recipes-core/initrdscripts/initramfs-framework/dmverity
+++ b/recipes-core/initrdscripts/initramfs-framework/dmverity
@@ -10,33 +10,43 @@ dmverity_run() {
 
 . /usr/share/misc/dm-verity.env
 
-case "${bootparam_root}" in
-ID=*)
-RDEV="$(realpath /dev/disk/by-id/${bootparam_root#ID=})"
-;;
-LABEL=*)
-RDEV="$(realpath /dev/disk/by-label/${bootparam_root#LABEL=})"
-;;
-PARTLABEL=*)
-RDEV="$(realpath 
/dev/disk/by-partlabel/${bootparam_root#PARTLABEL=})"
-;;
-PARTUUID=*)
-RDEV="$(realpath 
/dev/disk/by-partuuid/${bootparam_root#PARTUUID=})"
-;;
-PATH=*)
-RDEV="$(realpath /dev/disk/by-path/${bootparam_root#PATH=})"
-;;
-UUID=*)
-RDEV="$(realpath /dev/disk/by-uuid/${bootparam_root#UUID=})"
-;;
-*)
-RDEV="${bootparam_root}"
-esac
-
-if ! [ -b "${RDEV}" ]; then
-echo "Root device resolution failed"
-exit 1
-fi
+C=0
+delay=${bootparam_rootdelay:-1}
+timeout=${bootparam_roottimeout:-5}
+RDEV="$(realpath /dev/disk/by-partuuid/${bootparam_root#PARTUUID=})"
+while [ ! -b "${RDEV}" ]; do
+if [ $(( $C * $delay )) -gt $timeout ]; then
+fatal "Root device resolution failed"
+exit 1
+fi
+
+case "${bootparam_root}" in
+ID=*)
+RDEV="$(realpath /dev/disk/by-id/${bootparam_root#ID=})"
+;;
+LABEL=*)
+RDEV="$(realpath /dev/disk/by-label/${bootparam_root#LABEL=})"
+;;
+PARTLABEL=*)
+RDEV="$(realpath 
/dev/disk/by-partlabel/${bootparam_root#PARTLABEL=})"
+;;
+PARTUUID=*)
+RDEV="$(realpath 
/dev/disk/by-partuuid/${bootparam_root#PARTUUID=})"
+;;
+PATH=*)
+RDEV="$(realpath /dev/disk/by-path/${bootparam_root#PATH=})"
+;;
+UUID=*)
+RDEV="$(realpath /dev/disk/by-uuid/${bootparam_root#UUID=})"
+;;
+*)
+RDEV="${bootparam_root}"
+esac
+debug "Sleeping for $delay second(s) to wait root to settle..."
+sleep $delay
+C=$(( $C + 1 ))
+
+done
 
 veritysetup \
 --data-block-size=1024 \
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50913): https://lists.yoctoproject.org/g/yocto/message/50913
Mute This Topic: https://lists.yoctoproject.org/mt/77255232/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-security][PATCH 3/3] linux-%/5.x: Add dm-verity fragment as needed

2020-10-01 Thread Naveen Saini
Add checks that include dm-verity specific kernel config fragment
when dm-verity-img.bbclass is used.

Signed-off-by: Naveen Saini 
---
 recipes-kernel/linux/linux-%_5.%.bbappend | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-kernel/linux/linux-%_5.%.bbappend 
b/recipes-kernel/linux/linux-%_5.%.bbappend
index 76b5df5..6bc40cd 100644
--- a/recipes-kernel/linux/linux-%_5.%.bbappend
+++ b/recipes-kernel/linux/linux-%_5.%.bbappend
@@ -1,4 +1,4 @@
 KERNEL_FEATURES_append = " ${@bb.utils.contains("DISTRO_FEATURES", "apparmor", 
" features/apparmor/apparmor.scc", "" ,d)}"
 KERNEL_FEATURES_append = " ${@bb.utils.contains("DISTRO_FEATURES", "smack", " 
features/smack/smack.scc", "" ,d)}"
 KERNEL_FEATURES_append = " ${@bb.utils.contains("DISTRO_FEATURES", "yama", " 
features/yama/yama.scc", "" ,d)}"
-
+KERNEL_FEATURES_append = " ${@bb.utils.contains("IMAGE_CLASSES", 
"dm-verity-img", " features/device-mapper/dm-verity.scc", "" ,d)}"
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50915): https://lists.yoctoproject.org/g/yocto/message/50915
Mute This Topic: https://lists.yoctoproject.org/mt/77255234/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] acrn.conf: set tune corei7-64

2020-09-23 Thread Naveen Saini
Added CONFIG_X86_64 since ACRN hypervisor supports x86_64 capable
platforms only.

Ref:
https://github.com/zephyrproject-rtos/zephyr/commit/d0126a037d23484feebba00d2c0eac27e6393fef

Signed-off-by: Naveen Saini 
---
 conf/machine/acrn.conf  | 3 +--
 conf/machine/include/tune-corei7-common.inc | 3 +++
 2 files changed, 4 insertions(+), 2 deletions(-)
 create mode 100644 conf/machine/include/tune-corei7-common.inc

diff --git a/conf/machine/acrn.conf b/conf/machine/acrn.conf
index 96a7d66..c044933 100644
--- a/conf/machine/acrn.conf
+++ b/conf/machine/acrn.conf
@@ -3,8 +3,7 @@
 #@DESCRIPTION: Machine for Zephyr BOARD acrn
 
 require conf/machine/include/qemu.inc
-require conf/machine/include/tune-i586.inc
-
+require conf/machine/include/tune-corei7-common.inc
 ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
 
 ARCH_acrn = "x86"
diff --git a/conf/machine/include/tune-corei7-common.inc 
b/conf/machine/include/tune-corei7-common.inc
new file mode 100644
index 000..7ad9516
--- /dev/null
+++ b/conf/machine/include/tune-corei7-common.inc
@@ -0,0 +1,3 @@
+DEFAULTTUNE ?= "corei7-64"
+require conf/machine/include/tune-corei7.inc
+require conf/machine/include/x86-base.inc
-- 
2.7.4


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50790): https://lists.yoctoproject.org/g/yocto/message/50790
Mute This Topic: https://lists.yoctoproject.org/mt/77048713/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] README.txt: update doc

2020-09-20 Thread Naveen Saini
Add python dependencies.

Signed-off-by: Naveen Saini 
---
 README.txt | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/README.txt b/README.txt
index 208843b..be1ea39 100644
--- a/README.txt
+++ b/README.txt
@@ -8,11 +8,17 @@ 
https://wiki.yoctoproject.org/wiki/TipsAndTricks/BuildingZephyrImages
 Prerequisites:
 ==
 
-Yocto distro (master)"
+This layer depends on:
+Yocto distro (master)
+git://git.yoctoproject.org/poky
+Python layer (meta-openembedded/meta-python)
+git://git.openembedded.org/meta-openembedded
 
 Modify local conf by adding:
 DISTRO="zephyr"
 
+Add "meta-openembedded/meta-oe" to BBLAYERS
+Add "meta-openembedded/meta-python" to BBLAYERS
 Add "meta-zephyr" to BBLAYERS
 
 Building and Running Zephyr Samples
-- 
2.27.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50744): https://lists.yoctoproject.org/g/yocto/message/50744
Mute This Topic: https://lists.yoctoproject.org/mt/76983875/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-zephyr][PATCH] zephyr-kernel: Add python dependencies

2020-09-20 Thread Naveen Saini
From: Jon Mason 

Zephyr refuses to compile due to missing python dependencies.

Signed-off-by: Jon Mason 
Signed-off-by: Naveen Saini 
---
 recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
index d7147d5..2090092 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
@@ -2,6 +2,7 @@
 
 ZEPHYR_INHERIT_CLASSES += "zephyr cmake"
 inherit ${ZEPHYR_INHERIT_CLASSES}
+inherit python3native
 
 # There shouldn't be a manifest for zephyr kernels since there is no root
 # filesystem.
@@ -20,6 +21,7 @@ export ZEPHYR_BASE="${S}"
 # We always need a toolchain to cross-compile.
 INHIBIT_DEFAULT_DEPS = "1"
 DEPENDS += "gcc-cross-${TARGET_ARCH} libgcc ${TOOLCHAIN_TARGET_TASK} 
gperf-native"
+DEPENDS += " python3-pyelftools-native python3-pyyaml-native 
python3-pykwalify-native"
 CROSS_COMPILE = "${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}"
 
 DEPENDS_append_qemuall = " qemu-native qemu-helper-native"
-- 
2.27.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50743): https://lists.yoctoproject.org/g/yocto/message/50743
Mute This Topic: https://lists.yoctoproject.org/mt/76983361/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto] [kernel-cache][master yocto-5.4][PATCH] features/intel-sst: move from intel-common-drivers.scc to intel-corei7-64-standard.scc

2020-06-10 Thread Naveen Saini
CONFIG_INTEL_SPEED_SELECT_INTERFACE depends on x86-64.

Signed-off-by: Naveen Saini 
---
 bsp/intel-common/intel-common-drivers.scc | 1 -
 bsp/intel-common/intel-corei7-64-standard.scc | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/bsp/intel-common/intel-common-drivers.scc 
b/bsp/intel-common/intel-common-drivers.scc
index d9e1883b..d452157c 100644
--- a/bsp/intel-common/intel-common-drivers.scc
+++ b/bsp/intel-common/intel-common-drivers.scc
@@ -86,7 +86,6 @@ include features/pci-iov/pci-iov.scc
 include features/intel-tco/intel-tco.scc
 include features/inline/inline.cfg
 include features/random/random.scc
-include features/intel-sst/intel-sst.scc
 
 # default policy for standard kernels
 include cfg/usb-mass-storage.scc
diff --git a/bsp/intel-common/intel-corei7-64-standard.scc 
b/bsp/intel-common/intel-corei7-64-standard.scc
index 1296bf86..c44dbd90 100644
--- a/bsp/intel-common/intel-corei7-64-standard.scc
+++ b/bsp/intel-common/intel-corei7-64-standard.scc
@@ -14,3 +14,4 @@ include ktypes/standard/standard.scc
 
 include intel-common-drivers.scc
 include intel-corei7-64.scc
+include features/intel-sst/intel-sst.scc
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8742): 
https://lists.yoctoproject.org/g/linux-yocto/message/8742
Mute This Topic: https://lists.yoctoproject.org/mt/74792162/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[linux-yocto] [kernel-cache][master yocto-5.4][PATCH] features/intel-sst: Enable Intel Speed Select Technology interface configuration

2020-06-03 Thread Naveen Saini
Signed-off-by: Naveen Saini 
---
 bsp/intel-common/intel-common-drivers.scc | 1 +
 features/intel-sst/intel-sst.cfg  | 2 ++
 features/intel-sst/intel-sst.scc  | 4 
 kern-features.rc  | 1 +
 4 files changed, 8 insertions(+)
 create mode 100644 features/intel-sst/intel-sst.cfg
 create mode 100644 features/intel-sst/intel-sst.scc

diff --git a/bsp/intel-common/intel-common-drivers.scc 
b/bsp/intel-common/intel-common-drivers.scc
index d452157c..d9e1883b 100644
--- a/bsp/intel-common/intel-common-drivers.scc
+++ b/bsp/intel-common/intel-common-drivers.scc
@@ -86,6 +86,7 @@ include features/pci-iov/pci-iov.scc
 include features/intel-tco/intel-tco.scc
 include features/inline/inline.cfg
 include features/random/random.scc
+include features/intel-sst/intel-sst.scc
 
 # default policy for standard kernels
 include cfg/usb-mass-storage.scc
diff --git a/features/intel-sst/intel-sst.cfg b/features/intel-sst/intel-sst.cfg
new file mode 100644
index ..05172701
--- /dev/null
+++ b/features/intel-sst/intel-sst.cfg
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: MIT
+CONFIG_INTEL_SPEED_SELECT_INTERFACE=m
diff --git a/features/intel-sst/intel-sst.scc b/features/intel-sst/intel-sst.scc
new file mode 100644
index ..1ab6626b
--- /dev/null
+++ b/features/intel-sst/intel-sst.scc
@@ -0,0 +1,4 @@
+# SPDX-License-Identifier: MIT
+define KFEATURE_DESCRIPTION "Enable Intel Speed Select Technology interface"
+
+kconf hardware intel-sst.cfg
diff --git a/kern-features.rc b/kern-features.rc
index 9dc78a2c..f53302af 100644
--- a/kern-features.rc
+++ b/kern-features.rc
@@ -59,6 +59,7 @@
config = features/vrf/vrf.scc
config = features/firmware/firmware.scc
config = features/intel-tco/intel-tco.scc
+   config = features/intel-sst/intel-sst.scc
config = features/rpmb/rpmb-sim.scc
config = features/rpmb/rpmb-base.scc
config = features/rpmb/rpmb-uapi.scc
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#8726): 
https://lists.yoctoproject.org/g/linux-yocto/message/8726
Mute This Topic: https://lists.yoctoproject.org/mt/74645018/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[yocto] [meta-zephyr][PATCH 1/5] layer.conf: update LAYERSERIES_COMPAT to dunfell

2020-03-31 Thread Naveen Saini
Signed-off-by: Naveen Saini 
---
 conf/layer.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conf/layer.conf b/conf/layer.conf
index cb0064f..1d41b3f 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -15,4 +15,4 @@ LAYERVERSION_zephyr = "1"
 
 LAYERDEPENDS_zephyr = "core"
 
-LAYERSERIES_COMPAT_zephyr = "warrior zeus"
+LAYERSERIES_COMPAT_zephyr = "dunfell"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#48997): https://lists.yoctoproject.org/g/yocto/message/48997
Mute This Topic: https://lists.yoctoproject.org/mt/72673831/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


[yocto] [meta-zephyr][PATCH 3/5] zephyr-kernel: add Zephyr RTOS version 2.2.0 support

2020-03-31 Thread Naveen Saini
Release notes:
https://github.com/zephyrproject-rtos/zephyr/releases/tag/zephyr-v2.2.0

Signed-off-by: Naveen Saini 
---
 classes/zephyr-kernel-src.bbclass | 10 
 .../0001-cmake-add-yocto-toolchain.patch  | 23 ---
 ...el-src_2.0.bb => zephyr-kernel-src_2.2.bb} |  8 +++
 3 files changed, 14 insertions(+), 27 deletions(-)
 rename recipes-kernel/zephyr-kernel/{zephyr-kernel-src_2.0.bb => 
zephyr-kernel-src_2.2.bb} (84%)

diff --git a/classes/zephyr-kernel-src.bbclass 
b/classes/zephyr-kernel-src.bbclass
index 9e2558b..653cb9b 100644
--- a/classes/zephyr-kernel-src.bbclass
+++ b/classes/zephyr-kernel-src.bbclass
@@ -1,13 +1,13 @@
 #Set relevant variables based on Zephyr kernel version
 
-PREFERRED_VERSION_zephyr-kernel ??= "2.0.0"
+PREFERRED_VERSION_zephyr-kernel ??= "2.2.0"
 
-SRCREV = "ca3eb0eb31d134be41aefc952f696f7d9c356b7a"
+SRCREV = "d39cb42d0920d5658fad358ad5b91de75d747a20"
 
-SRC_URI = 
"git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=v2.0-branch
 \
+SRC_URI = 
"git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=v2.2-branch
 \
   file://0001-cmake-add-yocto-toolchain.patch \
 "
-PV = "2.0.0"
+PV = "2.2.0"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc"
 
@@ -15,7 +15,7 @@ ZEPHYR_TEST_SRCDIR = "tests/legacy/kernel/"
 
 python () {
 src_pn = d.getVar('PREFERRED_VERSION_zephyr-kernel', True)
-if src_pn == '2.0.0':
+if src_pn == '2.2.0':
 return
 else:
 bb.error("Unsupported Zephyr kernel version requested")
diff --git 
a/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch 
b/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch
index 2f91c6f..caab16f 100644
--- a/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch
+++ b/recipes-kernel/zephyr-kernel/files/0001-cmake-add-yocto-toolchain.patch
@@ -1,37 +1,24 @@
-From 7dffe6c78e6799a3dfd3910876b29645305a55db Mon Sep 17 00:00:00 2001
+From 511745625637da0effca13c5489a392e15d32271 Mon Sep 17 00:00:00 2001
 From: Naveen Saini 
-Date: Tue, 19 Nov 2019 14:36:19 +0800
+Date: Tue, 31 Mar 2020 13:22:17 +0800
 Subject: [PATCH] cmake: add yocto toolchain
 
 Upstream status: inappropriate [OE specific]
 
 Signed-off-by: Naveen Saini 
 ---
- cmake/app/boilerplate.cmake |  1 +
  cmake/compiler/gcc/target.cmake |  7 ---
  cmake/toolchain/yocto/generic.cmake | 13 +
  cmake/toolchain/yocto/target.cmake  |  1 +
- 4 files changed, 15 insertions(+), 7 deletions(-)
+ 3 files changed, 14 insertions(+), 7 deletions(-)
  create mode 100644 cmake/toolchain/yocto/generic.cmake
  create mode 100644 cmake/toolchain/yocto/target.cmake
 
-diff --git a/cmake/app/boilerplate.cmake b/cmake/app/boilerplate.cmake
-index b0920b1d95..2dceead6c0 100644
 a/cmake/app/boilerplate.cmake
-+++ b/cmake/app/boilerplate.cmake
-@@ -441,6 +441,7 @@ else()
-   set(SOC_PATH ${SOC_FAMILY}/${SOC_SERIES})
- endif()
- 
-+#include(${ZEPHYR_BASE}/cmake/toolchain-yocto.cmake)
- include(${ZEPHYR_BASE}/cmake/target_toolchain.cmake)
- 
- set(KERNEL_NAME ${CONFIG_KERNEL_BIN_NAME})
 diff --git a/cmake/compiler/gcc/target.cmake b/cmake/compiler/gcc/target.cmake
-index accd4ff19f..1d4018f5e6 100644
+index 401cc28db8..5a026f4559 100644
 --- a/cmake/compiler/gcc/target.cmake
 +++ b/cmake/compiler/gcc/target.cmake
-@@ -85,13 +85,6 @@ if(NOT no_libgcc)
+@@ -66,13 +66,6 @@ if(NOT no_libgcc)
  OUTPUT_STRIP_TRAILING_WHITESPACE
  )
  
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-src_2.0.bb 
b/recipes-kernel/zephyr-kernel/zephyr-kernel-src_2.2.bb
similarity index 84%
rename from recipes-kernel/zephyr-kernel/zephyr-kernel-src_2.0.bb
rename to recipes-kernel/zephyr-kernel/zephyr-kernel-src_2.2.bb
index cb457f5..a3e1c28 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-src_2.0.bb
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-src_2.2.bb
@@ -2,13 +2,13 @@
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc"
 
-# tag v2.0
-SRCREV="ca3eb0eb31d134be41aefc952f696f7d9c356b7a"
-SRC_URI = 
"git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=v2.0-branch
 \
+# tag v2.2
+SRCREV="d39cb42d0920d5658fad358ad5b91de75d747a20"
+SRC_URI = 
"git://github.com/zephyrproject-rtos/zephyr.git;protocol=https;branch=v2.2-branch
 \
   file://0001-cmake-add-yocto-toolchain.patch \
 "
 inherit cmake 
-PV = "2.0.0"
+PV = "2.2.0"
 S = "${WORKDIR}/git"
 
 IMAGE_NO_MANIFEST = "1"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#48999): https://lists.yoctoproject.org/g/yocto/message/48999
Mute This Topic: https://lists.yoctoproject.org/mt/72673833/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


  1   2   >