Date   

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

Jon Mason
 

On Fri, Sep 16, 2022 at 10:03:14AM +0100, Peter Hoyes wrote:
From: Peter Hoyes <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 <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


Re: Help and ideas wanted - error during do_package

Richard Purdie
 

On Tue, 2022-09-20 at 23:05 +0200, Peter Bergin wrote:
Hi,

I'm working on a recipe for libtraceevent
(https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git) that is
needed for newer trace-cmd. I'm confused about an error I get during
do_package that I want some help with.

File: '<snip>/sources/poky/meta/lib/oe/sstatesig.py', lineno: 587,
function: process
     0583:                    else:
     0584:                        add_perm(stat.S_IXOTH, 'x')
     0585:
     0586:                    try:
 *** 0587:                        update_hash(" %10s" %
pwd.getpwuid(s.st_uid).pw_name)
     0588:                        update_hash(" %10s" %
grp.getgrgid(s.st_gid).gr_name)
     0589:                    except KeyError as e:
     0590:                        bb.warn("KeyError in %s" % path)
     0591:                        msg = ("KeyError: %s\nPath %s is
owned by uid %d, gid %d, which doesn't match "
Exception: Exception: KeyError: 'getpwuid(): uid not found: 1000'
Path ./package/usr/lib/libtraceevent.a is owned by uid 1000, gid 1004,
which doesn't match any user/group on target. This may be due to host
contamination.

ERROR: Logfile of failure stored in:
<snip>/build/<machine>/tmp/work/cortexa53-crypto-poky-linux/libtraceevent/1.6.2-r0/temp/log.do_package.3574262
ERROR: Task
(<snip>/sources/meta-openembedded/meta-oe/recipes-kernel/trace-cmd/libtraceevent_1.6.2.bb:do_package)
failed with exit code '1'

What happens is that during do_package the directory ${WORKDIR}/package
is moved to ${WORKDIR}/sstate-build-package and the sstate is
calculated. In that sequence in sstatesig.py the owner of the files are
checked and used in the hash calculations. By adding debug prints I have
seen that in normal case the s.st_uid in the code above evaluates to 0
for the files and directories. When looking in the file system my user
(1000/1004) owns them but I guess PSEUDO is involved here to fake root?
For some reason when checking the libraries build by libtraceevent in
./usr/lib/ the files reports to be owned by uid 1000 and the exection
above is raised. It is valid for ./usr/lib/libtraceevent.a and also
other files in the ./usr/lib directory. Before the files in ./usr/lib is
checked files from /usr/include has been checked for libtraceevent and
they have s.st_uid=0.

I've spent some time trying to understand this. Give up now and try this
forum if I can get some ideas. I share the recipe below.
Have you tried putting a:

chown root.root ${D}<files>

into do_install and checking if you force the ownership, whether that
helps?

Cheers,

Richard


Help and ideas wanted - error during do_package

Peter Bergin
 

Hi,

I'm working on a recipe for libtraceevent (https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git) that is needed for newer trace-cmd. I'm confused about an error I get during do_package that I want some help with.

File: '<snip>/sources/poky/meta/lib/oe/sstatesig.py', lineno: 587, function: process
     0583:                    else:
     0584:                        add_perm(stat.S_IXOTH, 'x')
     0585:
     0586:                    try:
 *** 0587:                        update_hash(" %10s" % pwd.getpwuid(s.st_uid).pw_name)
     0588:                        update_hash(" %10s" % grp.getgrgid(s.st_gid).gr_name)
     0589:                    except KeyError as e:
     0590:                        bb.warn("KeyError in %s" % path)
     0591:                        msg = ("KeyError: %s\nPath %s is owned by uid %d, gid %d, which doesn't match "
Exception: Exception: KeyError: 'getpwuid(): uid not found: 1000'
Path ./package/usr/lib/libtraceevent.a is owned by uid 1000, gid 1004, which doesn't match any user/group on target. This may be due to host contamination.

ERROR: Logfile of failure stored in: <snip>/build/<machine>/tmp/work/cortexa53-crypto-poky-linux/libtraceevent/1.6.2-r0/temp/log.do_package.3574262
ERROR: Task (<snip>/sources/meta-openembedded/meta-oe/recipes-kernel/trace-cmd/libtraceevent_1.6.2.bb:do_package) failed with exit code '1'

What happens is that during do_package the directory ${WORKDIR}/package is moved to ${WORKDIR}/sstate-build-package and the sstate is calculated. In that sequence in sstatesig.py the owner of the files are checked and used in the hash calculations. By adding debug prints I have seen that in normal case the s.st_uid in the code above evaluates to 0 for the files and directories. When looking in the file system my user (1000/1004) owns them but I guess PSEUDO is involved here to fake root? For some reason when checking the libraries build by libtraceevent in ./usr/lib/ the files reports to be owned by uid 1000 and the exection above is raised. It is valid for ./usr/lib/libtraceevent.a and also other files in the ./usr/lib directory. Before the files in ./usr/lib is checked files from /usr/include has been checked for libtraceevent and they have s.st_uid=0.

I've spent some time trying to understand this. Give up now and try this forum if I can get some ideas. I share the recipe below.

Thanks
/Peter

$ cat ../../sources/meta-openembedded/meta-oe/recipes-kernel/trace-cmd/libtraceevent_1.6.2.bb

SUMMARY = "Library that provides APIs to access kernel tracepoint events"

LICENSE = "GPL-2.0-only & LGPL-2.1-only"
LIC_FILES_CHKSUM = " \
    file://LICENSES/GPL-2.0;md5=e6a75371ba4d16749254a51215d13f97 \
    file://LICENSES/LGPL-2.1;md5=b370887980db5dd40659b50909238dbd \
    "

SRC_URI = " \
git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git;branch=libtraceevent;protocol=https \
file://0001-libtraceevent-make-it-possible-to-set-libdir-and-man.patch \
    "

SRCREV = "424b11f6c3ab2e3bb199180e142fbcf9eebf2ac3"

S = "${WORKDIR}/git"

do_install () {
    oe_runmake 'DESTDIR=${D}' install
}

FILES:${PN} += "${libdir}/traceevent/plugins"

$ cat ../../sources/meta-openembedded/meta-oe/recipes-kernel/trace-cmd/files/0001-libtraceevent-make-it-possible-to-set-libdir-and-man.patch

From 2014d037d3488f1a53e1c0c83263e77322ac14ef Mon Sep 17 00:00:00 2001
From: Peter Bergin <peter@...>
Date: Mon, 19 Sep 2022 17:21:28 +0200
Subject: [PATCH] libtraceevent: make it possible to set libdir and mandir from
 outside

When building in build frameworks such as openembedded it is desired
to use the defintion of libdir and mandir from the build framework.

Signed-off-by: Peter Bergin <peter@...>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 194bbdd..aa1984d 100644
--- a/Makefile
+++ b/Makefile
@@ -45,8 +45,8 @@ endif

 libdir_relative ?= $(libdir_relative_temp)
 prefix ?= /usr/local
-libdir = $(prefix)/$(libdir_relative)
-man_dir = $(prefix)/share/man
+libdir ?= $(prefix)/$(libdir_relative)
+man_dir ?= $(prefix)/share/man
 man_dir_SQ = '$(subst ','\'',$(man_dir))'
 pkgconfig_dir ?= $(word 1,$(shell $(PKG_CONFIG)                \
                        --variable pc_path pkg-config | tr ":" " "))
--
2.34.1


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

Jon Mason
 

On Thu, Sep 15, 2022 at 03:20:42PM +0800, Naveen Saini wrote:
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 <naveen.kumar.saini@...>
Passes CI
https://gitlab.com/jonmason00/meta-zephyr/-/pipelines/645876493

Tested-by: Jon Mason <jon.mason@...>


---
...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


[meta-zephyr][PATCH 2/3] zephyr-bsp/qemu-cortex-m3: update to use new path

Jon Mason
 

Update the qemu-cortex-m3 machine to use the OE tune file, and remove
the duplicate one locally.

Signed-off-by: Jon Mason <jon.mason@...>
---
.../conf/machine/include/tune-cortexm3.inc | 21 -------------------
.../conf/machine/qemu-cortex-m3.conf | 2 +-
2 files changed, 1 insertion(+), 22 deletions(-)
delete mode 100644 meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc

diff --git a/meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc b/meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc
deleted file mode 100644
index 404e2b7..0000000
--- a/meta-zephyr-bsp/conf/machine/include/tune-cortexm3.inc
+++ /dev/null
@@ -1,21 +0,0 @@
-DEFAULTTUNE ?= "cortexm3"
-
-require conf/machine/include/arm/arch-armv7a.inc
-
-TUNEVALID[cortexm3] = "Enable Cortex-M3 specific processor optimizations"
-TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexm3', ' -mcpu=cortex-m3', '', d)}"
-AVAILTUNES += "cortexm3"
-
-TUNEVALID[armv7m] = "Enable Cortex-M3 specific processor optimizations"
-TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', ' -march=armv7-m', '', d)}"
-MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 'armv7m:', '' ,d)}"
-
-TUNE_PKGARCH:tune-cortexm3 = "cortexm3"
-
-ARMPKGARCH:tune-cortexm3 = "armv7m"
-PACKAGE_EXTRA_ARCHS:tune-cortexm3 ="cortexm3"
-
-TUNE_FEATURES:tune-cortexm3 = "armv7m vfp cortexm3"
-PACKAGE_EXTRA_ARCHS:tune-cortexm3 = "${PACKAGE_EXTRA_ARCHS:tune-armv7at} armv7m-vfp"
-
-TUNE_CCARGS_MFLOAT = "soft"
diff --git a/meta-zephyr-bsp/conf/machine/qemu-cortex-m3.conf b/meta-zephyr-bsp/conf/machine/qemu-cortex-m3.conf
index 835a775..989f2ca 100644
--- a/meta-zephyr-bsp/conf/machine/qemu-cortex-m3.conf
+++ b/meta-zephyr-bsp/conf/machine/qemu-cortex-m3.conf
@@ -3,7 +3,7 @@
#@DESCRIPTION: Machine for Zephyr BOARD qemu_cortex_m3

require conf/machine/include/qemu.inc
-require conf/machine/include/tune-cortexm3.inc
+require conf/machine/include/arm/armv7m/tune-cortexm3.inc

ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"

--
2.17.1


[meta-zephyr][PATCH 1/3] zephyr-bsp: remove unused tune file

Jon Mason
 

Signed-off-by: Jon Mason <jon.mason@...>
---
.../conf/machine/include/tune-cortexm0.inc | 31 -------------------
1 file changed, 31 deletions(-)
delete mode 100644 meta-zephyr-bsp/conf/machine/include/tune-cortexm0.inc

diff --git a/meta-zephyr-bsp/conf/machine/include/tune-cortexm0.inc b/meta-zephyr-bsp/conf/machine/include/tune-cortexm0.inc
deleted file mode 100644
index 5067eb2..0000000
--- a/meta-zephyr-bsp/conf/machine/include/tune-cortexm0.inc
+++ /dev/null
@@ -1,31 +0,0 @@
-DEFAULTTUNE ?= "cortexm0"
-
-require conf/machine/include/arm/arch-armv6.inc
-
-TUNEVALID[cortexm0] = "Enable Cortex-M0 specific processor optimizations"
-TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexm0', ' -mcpu=cortex-m0', '', d)}"
-AVAILTUNES += "cortexm0"
-
-TUNEVALID[no-thumb-interwork] = "Enable thumb mode"
-TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'no-thumb-interwork', ' -mno-thumb-interwork', '', d)}"
-AVAILTUNES += "no-thumb-interwork"
-
-TUNEVALID[no-ffast-math] = "Enable thumb mode"
-TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'no-ffast-math', ' -fno-fast-math', '', d)}"
-AVAILTUNES += "no-ffast-math"
-
-TUNEVALID[soft] = "Enable thumb mode"
-TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'soft', ' -mfloat-abi=soft', '', d)}"
-AVAILTUNES += "soft"
-
-TUNEVALID[armv6m] = "Enable Cortex-M0 specific processor optimizations"
-TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv6m', ' -march=armv6-m', '', d)}"
-MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv6m', 'armv6m:', '' ,d)}"
-
-ARMPKGARCH:tune-cortexm0 = "cortexm0"
-TUNE_FEATURES:tune-cortexm0 = "${TUNE_FEATURES:tune-armv6} cortexm0"
-
-PACKAGE_EXTRA_ARCHS:tune-cortexm0 = "${PACKAGE_EXTRA_ARCHS:tune-armv6m} cortexm0-vfp"
-
-TUNE_FEATURES:tune-cortexm0 = "armv6m vfp cortexm0 thumb no-thumb-interwork soft"
-
--
2.17.1


[meta-zephyr][PATCH 3/3] zephyr-bsp: update cortex-m4's to use new path

Jon Mason
 

Update the machines using cortex m4s to use the OE tune file, and remove
the duplicate one locally.

Signed-off-by: Jon Mason <jon.mason@...>
---
.../conf/machine/include/nrf52.inc | 4 ++--
.../machine/include/stm32mp1-cortex-m4.inc | 4 ++--
.../conf/machine/include/tune-cortexm4.inc | 19 -------------------
3 files changed, 4 insertions(+), 23 deletions(-)
delete mode 100644 meta-zephyr-bsp/conf/machine/include/tune-cortexm4.inc

diff --git a/meta-zephyr-bsp/conf/machine/include/nrf52.inc b/meta-zephyr-bsp/conf/machine/include/nrf52.inc
index 4162d3e..bd72195 100644
--- a/meta-zephyr-bsp/conf/machine/include/nrf52.inc
+++ b/meta-zephyr-bsp/conf/machine/include/nrf52.inc
@@ -3,9 +3,9 @@

#@DESCRIPTION: Machine configuration for Nordic Semiconductor nRF52xxx (Cortex-M4) SoC.

-require conf/machine/include/tune-cortexm4.inc
+require conf/machine/include/arm/armv7m/tune-cortexm4.inc

-TUNE_FEATURES = "armv7m cortexm4"
+TUNE_FEATURES = "armv7em cortexm4"

# Target type for this machine used by Pyocd
PYOCD_TARGET = "nrf52"
diff --git a/meta-zephyr-bsp/conf/machine/include/stm32mp1-cortex-m4.inc b/meta-zephyr-bsp/conf/machine/include/stm32mp1-cortex-m4.inc
index 0d46620..94b2e05 100644
--- a/meta-zephyr-bsp/conf/machine/include/stm32mp1-cortex-m4.inc
+++ b/meta-zephyr-bsp/conf/machine/include/stm32mp1-cortex-m4.inc
@@ -3,6 +3,6 @@

#@DESCRIPTION: Machine configuration for Cortex-M4 core of STMicroelectronics STM32MP1 SoC.

-require conf/machine/include/tune-cortexm4.inc
+require conf/machine/include/arm/armv7m/tune-cortexm4.inc

-TUNE_FEATURES = "armv7m cortexm4"
+TUNE_FEATURES = "armv7em cortexm4"
diff --git a/meta-zephyr-bsp/conf/machine/include/tune-cortexm4.inc b/meta-zephyr-bsp/conf/machine/include/tune-cortexm4.inc
deleted file mode 100644
index b3092d8..0000000
--- a/meta-zephyr-bsp/conf/machine/include/tune-cortexm4.inc
+++ /dev/null
@@ -1,19 +0,0 @@
-DEFAULTTUNE ?= "cortexm4"
-
-require conf/machine/include/arm/arch-armv7a.inc
-
-TUNEVALID[cortexm4] = "Enable Cortex-M4 specific processor optimizations"
-TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexm4', ' -mcpu=cortex-m4', '', d)}"
-AVAILTUNES += "cortexm4"
-
-TUNEVALID[armv7m] = "Enable Cortex-M4 specific processor optimizations"
-TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', ' -march=armv7e-m', '', d)}"
-MACHINEOVERRIDES =. "${@bb.utils.contains('TUNE_FEATURES', 'armv7m', 'armv7m:', '' ,d)}"
-
-TUNE_PKGARCH:tune-cortexm4 = "cortexm4"
-
-ARMPKGARCH:tune-cortexm4 = "armv7m"
-PACKAGE_EXTRA_ARCHS:tune-cortexm4 ="cortexm4"
-
-TUNE_FEATURES:tune-cortexm4 = "armv7m vfp cortexm4"
-PACKAGE_EXTRA_ARCHS:tune-cortexm4 = "${PACKAGE_EXTRA_ARCHS:tune-armv7at} armv7m-vfp armv7m"
--
2.17.1


[meta-zephyr][PATCH 2/2] zephyr-bsp: zephyr parameters update

Jon Mason
 

Update the parameters being run in qemu to get more stable results.
Values taken from zephyr qemu. Also, use QB_GRAPHICS instead of
QB_OPT_APPEND for the relevant places.

Signed-off-by: Jon Mason <jon.mason@...>
---
.gitlab-ci.yml | 3 ++-
ci/qemu-cortex-m3.yml | 6 ------
meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf | 2 +-
meta-zephyr-bsp/conf/machine/qemu-cortex-m0.conf | 4 ++--
meta-zephyr-bsp/conf/machine/qemu-cortex-m3.conf | 3 ++-
meta-zephyr-bsp/conf/machine/qemu-cortex-r5.conf | 2 +-
meta-zephyr-bsp/conf/machine/qemu-x86.conf | 2 +-
7 files changed, 9 insertions(+), 13 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e0bf84e..082cd44 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -88,7 +88,8 @@ qemu-cortex-m0:
extends: .build
parallel:
matrix:
- - TESTING: testimage
+ - TOOLCHAIN: [default, zephyr-toolchain]
+ TESTING: testimage

qemu-cortex-m3:
extends: .build
diff --git a/ci/qemu-cortex-m3.yml b/ci/qemu-cortex-m3.yml
index b01480c..46fd551 100644
--- a/ci/qemu-cortex-m3.yml
+++ b/ci/qemu-cortex-m3.yml
@@ -3,10 +3,4 @@ header:
includes:
- ci/base.yml

-local_conf_header:
- nonbuilding_tests: |
- ZEPHYRTESTS:remove = "common context pending poll sleep"
- qemu_opts: |
- QB_OPT_APPEND = "-icount shift=3,align=off,sleep=on -rtc clock=vm"
-
machine: qemu-cortex-m3
diff --git a/meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf b/meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf
index 97e536e..e21f3da 100644
--- a/meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf
+++ b/meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf
@@ -11,7 +11,7 @@ TCLIBC = "newlib"
QB_SYSTEM_NAME = "qemu-system-aarch64"
QB_MACHINE = "-machine virt,secure=on,gic-version=3"
QB_CPU = "-cpu cortex-a53"
-QB_OPT_APPEND = "-nographic -vga none"
+QB_GRAPHICS = "-nographic -vga none"
QB_OPT_APPEND = "-icount shift=4,align=off,sleep=on -rtc clock=vm"

# Zephyr RTOS settings
diff --git a/meta-zephyr-bsp/conf/machine/qemu-cortex-m0.conf b/meta-zephyr-bsp/conf/machine/qemu-cortex-m0.conf
index 1cf2bb0..736579e 100644
--- a/meta-zephyr-bsp/conf/machine/qemu-cortex-m0.conf
+++ b/meta-zephyr-bsp/conf/machine/qemu-cortex-m0.conf
@@ -14,9 +14,9 @@ TCLIBC = "newlib"
QB_SYSTEM_NAME = "qemu-system-arm"
QB_MACHINE = "-machine microbit"
QB_CPU = "-cpu cortex-m0"
-QB_OPT_APPEND = "-nographic -vga none"
+QB_GRAPHICS = "-nographic -vga none"
QB_RNG = ""
-QB_OPT_APPEND = "-icount shift=6,align=off,sleep=on -rtc clock=vm"
+QB_OPT_APPEND = "-icount shift=6,align=off,sleep=off -rtc clock=vm"

# Zephyr RTOS settings
ZEPHYR_BOARD = "qemu_cortex_m0"
diff --git a/meta-zephyr-bsp/conf/machine/qemu-cortex-m3.conf b/meta-zephyr-bsp/conf/machine/qemu-cortex-m3.conf
index 835a775..e6edefb 100644
--- a/meta-zephyr-bsp/conf/machine/qemu-cortex-m3.conf
+++ b/meta-zephyr-bsp/conf/machine/qemu-cortex-m3.conf
@@ -10,8 +10,9 @@ ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
# For runqemu
QB_SYSTEM_NAME = "qemu-system-arm"
QB_MACHINE = "-machine lm3s6965evb"
-QB_OPT_APPEND = "-nographic -vga none"
+QB_GRAPHICS = "-nographic -vga none"
QB_CPU = "-cpu cortex-m3"
QB_RNG = ""
+QB_OPT_APPEND = "-icount shift=6,align=off,sleep=off -rtc clock=vm"

ARCH:qemu-cortex-m3 = "arm"
diff --git a/meta-zephyr-bsp/conf/machine/qemu-cortex-r5.conf b/meta-zephyr-bsp/conf/machine/qemu-cortex-r5.conf
index 29b37d7..5a0ea69 100644
--- a/meta-zephyr-bsp/conf/machine/qemu-cortex-r5.conf
+++ b/meta-zephyr-bsp/conf/machine/qemu-cortex-r5.conf
@@ -13,7 +13,7 @@ QB_SYSTEM_NAME = "qemu-system-aarch64"
QB_MACHINE = "-machine xlnx-zcu102"
QB_CPU = "-cpu cortex-r5"
QB_MEM = "-m 64k"
-QB_OPT_APPEND = "-nographic -vga none"
+QB_GRAPHICS = "-nographic -vga none"
QB_RNG = ""

# Zephyr RTOS settings
diff --git a/meta-zephyr-bsp/conf/machine/qemu-x86.conf b/meta-zephyr-bsp/conf/machine/qemu-x86.conf
index ae7716c..0333d7c 100644
--- a/meta-zephyr-bsp/conf/machine/qemu-x86.conf
+++ b/meta-zephyr-bsp/conf/machine/qemu-x86.conf
@@ -10,7 +10,7 @@ ZEPHYR_INHERIT_CLASSES += "zephyr-qemuboot"
# For runqemu
QB_SYSTEM_NAME = "qemu-system-i386"
QB_MACHINE = "-machine type=pc-q35-2.10"
-QB_OPT_APPEND = "-nographic -no-acpi"
+QB_GRAPHICS = "-nographic -no-acpi"
QB_CPU:x86 = "-cpu qemu32,+nx,+pae"
QB_CPU_KVM:x86 = "-cpu kvm32"

--
2.17.1


[meta-zephyr][PATCH 1/2] zephyr-bsp/qemu-cortex-a53: run testimage

Jon Mason
 

Make the changes necessary to get testimage working and run it as part
of CI

Signed-off-by: Jon Mason <jon.mason@...>
---
.gitlab-ci.yml | 1 +
ci/qemu-cortex-a53.yml | 4 ++++
meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf | 3 ++-
3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 145aefd..e0bf84e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -82,6 +82,7 @@ qemu-cortex-a53:
parallel:
matrix:
- TOOLCHAIN: [default, zephyr-toolchain]
+ TESTING: testimage

qemu-cortex-m0:
extends: .build
diff --git a/ci/qemu-cortex-a53.yml b/ci/qemu-cortex-a53.yml
index e77da8b..ca8b649 100644
--- a/ci/qemu-cortex-a53.yml
+++ b/ci/qemu-cortex-a53.yml
@@ -3,4 +3,8 @@ header:
includes:
- ci/base.yml

+local_conf_header:
+ failing_tests: |
+ ZEPHYRTESTS:remove = "interrupt"
+
machine: qemu-cortex-a53
diff --git a/meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf b/meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf
index b97cde7..97e536e 100644
--- a/meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf
+++ b/meta-zephyr-bsp/conf/machine/qemu-cortex-a53.conf
@@ -9,9 +9,10 @@ TCLIBC = "newlib"

# For runqemu
QB_SYSTEM_NAME = "qemu-system-aarch64"
-QB_MACHINE = "-machine virt"
+QB_MACHINE = "-machine virt,secure=on,gic-version=3"
QB_CPU = "-cpu cortex-a53"
QB_OPT_APPEND = "-nographic -vga none"
+QB_OPT_APPEND = "-icount shift=4,align=off,sleep=on -rtc clock=vm"

# Zephyr RTOS settings
ZEPHYR_BOARD = "qemu_cortex_a53"
--
2.17.1


Is there a way to prevent bitbake from trying to demand dependencies it comes up with based on installed files?

Kuba Sanak
 

Hi all,

First time posting to this mailing list, hope this email kind of email is what it’s for!

Background / what I'm doing: I'm creating an image which uses a docker to do stuff. Loading new docker images takes a long time on my target so I have created a recipe which essentially pre-loads docker store with the said docker image at build time and installs it on the target filesystem, so that it can just spin the container up from it after being flashed. Yocto version Hardknott is being used.

The problem: the resulting docker store I'm installing on the target (at `/var/lib/docker`) contains the filesystem of the container. Some files in that filesystem have dependencies which are satisfied internally when that filesystem exists as a docker container. However, bitbake is trying to be clever and shouts at me for those dependencies not being satisfied overall.

Building the docker-image recipe by itself works fine, but when I include it in the whole image for my target I get errors which essentially amount to

   Error:
    Problem: conflicting requests
     - nothing provides /usr/bin/python2.6 needed by my-docker-image-baked-in-1.0+git0+14055cb562-r0.cortexa53_crypto
     - nothing provides libEGL.so needed by my-docker-image-baked-in-1.0+git0+14055cb562-r0.cortexa53_crypto
       etc...

Which are false alarms as those files are indeed extant at my in my docker store and in the docker container being spun up.

I've spent so much time now trying to find out how to prevent bitbake from trying to save me from myself, but simply found no way to coax it into believing me that I really don't need those dependencies. Is there any way to actually convince it those are not needed? Or to prevent package created by my docker-store-constructing recipe from picking up those fake dependancies?

Best,
Kuba


Re: #yocto #dunfell #yocto #dunfell

Monsees, Steven C (US)
 

 

Thanks… will give it a try.

 

From: Ross Burton <Ross.Burton@...>
Sent: Tuesday, September 20, 2022 11:38 AM
To: Monsees, Steven C (US) <steven.monsees@...>; yocto@...
Subject: Re: [yocto] #yocto #dunfell

 

External Email Alert

This email has been sent from an account outside of the BAE Systems network.

Please treat the email with caution, especially if you are requested to click on a link, decrypt/open an attachment, or enable macros.  For further information on how to spot phishing, access “Cybersecurity OneSpace Page” and report phishing by clicking the button “Report Phishing” on the Outlook toolbar.

 

Hi,

 

SBSA is EDK2 based, which is basically incredibly painful to patch.  The source files are windows-style CR/LF so your patch needs to have CR/LF, but if the whole patch has CR/LF then git “helpfully” transforms the patch to just unix-style LF, which doesn’t apply.

 

The “solution” (workaround) is to convert the patch to LF encoding, and manually add the CR characters to the end of each line in the patch body.

 

The good news is that EDK2 is moving to LF encoding, so this will be solved at some point.

 

Ross

 

 

From: yocto@... <yocto@...> on behalf of Monsees, Steven C (US) via lists.yoctoproject.org <steven.monsees=baesystems.com@...>
Date: Tuesday, 20 September 2022 at 16:05
To: Monsees, Steven C (US) <steven.monsees@...>, yocto@... <yocto@...>
Subject: Re: [yocto] #yocto #dunfell

 

Any hints or ideas on what I might be doing wrong would be appreciated…

 

From: yocto@... <yocto@...> On Behalf Of Monsees, Steven C (US) via lists.yoctoproject.org
Sent: Monday, September 19, 2022 2:22 PM
To: yocto@...
Subject: [yocto] #yocto #dunfell

 

External Email Alert

This email has been sent from an account outside of the BAE Systems network.

Please treat the email with caution, especially if you are requested to click on a link, decrypt/open an attachment, or enable macros.  For further information on how to spot phishing, access “Cybersecurity OneSpace Page” and report phishing by clicking the button “Report Phishing” on the Outlook toolbar.

 

 

I am seeing an error when I attempt to apply a patch, and could use some clarification or way to resolve…

 

Am doing something wrong in patch creation ?

What is meant by :  ”Patch console.patch does not apply (enforce with -f)” ?

How can I best resolve this issue ?

 

I edited a file in the recipe’s git repo in order to create the patch for the change:

 

git diff -u console.c

 

which I used as my patch:

 

diff --git a/lib/console.c b/lib/console.c

index 9c10560..b932a44 100644

--- a/lib/console.c

+++ b/lib/console.c

@@ -357,7 +357,7 @@ static struct {

        {  EFI_SECURITY_VIOLATION,     L"Security Violation"},

 

        // warnings

-       {  EFI_WARN_UNKOWN_GLYPH,      L"Warning Unknown Glyph"},

+       {  EFI_WARN_UNKNOWN_GLYPH,     L"Warning Unknown Glyph"},

        {  EFI_WARN_DELETE_FAILURE,    L"Warning Delete Failure"},

        {  EFI_WARN_WRITE_FAILURE,     L"Warning Write Failure"},

        {  EFI_WARN_BUFFER_TOO_SMALL,  L"Warning Buffer Too Small"},

 

I am getting the following error when the patch is applied:

 

ERROR: efitools-native-1.7.0+gitAUTOINC+0649468475-r0 do_patch: Applying patch 'console.patch' on target directory '/disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/builds/sbca-default/tmp/work/x86_64-linux/efitools-native/1.7.0+gitAUTOINC+0649468475-r0/git'

Command Error: 'quilt --quiltrc /disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/builds/sbca-default/tmp/work/x86_64-linux/efitools-native/1.7.0+gitAUTOINC+0649468475-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:

Applying patch console.patch

patching file lib/console.c

Hunk #1 FAILED at 357.

1 out of 1 hunk FAILED -- rejects in file lib/console.c

Patch console.patch does not apply (enforce with -f)

ERROR: Logfile of failure stored in: /disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/builds/sbca-default/tmp/work/x86_64-linux/efitools-native/1.7.0+gitAUTOINC+0649468475-r0/temp/log.do_patch.7615

ERROR: Task (/disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/meta-bae/meta-limws/meta-intel/meta-sbca/recipes-bsp/efitools/efitools-native_git.bb:do_patch) failed with exit code '1'

 

Thanks,

Steve


Re: #yocto #dunfell #yocto #dunfell

Ross Burton
 

Hi,

 

SBSA is EDK2 based, which is basically incredibly painful to patch.  The source files are windows-style CR/LF so your patch needs to have CR/LF, but if the whole patch has CR/LF then git “helpfully” transforms the patch to just unix-style LF, which doesn’t apply.

 

The “solution” (workaround) is to convert the patch to LF encoding, and manually add the CR characters to the end of each line in the patch body.

 

The good news is that EDK2 is moving to LF encoding, so this will be solved at some point.

 

Ross

 

 

From: yocto@... <yocto@...> on behalf of Monsees, Steven C (US) via lists.yoctoproject.org <steven.monsees=baesystems.com@...>
Date: Tuesday, 20 September 2022 at 16:05
To: Monsees, Steven C (US) <steven.monsees@...>, yocto@... <yocto@...>
Subject: Re: [yocto] #yocto #dunfell

 

Any hints or ideas on what I might be doing wrong would be appreciated…

 

From: yocto@... <yocto@...> On Behalf Of Monsees, Steven C (US) via lists.yoctoproject.org
Sent: Monday, September 19, 2022 2:22 PM
To: yocto@...
Subject: [yocto] #yocto #dunfell

 

External Email Alert

This email has been sent from an account outside of the BAE Systems network.

Please treat the email with caution, especially if you are requested to click on a link, decrypt/open an attachment, or enable macros.  For further information on how to spot phishing, access “Cybersecurity OneSpace Page” and report phishing by clicking the button “Report Phishing” on the Outlook toolbar.

 

 

I am seeing an error when I attempt to apply a patch, and could use some clarification or way to resolve…

 

Am doing something wrong in patch creation ?

What is meant by :  ”Patch console.patch does not apply (enforce with -f)” ?

How can I best resolve this issue ?

 

I edited a file in the recipe’s git repo in order to create the patch for the change:

 

git diff -u console.c

 

which I used as my patch:

 

diff --git a/lib/console.c b/lib/console.c

index 9c10560..b932a44 100644

--- a/lib/console.c

+++ b/lib/console.c

@@ -357,7 +357,7 @@ static struct {

        {  EFI_SECURITY_VIOLATION,     L"Security Violation"},

 

        // warnings

-       {  EFI_WARN_UNKOWN_GLYPH,      L"Warning Unknown Glyph"},

+       {  EFI_WARN_UNKNOWN_GLYPH,     L"Warning Unknown Glyph"},

        {  EFI_WARN_DELETE_FAILURE,    L"Warning Delete Failure"},

        {  EFI_WARN_WRITE_FAILURE,     L"Warning Write Failure"},

        {  EFI_WARN_BUFFER_TOO_SMALL,  L"Warning Buffer Too Small"},

 

I am getting the following error when the patch is applied:

 

ERROR: efitools-native-1.7.0+gitAUTOINC+0649468475-r0 do_patch: Applying patch 'console.patch' on target directory '/disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/builds/sbca-default/tmp/work/x86_64-linux/efitools-native/1.7.0+gitAUTOINC+0649468475-r0/git'

Command Error: 'quilt --quiltrc /disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/builds/sbca-default/tmp/work/x86_64-linux/efitools-native/1.7.0+gitAUTOINC+0649468475-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:

Applying patch console.patch

patching file lib/console.c

Hunk #1 FAILED at 357.

1 out of 1 hunk FAILED -- rejects in file lib/console.c

Patch console.patch does not apply (enforce with -f)

ERROR: Logfile of failure stored in: /disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/builds/sbca-default/tmp/work/x86_64-linux/efitools-native/1.7.0+gitAUTOINC+0649468475-r0/temp/log.do_patch.7615

ERROR: Task (/disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/meta-bae/meta-limws/meta-intel/meta-sbca/recipes-bsp/efitools/efitools-native_git.bb:do_patch) failed with exit code '1'

 

Thanks,

Steve


Re: #yocto #dunfell #yocto #dunfell

Monsees, Steven C (US)
 

 

Any hints or ideas on what I might be doing wrong would be appreciated…

 

From: yocto@... <yocto@...> On Behalf Of Monsees, Steven C (US) via lists.yoctoproject.org
Sent: Monday, September 19, 2022 2:22 PM
To: yocto@...
Subject: [yocto] #yocto #dunfell

 

External Email Alert

This email has been sent from an account outside of the BAE Systems network.

Please treat the email with caution, especially if you are requested to click on a link, decrypt/open an attachment, or enable macros.  For further information on how to spot phishing, access “Cybersecurity OneSpace Page” and report phishing by clicking the button “Report Phishing” on the Outlook toolbar.

 

 

I am seeing an error when I attempt to apply a patch, and could use some clarification or way to resolve…

 

Am doing something wrong in patch creation ?

What is meant by :  ”Patch console.patch does not apply (enforce with -f)” ?

How can I best resolve this issue ?

 

I edited a file in the recipe’s git repo in order to create the patch for the change:

 

git diff -u console.c

 

which I used as my patch:

 

diff --git a/lib/console.c b/lib/console.c

index 9c10560..b932a44 100644

--- a/lib/console.c

+++ b/lib/console.c

@@ -357,7 +357,7 @@ static struct {

        {  EFI_SECURITY_VIOLATION,     L"Security Violation"},

 

        // warnings

-       {  EFI_WARN_UNKOWN_GLYPH,      L"Warning Unknown Glyph"},

+       {  EFI_WARN_UNKNOWN_GLYPH,     L"Warning Unknown Glyph"},

        {  EFI_WARN_DELETE_FAILURE,    L"Warning Delete Failure"},

        {  EFI_WARN_WRITE_FAILURE,     L"Warning Write Failure"},

        {  EFI_WARN_BUFFER_TOO_SMALL,  L"Warning Buffer Too Small"},

 

I am getting the following error when the patch is applied:

 

ERROR: efitools-native-1.7.0+gitAUTOINC+0649468475-r0 do_patch: Applying patch 'console.patch' on target directory '/disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/builds/sbca-default/tmp/work/x86_64-linux/efitools-native/1.7.0+gitAUTOINC+0649468475-r0/git'

Command Error: 'quilt --quiltrc /disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/builds/sbca-default/tmp/work/x86_64-linux/efitools-native/1.7.0+gitAUTOINC+0649468475-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0  Output:

Applying patch console.patch

patching file lib/console.c

Hunk #1 FAILED at 357.

1 out of 1 hunk FAILED -- rejects in file lib/console.c

Patch console.patch does not apply (enforce with -f)

ERROR: Logfile of failure stored in: /disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/builds/sbca-default/tmp/work/x86_64-linux/efitools-native/1.7.0+gitAUTOINC+0649468475-r0/temp/log.do_patch.7615

ERROR: Task (/disk0/scratch/yocto/workspace/poky-dunfell-23.0.19/meta-bae/meta-limws/meta-intel/meta-sbca/recipes-bsp/efitools/efitools-native_git.bb:do_patch) failed with exit code '1'

 

Thanks,

Steve


Yocto Project Status 20 September 2022 (WW38)

Stephen Jolley
 

Current Dev Position: YP 4.1 M4 (Feature Freeze)

Next Deadline: 3rd October 2022 YP 4.1 M4 Build 

 

Next Team Meetings:

 

Key Status/Updates:

  • 4.1 M3 rc2 passed QA except for one issue from M2 we believed fixed but which isn’t.. We’ll likely aim to fix that in M4 and release rc2 for M3 (pending TSC approval).
  • Last week was quieter as many people were in Dublin for ELC-E. Thanks in particular to all who presented or otherwise helped with the booth or other events there.
  • We’ve seen a good reduction in CVEs in dunfell and kirkstone but master is still concerning. A number of the CVEs there have been reported for version constraint issues to NIST.       
  • Help is very much welcome in trying to resolve our autobuilder intermittent issues. You can see the list of failures we’re continuing to see by searching for the “AB-INT” tag in bugzilla: https://bugzilla.yoctoproject.org/buglist.cgi?quicksearch=AB-INT

 

Ways to contribute:

 

YP 4.1 Milestone Dates:

  • YP 4.1 M3 in review for release
  • YP 4.1 M4 build date 2022/10/03
  • YP 4.1 M4 Release date 2022/10/28

 

Upcoming dot releases:

  • YP 4.0.4 build date 2022/09/19
  • YP 4.0.4 Release date 2022/09/30
  • YP 3.1.20 build date 2022/10/10
  • YP 3.1.20 Release date 2022/10/21
  • YP 4.0.5 build date 2022/10/31
  • YP 4.0.5 Release date 2022/11/11

 

Tracking Metrics:

 

The Yocto Project’s technical governance is through its Technical Steering Committee, more information is available at:

https://wiki.yoctoproject.org/wiki/TSC

 

The Status reports are now stored on the wiki at: https://wiki.yoctoproject.org/wiki/Weekly_Status

 

[If anyone has suggestions for other information you’d like to see on this weekly status update, let us know!]

 

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

(    Cell:                (208) 244-4460

* Email:              sjolley.yp.pm@...

 


Re: Adding Vulkan to core-image-weston

Alexander Kanavin
 

What often works is running it under strace - you might be able to see the one key syscall that causes the failure. Otherwise you might have to go through the heavier gdb step through.

Alex

On Tue 20. Sep 2022 at 10.25, PHIL <heideggm@...> wrote:
Ok it seems to use Software now given how slow weston-simple-egl has become. But vulkaninfo still fails with ERROR_INCOMPATIBLE_DRIVER.
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.


Re: Adding Vulkan to core-image-weston

Edgar Mobile
 

Ok it seems to use Software now given how slow weston-simple-egl has become. But vulkaninfo still fails with ERROR_INCOMPATIBLE_DRIVER.
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.


Re: Adding Vulkan to core-image-weston

Alexander Kanavin
 

It helps if you say what you did precisely and show the complaint.

Alex

On Tue 20. Sep 2022 at 9.40, PHIL <heideggm@...> wrote:
What would be the simplest way to achieve that with bitbake? I tried swrast in mesa yesterday but it complained because it wants Gallium.


Am 20. September 2022 10:23:38 MESZ schrieb Alexander Kanavin <alex.kanavin@...>:
Don’t bother with virgl yet. Start with the pure software implementation in Mesa. 

Alex

On Tue 20. Sep 2022 at 8.39, Edgar Mobile <heideggm@...> wrote:
Ok, I added these two lines now to a file named virglrenderer_0.9.1.bb . Bitbake now says:

ERROR: Nothing PROVIDES 'ninja-nativevulkan-loader' (but virtual:native: ... DEPENDS on or otherwise requires it)
ERROR: Required build target 'core-image-weston' has no buildable providers.
Missing or unbuildable dependency chain was: {'core-image-weston', 'meta-extsdk-toolchain', 'qemu-helper-native', 'qemu-system-native', 'virglrenderer-native', 'ninja-nativevulkan-loader' 


From: Markus Volk <f_l_k@...>
Sent: Monday, September 19, 2022 5:16 PM
To: Edgar Mobile <heideggm@...>
Cc: Alexander Kanavin <alex.kanavin@...>; yocto@... <yocto@...>
Subject: Re: [yocto] Adding Vulkan to core-image-weston
 
Am Mo, 19. Sep 2022 um 16:54:52 +0000 schrieb Edgar Mobile <heideggm@...>:
This wasn't enough

i guess you would also need to add venus support to virglrenderer.bb for qemu:

DEPENDS:append = "vulkan-loader vulkan-headers"
EXTRA_OEMESON += "-Dvenus-experimental=true"

but i have never tested this
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.


libsemanage 3.4 issue

Oleksiy Obitotskyy
 

Hi,

We are trying to use meta-selinux master branch and I got issue during compilation.
nativesdk-libsemanage failed to compile with error:

make[1]: Entering directory '<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/git/libsemanage/src'
swig -Wall -python -o semanageswig_wrap.c -outdir ./ semanageswig_python.i
x86_64-xesdk-linux-gcc --sysroot=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/recipe-sysroot -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/git/libsemanage=/usr/src/debug/nativesdk-libsemanage/3.4-r0 -fdebug-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/git/libsemanage=/usr/src/debug/nativesdk-libsemanage/3.4-r0 -fmacro-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/git/libsemanage=/usr/src/debug/nativesdk-libsemanage/3.4-r0 -fdebug-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/git/libsemanage=/usr/src/debug/nativesdk-libsemanage/3.4-r0 -fdebug-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/recipe-sysroot= -fmacro-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/recipe-sysroot= -fdebug-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/recipe-sysroot-native= -fmacro-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/git/libsemanage=/usr/src/debug/nativesdk-libsemanage/3.4-r0 -fdebug-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/git/libsemanage=/usr/src/debug/nativesdk-libsemanage/3.4-r0 -fmacro-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/git/libsemanage=/usr/src/debug/nativesdk-libsemanage/3.4-r0 -fdebug-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/git/libsemanage=/usr/src/debug/nativesdk-libsemanage/3.4-r0 -fdebug-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/recipe-sysroot= -fmacro-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/recipe-sysroot= -fdebug-prefix-map=<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/recipe-sysroot-native= -mtune=generic -DDISABLE_AUDIT -I../include -D_GNU_SOURCE -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable -Wno-shadow -Wno-unused-parameter -Wno-missing-prototypes -I<...>/sdk-master-next/build/tmp/work/x86_64-nativesdk-xesdk-linux/nativesdk-libsemanage/3.4-r0/recipe-sysroot/usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-xesdk-linux/usr/include/python3.10 -fPIC -DSHARED -c -o python-3.10semanageswig_wrap.lo semanageswig_wrap.c
semanageswig_wrap.c:154:11: fatal error: Python.h: No such file or directory
154 | # include <Python.h>
| ^~~~~~~~~~
compilation terminated.

It looks like for nativesdk-libsemanage we have implicit dependency on native-python so recipe-sysroot-native populated with python header. But recipe looks for recipe-sysroot for headers.

Adding python3 to dependencies fix this issue:
-DEPENDS = "libsepol libselinux bison-native swig-native"
+DEPENDS = "libsepol libselinux python3 bison-native swig-native"

But I'm not sure this is right and probably issue is in global problem of yocto + python cross compilation issues.

Regards,
Oleksiy


Re: Adding Vulkan to core-image-weston

Edgar Mobile
 

What would be the simplest way to achieve that with bitbake? I tried swrast in mesa yesterday but it complained because it wants Gallium.

Am 20. September 2022 10:23:38 MESZ schrieb Alexander Kanavin <alex.kanavin@...>:

Don’t bother with virgl yet. Start with the pure software implementation in Mesa. 

Alex

On Tue 20. Sep 2022 at 8.39, Edgar Mobile <heideggm@...> wrote:
Ok, I added these two lines now to a file named virglrenderer_0.9.1.bb . Bitbake now says:

ERROR: Nothing PROVIDES 'ninja-nativevulkan-loader' (but virtual:native: ... DEPENDS on or otherwise requires it)
ERROR: Required build target 'core-image-weston' has no buildable providers.
Missing or unbuildable dependency chain was: {'core-image-weston', 'meta-extsdk-toolchain', 'qemu-helper-native', 'qemu-system-native', 'virglrenderer-native', 'ninja-nativevulkan-loader' 


From: Markus Volk <f_l_k@...>
Sent: Monday, September 19, 2022 5:16 PM
To: Edgar Mobile <heideggm@...>
Cc: Alexander Kanavin <alex.kanavin@...>; yocto@... <yocto@...>
Subject: Re: [yocto] Adding Vulkan to core-image-weston
 
Am Mo, 19. Sep 2022 um 16:54:52 +0000 schrieb Edgar Mobile <heideggm@...>:
This wasn't enough

i guess you would also need to add venus support to virglrenderer.bb for qemu:

DEPENDS:append = "vulkan-loader vulkan-headers"
EXTRA_OEMESON += "-Dvenus-experimental=true"

but i have never tested this
--
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.


Re: Adding Vulkan to core-image-weston

Alexander Kanavin
 

Don’t bother with virgl yet. Start with the pure software implementation in Mesa. 

Alex

On Tue 20. Sep 2022 at 8.39, Edgar Mobile <heideggm@...> wrote:
Ok, I added these two lines now to a file named virglrenderer_0.9.1.bb . Bitbake now says:

ERROR: Nothing PROVIDES 'ninja-nativevulkan-loader' (but virtual:native: ... DEPENDS on or otherwise requires it)
ERROR: Required build target 'core-image-weston' has no buildable providers.
Missing or unbuildable dependency chain was: {'core-image-weston', 'meta-extsdk-toolchain', 'qemu-helper-native', 'qemu-system-native', 'virglrenderer-native', 'ninja-nativevulkan-loader' 


From: Markus Volk <f_l_k@...>
Sent: Monday, September 19, 2022 5:16 PM
To: Edgar Mobile <heideggm@...>
Cc: Alexander Kanavin <alex.kanavin@...>; yocto@... <yocto@...>
Subject: Re: [yocto] Adding Vulkan to core-image-weston
 
Am Mo, 19. Sep 2022 um 16:54:52 +0000 schrieb Edgar Mobile <heideggm@...>:
This wasn't enough

i guess you would also need to add venus support to virglrenderer.bb for qemu:

DEPENDS:append = "vulkan-loader vulkan-headers"
EXTRA_OEMESON += "-Dvenus-experimental=true"

but i have never tested this