Re: [OE-core] [yocto] QA notification for completed autobuilder build (yocto-4.2.rc3)

2023-04-25 Thread Jing Hui Tham
Hi all,
 
Intel and WR YP QA is planning for QA execution for YP build yocto- 
yocto-4.2.rc3. We are planning to execute following tests for this cycle:
 
OEQA-manual tests for following module:
1. OE-Core
2. BSP-hw
 
Runtime auto test for following platforms:
1. MinnowTurbot 32-bit
2. NUC 7
3. ADL
4. TGL NUC 11
5. Edgerouter
6. Beaglebone
 
ETA for completion next Monday, 1st of May.
 
Best regards,
Jing Hui




> -Original Message-
> From: yo...@lists.yoctoproject.org  On
> Behalf Of Pokybuild User
> Sent: Sunday, April 23, 2023 1:26 AM
> To: yo...@lists.yoctoproject.org
> Cc: qa-build-notificat...@lists.yoctoproject.org
> Subject: [yocto] QA notification for completed autobuilder build (yocto-
> 4.2.rc3)
> 
> 
> A build flagged for QA (yocto-4.2.rc3) was completed on the autobuilder
> and is available at:
> 
> 
> https://autobuilder.yocto.io/pub/releases/yocto-4.2.rc3
> 
> 
> Build hash information:
> 
> bitbake: d97d62e2cbe4bae17f0886f3b4759e8f9ba6d38c
> meta-agl: 09135164a21a216c6e3e75d7decce896b92962f0
> meta-arm: ea407ce849f7f181f5b43a2495436a720a32cbef
> meta-aws: cad4b8aabc9d2cde9fb3009ae902faa32bc8f1db
> meta-intel: 48ddf2b0e6fa5450e63878e1fc31dfc91cf3fd94
> meta-mingw: 250617ffa524c082b848487359b9d045703d59c2
> meta-openembedded: afbc2234898088311c38d78997f63992e38aa08a
> meta-virtualization: 50ceb5ad53ac721a25bbbce22eb1d881cc947764
> oecore: c57d1a561db563ed2f521bbac5fc12d4ac8e11a7
> poky: 21790e71d55f417f27cd51fae9dd47549758d4a0
> 
> 
> 
> This is an automated message from the Yocto Project Autobuilder
> Git: git://git.yoctoproject.org/yocto-autobuilder2
> Email: richard.pur...@linuxfoundation.org
> 
> 
> 

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



[OE-Core][PATCH] rust: Upgrade 1.68.2 -> 1.69.0

2023-04-25 Thread Alex Kiernan
Rebase patches, drop crossbeam_atomic is this fully merged upstream.

https://blog.rust-lang.org/2023/04/20/Rust-1.69.0.html

Signed-off-by: Alex Kiernan 
---

 meta/conf/distro/include/tcmode-default.inc   |  2 +-
 .../rust/{cargo_1.68.2.bb => cargo_1.69.0.bb} |  0
 ...-Do-not-use-LFS64-on-linux-with-musl.patch | 59 -
 ...efine-SOCK_SEQPACKET-in-common-place.patch | 52 ++-
 .../rust/files/crossbeam_atomic.patch | 50 --
 .../rust/files/hardcodepaths.patch| 11 ++--
 ...ibstd-rs_1.68.2.bb => libstd-rs_1.69.0.bb} |  0
 68.2.bb => rust-cross-canadian_1.69.0.bb} |  0
 ...ust-llvm_1.68.2.bb => rust-llvm_1.69.0.bb} |  0
 meta/recipes-devtools/rust/rust-snapshot.inc  | 66 +--
 meta/recipes-devtools/rust/rust-source.inc|  3 +-
 .../rust/{rust_1.68.2.bb => rust_1.69.0.bb}   |  0
 12 files changed, 100 insertions(+), 143 deletions(-)
 rename meta/recipes-devtools/rust/{cargo_1.68.2.bb => cargo_1.69.0.bb} (100%)
 delete mode 100644 meta/recipes-devtools/rust/files/crossbeam_atomic.patch
 rename meta/recipes-devtools/rust/{libstd-rs_1.68.2.bb => libstd-rs_1.69.0.bb} 
(100%)
 rename meta/recipes-devtools/rust/{rust-cross-canadian_1.68.2.bb => 
rust-cross-canadian_1.69.0.bb} (100%)
 rename meta/recipes-devtools/rust/{rust-llvm_1.68.2.bb => rust-llvm_1.69.0.bb} 
(100%)
 rename meta/recipes-devtools/rust/{rust_1.68.2.bb => rust_1.69.0.bb} (100%)

diff --git a/meta/conf/distro/include/tcmode-default.inc 
b/meta/conf/distro/include/tcmode-default.inc
index f9e88ca42699..dc4cd470e7b5 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -25,7 +25,7 @@ LINUXLIBCVERSION ?= "6.1%"
 QEMUVERSION ?= "7.2%"
 GOVERSION ?= "1.20%"
 LLVMVERSION ?= "15.%"
-RUSTVERSION ?= "1.68%"
+RUSTVERSION ?= "1.69%"
 
 PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
 PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "${GCCVERSION}"
diff --git a/meta/recipes-devtools/rust/cargo_1.68.2.bb 
b/meta/recipes-devtools/rust/cargo_1.69.0.bb
similarity index 100%
rename from meta/recipes-devtools/rust/cargo_1.68.2.bb
rename to meta/recipes-devtools/rust/cargo_1.69.0.bb
diff --git 
a/meta/recipes-devtools/rust/files/0001-Do-not-use-LFS64-on-linux-with-musl.patch
 
b/meta/recipes-devtools/rust/files/0001-Do-not-use-LFS64-on-linux-with-musl.patch
index da72665bbde2..fa688de5c0da 100644
--- 
a/meta/recipes-devtools/rust/files/0001-Do-not-use-LFS64-on-linux-with-musl.patch
+++ 
b/meta/recipes-devtools/rust/files/0001-Do-not-use-LFS64-on-linux-with-musl.patch
@@ -19,10 +19,10 @@ Signed-off-by: Khem Raj 
  library/std/src/sys/unix/fs.rs | 27 ---
  3 files changed, 38 insertions(+), 12 deletions(-)
 
-diff --git a/library/std/src/os/linux/fs.rs b/library/std/src/os/linux/fs.rs
-index 479bbcc17a8..ab0b2a3eda3 100644
 a/library/std/src/os/linux/fs.rs
-+++ b/library/std/src/os/linux/fs.rs
+Index: rustc-1.69.0-src/library/std/src/os/linux/fs.rs
+===
+--- rustc-1.69.0-src.orig/library/std/src/os/linux/fs.rs
 rustc-1.69.0-src/library/std/src/os/linux/fs.rs
 @@ -329,7 +329,14 @@ pub trait MetadataExt {
  impl MetadataExt for Metadata {
  #[allow(deprecated)]
@@ -39,11 +39,11 @@ index 479bbcc17a8..ab0b2a3eda3 100644
  }
  fn st_dev() -> u64 {
  self.as_inner().as_inner().st_dev as u64
-diff --git a/library/std/src/sys/unix/fd.rs b/library/std/src/sys/unix/fd.rs
-index dbaa3c33e2e..5d31557bd11 100644
 a/library/std/src/sys/unix/fd.rs
-+++ b/library/std/src/sys/unix/fd.rs
-@@ -115,9 +115,12 @@ pub fn read_to_end(, buf:  Vec) -> 
io::Result {
+Index: rustc-1.69.0-src/library/std/src/sys/unix/fd.rs
+===
+--- rustc-1.69.0-src.orig/library/std/src/sys/unix/fd.rs
 rustc-1.69.0-src/library/std/src/sys/unix/fd.rs
+@@ -121,9 +121,12 @@ impl FileDesc {
  }
  
  pub fn read_at(, buf:  [u8], offset: u64) -> io::Result {
@@ -58,7 +58,7 @@ index dbaa3c33e2e..5d31557bd11 100644
  use libc::pread64;
  
  unsafe {
-@@ -181,9 +184,12 @@ pub fn is_write_vectored() -> bool {
+@@ -276,9 +279,12 @@ impl FileDesc {
  }
  
  pub fn write_at(, buf: &[u8], offset: u64) -> io::Result {
@@ -73,11 +73,11 @@ index dbaa3c33e2e..5d31557bd11 100644
  use libc::pwrite64;
  
  unsafe {
-diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs
-index aea0c26ee8b..e7be4729ca6 100644
 a/library/std/src/sys/unix/fs.rs
-+++ b/library/std/src/sys/unix/fs.rs
-@@ -45,19 +45,24 @@
+Index: rustc-1.69.0-src/library/std/src/sys/unix/fs.rs
+===
+--- rustc-1.69.0-src.orig/library/std/src/sys/unix/fs.rs
 rustc-1.69.0-src/library/std/src/sys/unix/fs.rs
+@@ -46,7 +46,11 @@ use libc::{c_int, mode_t};
  all(target_os = "linux", target_env = "gnu")
  ))]
  use libc::c_char;
@@ 

[OE-core] OpenEmbedded Happy Hour April 26 9pm/2100 UTC

2023-04-25 Thread Denys Dmytriyenko
All,

You are cordially invited to the next OpenEmbedded Happy Hour on April 26 
for Asia/Pacific timezones @ 2100/9pm UTC (5pm ET / 2pm PT):

https://www.openembedded.org/wiki/Calendar
https://www.openembedded.org/wiki/Happy_Hours
https://www.timeanddate.com/worldclock/fixedtime.html?msg=OpenEmbedded+Happy+Hour+April+26=20230426T21

-- 
Regards,
Denys Dmytriyenko 
PGP: 0x420902729A92C964 - https://denix.org/0x420902729A92C964
Fingerprint: 25FC E4A5 8A72 2F69 1186  6D76 4209 0272 9A92 C964

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



[OE-core] [PATCH v3 4/9] oeqa/utils/qemurunner: support ignoring vt100 escape sequences

2023-04-25 Thread Enrico Jörns
If we talk to terminals that like colors, we need to ignore the vt100
escape sequences when matching strings.

An unprocessed barebox console prompt would e.g. look like:

  ESC[1;32mbarebox@ESC[1;36mARM QEMU virt64:/ESC[0m

where we cannot match for something like "barebox@ARM QEMU virt64:/".
The same applies to colored Linux terminal output of course.

The "\x1b\[" from the regex catches the standard start of ansii escape
sequence while the rest catches the actual command code executed.

Signed-off-by: Enrico Jorns 
---
 meta/lib/oeqa/utils/qemurunner.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/utils/qemurunner.py 
b/meta/lib/oeqa/utils/qemurunner.py
index 6734cee48d..c3d8e9e815 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -30,6 +30,8 @@ control_range = list(range(0,32))+list(range(127,160))
 control_chars = [chr(x) for x in control_range
 if chr(x) not in string.printable]
 re_control_char = re.compile('[%s]' % re.escape("".join(control_chars)))
+# Regex to remove the ansii (color) control codes from console strings in 
order to match the text only
+re_vt100 = re.compile(r'(\x1b\[|\x9b)[^@-_a-z]*[@-_a-z]|\x1b[@-_a-z]')
 
 class QemuRunner:
 
@@ -662,7 +664,7 @@ class QemuRunner:
 time.sleep(0.1)
 answer = self.server_socket.recv(1024)
 if answer:
-data += answer.decode('utf-8')
+data += re_vt100.sub("", answer.decode('utf-8'))
 # Search the prompt to stop
 if re.search(self.boot_patterns['search_cmd_finished'], 
data):
 break
-- 
2.39.2


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



[OE-core] [PATCH v3 5/9] oeqa/utils/qemurunner: simplify output parsing and make crlf-compatible

2023-04-25 Thread Enrico Jörns
Reduces the nesting depth and replaces the manual newline matching by
built-in splitlines() method.

This makes it compatible with shells that use windows-compatible line
breaks, e.g. for EFI loaders.

More comments and an early return handling should make the code a bit
more readable.

Signed-off-by: Enrico Jorns 
---
 meta/lib/oeqa/utils/qemurunner.py | 32 +++
 1 file changed, 15 insertions(+), 17 deletions(-)

diff --git a/meta/lib/oeqa/utils/qemurunner.py 
b/meta/lib/oeqa/utils/qemurunner.py
index c3d8e9e815..b08226f05a 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -673,23 +673,21 @@ class QemuRunner:
 return (1, "")
 raise Exception("No data on serial console socket, 
connection closed?")
 
-if data:
-if raw:
-status = 1
-else:
-# Remove first line (command line) and last line (prompt)
-data = data[data.find('$?\r\n')+4:data.rfind('\r\n')]
-index = data.rfind('\r\n')
-if index == -1:
-status_cmd = data
-data = ""
-else:
-status_cmd = data[index+2:]
-data = data[:index]
-if (status_cmd == "0"):
-status = 1
-return (status, str(data))
-
+# If we got no data, we assume something went wrong and return 0
+if not data:
+return (0, str(None))
+
+# in raw mode, we cannot check exit status output and thus assume 
success
+if raw:
+return (1, str(data))
+
+# Split lines into array and remove first line (command line) and last 
line (prompt)
+# Also remove empty lines to ease catching results
+outlines = list(filter(None, data.splitlines()[1:-1]))
+# Remaining last line contains exit code output
+if (outlines[-1] == "0"):
+status = 1
+return (status, "\n".join(outlines[0:-1]))
 
 def _dump_host(self):
 self.host_dumper.create_dir("qemu")
-- 
2.39.2


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



[OE-core] [PATCH v3 1/9] barebox: add initial support

2023-04-25 Thread Enrico Jörns
From: Marco Felsch 

This adds the support for the barebox bootloader to oe-core. The recipe
is based on the recipe found in meta-ptx [1] with a few minor adaptions.

This basic support includes the bootloader and the target tools to
interact with the bootloader. The host tools support is not part of
this commit. This will be added later on as separate recipe.

[1] https://github.com/pengutronix/meta-ptx/tree/master/recipes-bsp/barebox

Signed-off-by: Marco Felsch 
Signed-off-by: Enrico Jorns 
---
 meta/conf/distro/include/maintainers.inc  |   1 +
 meta/recipes-bsp/barebox/barebox.inc  | 144 ++
 meta/recipes-bsp/barebox/barebox_2023.04.0.bb |   3 +
 3 files changed, 148 insertions(+)
 create mode 100644 meta/recipes-bsp/barebox/barebox.inc
 create mode 100644 meta/recipes-bsp/barebox/barebox_2023.04.0.bb

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 682ec2cfdf..86d5519489 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -54,6 +54,7 @@ RECIPE_MAINTAINER:pn-automake = "Robert Yang 
"
 RECIPE_MAINTAINER:pn-avahi = "Yi Zhao "
 RECIPE_MAINTAINER:pn-babeltrace = "Alexander Kanavin "
 RECIPE_MAINTAINER:pn-babeltrace2 = "Alexander Kanavin "
+RECIPE_MAINTAINER:pn-barebox = "Enrico Jörns "
 RECIPE_MAINTAINER:pn-baremetal-helloworld = "Alejandro Hernandez 
"
 RECIPE_MAINTAINER:pn-base-files = "Anuj Mittal "
 RECIPE_MAINTAINER:pn-base-passwd = "Anuj Mittal "
diff --git a/meta/recipes-bsp/barebox/barebox.inc 
b/meta/recipes-bsp/barebox/barebox.inc
new file mode 100644
index 00..5609980a64
--- /dev/null
+++ b/meta/recipes-bsp/barebox/barebox.inc
@@ -0,0 +1,144 @@
+SUMMARY = "barebox is a bootloader designed for embedded systems. It runs on a 
variety of architectures including x86, ARM, MIPS, PowerPC and others."
+HOMEPAGE = "https://barebox.org/;
+SECTION = "bootloaders"
+PROVIDES = "virtual/bootloader"
+
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f5125d13e000b9ca1f0d3364286c4192"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+require conf/image-uefi.conf
+
+inherit kernel-arch deploy cml1 pkgconfig
+
+# libusb1 is only required for usb tools like imx-usb-loader. These tools may
+# be enabled within the defconfig file so depend on it here to be more user
+# friendly (do not abort the build). The actual tools are provided by the
+# barebox-tools package.
+DEPENDS = "libusb1 bison-native flex-native"
+
+export KBUILD_BUILD_USER ?= "oe-user"
+export KBUILD_BUILD_HOST ?= "oe-host"
+
+SRC_URI = "https://barebox.org/download/barebox-${PV}.tar.bz2;
+
+S = "${WORKDIR}/barebox-${PV}"
+B = "${WORKDIR}/build"
+
+def get_layer_rev(path):
+try:
+rev, _ = bb.process.run("git describe --match='' --always --dirty 
--broken", cwd=path)
+except bb.process.ExecutionError:
+rev = ""
+return rev.strip()
+
+BAREBOX_BUILDSYSTEM_VERSION[doc] = "Build system version to add to the barebox 
image. By default this is the git description of the containing layer."
+BAREBOX_BUILDSYSTEM_VERSION ??= 
"${@get_layer_rev(os.path.dirname(d.getVar('FILE')))}"
+
+BAREBOX_FIRMWARE_DIR[doc] = "Overwrite barebox' firmware blobs search 
directory (CONFIG_EXTRA_FIRMWARE_DIR) with this path, default ${B}/firmware"
+BAREBOX_FIRMWARE_DIR ??= "${B}/firmware"
+
+EXTRA_OEMAKE = " \
+CROSS_COMPILE=${TARGET_PREFIX} -C ${S} O=${B} \
+BUILDSYSTEM_VERSION=${BAREBOX_BUILDSYSTEM_VERSION} \
+CONFIG_EXTRA_FIRMWARE_DIR=${BAREBOX_FIRMWARE_DIR} \
+"
+
+BAREBOX_CONFIG[doc] = "The barebox kconfig defconfig file. Not used if a file 
called defconfig is added to the SRC_URI."
+BAREBOX_CONFIG ?= ""
+
+# prevent from acting as non-buildable provider
+python () {
+bareboxconfig = d.getVar('BAREBOX_CONFIG')
+bareboxdefconfig = 'file://defconfig' in d.getVar('SRC_URI')
+
+if not bareboxconfig and not bareboxdefconfig:
+PN = d.getVar("PN")
+FILE = os.path.basename(d.getVar("FILE"))
+raise bb.parse.SkipRecipe("BAREBOX_CONFIG must be set in the %s 
machine configuration or file://defconfig must be given in SRC_URI." % 
d.getVar("MACHINE"))
+}
+
+do_configure() {
+if [ -e ${WORKDIR}/defconfig ]; then
+cp ${WORKDIR}/defconfig ${B}/.config
+else
+if [ -n "${BAREBOX_CONFIG}" ]; then
+oe_runmake ${BAREBOX_CONFIG}
+else
+bbfatal "No defconfig given. Either add file 
'file://defconfig' to SRC_URI or set BAREBOX_CONFIG"
+fi
+fi
+
+${S}/scripts/kconfig/merge_config.sh -m .config ${@" 
".join(find_cfgs(d))}
+cml1_do_configure
+}
+
+BAREBOX_ENV_DIR[doc] = "Overlay the barebox built-in environment with the 
environment provided by the BSP if specified."
+BAREBOX_ENV_DIR ??= "${WORKDIR}/env/"
+
+do_compile () {
+export 
userccflags="${TARGET_LDFLAGS}${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
+unset LDFLAGS
+ 

[OE-core] [PATCH v3 7/9] oeqa: support passing custom boot patterns to runqemu

2023-04-25 Thread Enrico Jörns
This allows defining non-standard patterns from QEMU tests just as they
are already supported by the testimage.bbclass.

Will allow testing non-Linux shells in QEMU, too, e.g. a U-Boot or other
bootloader shell.

Signed-off-by: Enrico Jorns 
---
 meta/lib/oeqa/targetcontrol.py| 5 +++--
 meta/lib/oeqa/utils/commands.py   | 5 +++--
 meta/lib/oeqa/utils/qemurunner.py | 2 +-
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py
index d686fe07ec..842a16624f 100644
--- a/meta/lib/oeqa/targetcontrol.py
+++ b/meta/lib/oeqa/targetcontrol.py
@@ -88,7 +88,7 @@ class QemuTarget(BaseTarget):
 
 supported_image_fstypes = ['ext3', 'ext4', 'cpio.gz', 'wic']
 
-def __init__(self, d, logger, image_fstype=None):
+def __init__(self, d, logger, image_fstype=None, boot_patterns=None):
 
 import oe.types
 
@@ -144,7 +144,8 @@ class QemuTarget(BaseTarget):
 dump_host_cmds = dump_host_cmds,
 logger = logger,
 tmpfsdir = d.getVar("RUNQEMU_TMPFS_DIR"),
-serial_ports = 
len(d.getVar("SERIAL_CONSOLES").split()))
+serial_ports = 
len(d.getVar("SERIAL_CONSOLES").split()),
+boot_patterns = boot_patterns)
 
 self.target_dumper = TargetDumper(dump_target_cmds, dump_dir, 
self.runner)
 self.monitor_dumper = MonitorDumper(dump_monitor_cmds, dump_dir, 
self.runner)
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index 21e0265c9d..ad61a035e2 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -310,7 +310,7 @@ def create_temp_layer(templayerdir, templayername, 
priority=999, recipepathspec=
 f.write('LAYERSERIES_COMPAT_%s = "%s"\n' % (templayername, corenames))
 
 @contextlib.contextmanager
-def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, 
launch_cmd=None, qemuparams=None, overrides={}, discard_writes=True):
+def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, 
launch_cmd=None, qemuparams=None, overrides={}, boot_patterns = {}, 
discard_writes=True):
 """
 Starts a context manager for a 'oeqa.targetcontrol.QemuTarget' resource.
 The underlying Qemu will be booted into a shell when the generator yields.
@@ -327,6 +327,7 @@ def runqemu(pn, ssh=True, runqemuparams='', 
image_fstype=None, launch_cmd=None,
 image_fstype (str): IMAGE_FSTYPE to use
 launch_cmd (str): directly run this command and bypass automatic 
runqemu parameter generation
 overrides (dict): dict of "'': value" pairs that 
allows overriding bitbake variables
+boot_patterns (dict): dict of "'': value" pairs to 
override default boot patterns, e.g. when not booting Linux
 discard_writes (boolean): enables qemu -snapshot feature to prevent 
modifying original image
 """
 
@@ -358,7 +359,7 @@ def runqemu(pn, ssh=True, runqemuparams='', 
image_fstype=None, launch_cmd=None,
 
 logdir = recipedata.getVar("TEST_LOG_DIR")
 
-qemu = oeqa.targetcontrol.QemuTarget(recipedata, targetlogger, 
image_fstype)
+qemu = oeqa.targetcontrol.QemuTarget(recipedata, targetlogger, 
image_fstype, boot_patterns=boot_patterns)
 finally:
 # We need to shut down tinfoil early here in case we actually want
 # to run tinfoil-using utilities with the running QEMU instance.
diff --git a/meta/lib/oeqa/utils/qemurunner.py 
b/meta/lib/oeqa/utils/qemurunner.py
index b08226f05a..b60166ca80 100644
--- a/meta/lib/oeqa/utils/qemurunner.py
+++ b/meta/lib/oeqa/utils/qemurunner.py
@@ -94,7 +94,7 @@ class QemuRunner:
 
 # Only override patterns that were set e.g. login user 
TESTIMAGE_BOOT_PATTERNS[send_login_user] = "webserver\n"
 for pattern in accepted_patterns:
-if not self.boot_patterns[pattern]:
+if pattern not in self.boot_patterns or not 
self.boot_patterns[pattern]:
 self.boot_patterns[pattern] = default_boot_patterns[pattern]
 
 def create_socket(self):
-- 
2.39.2


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



[OE-core] [PATCH v3 9/9] oeqa/selftest/cases: add basic u-boot test

2023-04-25 Thread Enrico Jörns
Signed-off-by: Enrico Jorns 
---
 meta/lib/oeqa/selftest/cases/uboot.py | 40 +++
 1 file changed, 40 insertions(+)
 create mode 100644 meta/lib/oeqa/selftest/cases/uboot.py

diff --git a/meta/lib/oeqa/selftest/cases/uboot.py 
b/meta/lib/oeqa/selftest/cases/uboot.py
new file mode 100644
index 00..d3c60c3052
--- /dev/null
+++ b/meta/lib/oeqa/selftest/cases/uboot.py
@@ -0,0 +1,40 @@
+# Qemu-based u-boot bootloader integration testing
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+from oeqa.selftest.case import OESelftestTestCase
+from oeqa.utils.commands import bitbake, runqemu
+from oeqa.core.decorator import OETestTag
+
+uboot_boot_patterns = {
+'search_reached_prompt': "stop autoboot",
+'search_login_succeeded': "=>",
+'search_cmd_finished': "=>"
+}
+
+
+class UBootTest(OESelftestTestCase):
+
+@OETestTag("runqemu")
+def test_boot_uboot(self):
+"""
+Tests building u-boot and booting it with QEMU
+"""
+
+self.write_config("""
+QB_DEFAULT_BIOS = "u-boot.bin"
+PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
+""")
+bitbake("virtual/bootloader core-image-minimal")
+
+with runqemu('core-image-minimal', ssh=False, 
runqemuparams='nographic',
+ boot_patterns=uboot_boot_patterns) as qemu:
+
+# test if u-boot console works
+cmd = "version"
+status, output = qemu.run_serial(cmd)
+self.assertEqual(status, 1, msg=output)
+self.assertTrue("U-Boot" in output, msg=output)
-- 
2.39.2


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



[OE-core] [PATCH v3 6/9] oeqa/utils/commands: document runqemu context manager

2023-04-25 Thread Enrico Jörns
Usage and arguments are not necessarily self-explaining.

Signed-off-by: Enrico Jorns 
---
 meta/lib/oeqa/utils/commands.py | 17 -
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index c1f533802e..21e0265c9d 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -312,7 +312,22 @@ def create_temp_layer(templayerdir, templayername, 
priority=999, recipepathspec=
 @contextlib.contextmanager
 def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, 
launch_cmd=None, qemuparams=None, overrides={}, discard_writes=True):
 """
-launch_cmd means directly run the command, don't need set rootfs or env 
vars.
+Starts a context manager for a 'oeqa.targetcontrol.QemuTarget' resource.
+The underlying Qemu will be booted into a shell when the generator yields.
+
+Usage:
+
+with runqemu('core-image-minimal') as qemu:
+qemu.run_serial('cat /proc/cpuinfo')
+
+Args:
+pn (str): (image) recipe to run on
+ssh (boolean): whether or not to enable SSH (network access)
+runqemuparams (str): space-separated list of params to pass to 
'runqemu' script (like 'nographics', 'ovmf', etc.)
+image_fstype (str): IMAGE_FSTYPE to use
+launch_cmd (str): directly run this command and bypass automatic 
runqemu parameter generation
+overrides (dict): dict of "'': value" pairs that 
allows overriding bitbake variables
+discard_writes (boolean): enables qemu -snapshot feature to prevent 
modifying original image
 """
 
 import bb.tinfoil
-- 
2.39.2


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



[OE-core] [PATCH v3 0/9] Add barebox bootloader support (and testing)

2023-04-25 Thread Enrico Jörns
This adds support for the barebox bootloader (and tools) to oe-core.

In order to have proper testing, this extends oe-selftest to allow
basic testing of bootloaders. While at it, cover both barebox and u-boot.

v3:

* bump to barebox 2023.04.0
* add anonymous python to not act as provider when no config is set
* reasoning for default BAREBOX_CONFIGs in patch description
  and set PREFERRED_PROVIDER_virtual/bootloader to u-boot to avoid
  conflicts
* extend patch description and add comment for vt100 regex
* set CC=${CC} and LD=${LD} in barebox-tools to fix musl builds

Enrico Jorns (7):
  barebox: set default BAREBOX_CONFIG for qemu machines
  oeqa/utils/qemurunner: support ignoring vt100 escape sequences
  oeqa/utils/qemurunner: simplify output parsing and make crlf-compatible
  oeqa/utils/commands: document runqemu context manager
  oeqa: support passing custom boot patterns to runqemu
  oeqa/selftest/cases: add barebox tests
  oeqa/selftest/cases: add basic u-boot test

Marco Felsch (2):
  barebox: add initial support
  barebox-tools: add initial barebox tools support

 meta/conf/distro/include/maintainers.inc  |   2 +
 meta/conf/machine/qemuarm.conf|   1 +
 meta/conf/machine/qemuarm64.conf  |   1 +
 meta/conf/machine/qemux86-64.conf |   1 +
 meta/lib/oeqa/selftest/cases/barebox.py   |  72 +
 meta/lib/oeqa/selftest/cases/uboot.py |  40 +
 meta/lib/oeqa/targetcontrol.py|   5 +-
 meta/lib/oeqa/utils/commands.py   |  22 ++-
 meta/lib/oeqa/utils/qemurunner.py |  38 ++---
 .../barebox/barebox-tools_2023.04.0.bb|  58 +++
 meta/recipes-bsp/barebox/barebox.inc  | 149 ++
 meta/recipes-bsp/barebox/barebox_2023.04.0.bb |   3 +
 12 files changed, 368 insertions(+), 24 deletions(-)
 create mode 100644 meta/lib/oeqa/selftest/cases/barebox.py
 create mode 100644 meta/lib/oeqa/selftest/cases/uboot.py
 create mode 100644 meta/recipes-bsp/barebox/barebox-tools_2023.04.0.bb
 create mode 100644 meta/recipes-bsp/barebox/barebox.inc
 create mode 100644 meta/recipes-bsp/barebox/barebox_2023.04.0.bb

-- 
2.39.2


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



[OE-core] [PATCH v3 3/9] barebox: set default BAREBOX_CONFIG for qemu machines

2023-04-25 Thread Enrico Jörns
These are set in the barebox recipe rather in the corresponding machines
(where they would belong otherwise) to keep the impact of barebox to
oe-core minimal for now.

"multi_v7_defconfig" is used for qemuarm since this is the default
barebox armv7 config that just enables all platforms.

"qemu_virt64_defconfig" is used for qemuarm64 sine this is a dedicated
config for the standard QEMU armv8 'virt64' machine.

"efi_defconfig" is used for qemux86-64 which is the primary platform
where barebox will not be the first stage bootloader but an EFI payload.

Since these changes make barebox a provider for virtual/bootloader,
explicitly default to u-boot in the corresponding MACHINE configs to not
unnecessarily surprise users.

Signed-off-by: Enrico Jorns 
---
 meta/conf/machine/qemuarm.conf   | 1 +
 meta/conf/machine/qemuarm64.conf | 1 +
 meta/conf/machine/qemux86-64.conf| 1 +
 meta/recipes-bsp/barebox/barebox.inc | 5 +
 4 files changed, 8 insertions(+)

diff --git a/meta/conf/machine/qemuarm.conf b/meta/conf/machine/qemuarm.conf
index aa9ce88203..1394cce9ef 100644
--- a/meta/conf/machine/qemuarm.conf
+++ b/meta/conf/machine/qemuarm.conf
@@ -7,6 +7,7 @@ require conf/machine/include/qemu.inc
 
 KERNEL_IMAGETYPE = "zImage"
 
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
 UBOOT_MACHINE ?= "qemu_arm_defconfig"
 
 SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf
index 2f0f0e4f84..f289f7aa7d 100644
--- a/meta/conf/machine/qemuarm64.conf
+++ b/meta/conf/machine/qemuarm64.conf
@@ -7,6 +7,7 @@ require conf/machine/include/qemu.inc
 
 KERNEL_IMAGETYPE = "Image"
 
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
 UBOOT_MACHINE ?= "qemu_arm64_defconfig"
 
 SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
diff --git a/meta/conf/machine/qemux86-64.conf 
b/meta/conf/machine/qemux86-64.conf
index 14873a3b4f..4a9c6d364b 100644
--- a/meta/conf/machine/qemux86-64.conf
+++ b/meta/conf/machine/qemux86-64.conf
@@ -13,6 +13,7 @@ DEFAULTTUNE ?= "core2-64"
 require conf/machine/include/x86/tune-x86-64-v3.inc
 require conf/machine/include/x86/qemuboot-x86.inc
 
+PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
 UBOOT_MACHINE ?= "qemu-x86_64_defconfig"
 
 KERNEL_IMAGETYPE = "bzImage"
diff --git a/meta/recipes-bsp/barebox/barebox.inc 
b/meta/recipes-bsp/barebox/barebox.inc
index 5609980a64..c5afb75f49 100644
--- a/meta/recipes-bsp/barebox/barebox.inc
+++ b/meta/recipes-bsp/barebox/barebox.inc
@@ -48,6 +48,11 @@ EXTRA_OEMAKE = " \
 BAREBOX_CONFIG[doc] = "The barebox kconfig defconfig file. Not used if a file 
called defconfig is added to the SRC_URI."
 BAREBOX_CONFIG ?= ""
 
+# set sensible default configs for some of oe-core's QEMU MACHINEs
+BAREBOX_CONFIG:qemuarm = "multi_v7_defconfig"
+BAREBOX_CONFIG:qemuarm64 = "qemu_virt64_defconfig"
+BAREBOX_CONFIG:qemux86-64 = "efi_defconfig"
+
 # prevent from acting as non-buildable provider
 python () {
 bareboxconfig = d.getVar('BAREBOX_CONFIG')
-- 
2.39.2


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



[OE-core] [PATCH v3 2/9] barebox-tools: add initial barebox tools support

2023-04-25 Thread Enrico Jörns
From: Marco Felsch 

Add initial support to build the barebox tools for the host and the
target.

Signed-off-by: Marco Felsch 
Signed-off-by: Enrico Jorns 
---
 meta/conf/distro/include/maintainers.inc  |  1 +
 .../barebox/barebox-tools_2023.04.0.bb| 58 +++
 2 files changed, 59 insertions(+)
 create mode 100644 meta/recipes-bsp/barebox/barebox-tools_2023.04.0.bb

diff --git a/meta/conf/distro/include/maintainers.inc 
b/meta/conf/distro/include/maintainers.inc
index 86d5519489..1a0ba10d3b 100644
--- a/meta/conf/distro/include/maintainers.inc
+++ b/meta/conf/distro/include/maintainers.inc
@@ -55,6 +55,7 @@ RECIPE_MAINTAINER:pn-avahi = "Yi Zhao "
 RECIPE_MAINTAINER:pn-babeltrace = "Alexander Kanavin "
 RECIPE_MAINTAINER:pn-babeltrace2 = "Alexander Kanavin "
 RECIPE_MAINTAINER:pn-barebox = "Enrico Jörns "
+RECIPE_MAINTAINER:pn-barebox-tools = "Enrico Jörns "
 RECIPE_MAINTAINER:pn-baremetal-helloworld = "Alejandro Hernandez 
"
 RECIPE_MAINTAINER:pn-base-files = "Anuj Mittal "
 RECIPE_MAINTAINER:pn-base-passwd = "Anuj Mittal "
diff --git a/meta/recipes-bsp/barebox/barebox-tools_2023.04.0.bb 
b/meta/recipes-bsp/barebox/barebox-tools_2023.04.0.bb
new file mode 100644
index 00..d409e75bcb
--- /dev/null
+++ b/meta/recipes-bsp/barebox/barebox-tools_2023.04.0.bb
@@ -0,0 +1,58 @@
+SUMMARY = "barebox bootloader tools"
+HOMEPAGE = "https://barebox.org/;
+
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=f5125d13e000b9ca1f0d3364286c4192"
+
+DEPENDS = "libusb1 bison-native flex-native"
+
+SRC_URI = "https://barebox.org/download/barebox-${PV}.tar.bz2;
+SRC_URI[sha256sum] = 
"c11386b2b72f7ab16c7aa21216e2119a6661d0f51420d14ab71bc9b0afc418ab"
+
+S = "${WORKDIR}/barebox-${PV}"
+B = "${WORKDIR}/build"
+
+inherit pkgconfig
+
+EXTRA_OEMAKE = " \
+  ARCH=sandbox \
+  CROSS_COMPILE=${TARGET_PREFIX} -C ${S} O=${B} \
+  CROSS_PKG_CONFIG=pkg-config \
+  CC='${CC}' \
+  LD='${LD}' \
+  "
+
+do_compile:class-target () {
+export userccflags="${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
+export userldflags="${TARGET_LDFLAGS}${TOOLCHAIN_OPTIONS}"
+oe_runmake targettools_defconfig
+oe_runmake scripts
+}
+
+do_compile:class-native () {
+oe_runmake hosttools_defconfig
+oe_runmake scripts
+}
+
+BAREBOX_TOOLS = " \
+ bareboxenv \
+ bareboxcrc32 \
+ kernel-install \
+ bareboximd \
+ omap3-usb-loader \
+ omap4_usbboot \
+ imx/imx-usb-loader \
+ "
+
+BAREBOX_TOOLS_SUFFIX = ""
+BAREBOX_TOOLS_SUFFIX:class-target = "-target"
+
+do_install () {
+   install -d ${D}${bindir}
+
+   for tool in ${BAREBOX_TOOLS}; do
+   install -m 0755 scripts/${tool}${BAREBOX_TOOLS_SUFFIX} 
${D}${bindir}/${tool##*/}
+   done
+}
+
+BBCLASSEXTEND = "native nativesdk"
-- 
2.39.2


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



[OE-core] [PATCH v3 8/9] oeqa/selftest/cases: add barebox tests

2023-04-25 Thread Enrico Jörns
Signed-off-by: Enrico Jorns 
---
 meta/lib/oeqa/selftest/cases/barebox.py | 72 +
 1 file changed, 72 insertions(+)
 create mode 100644 meta/lib/oeqa/selftest/cases/barebox.py

diff --git a/meta/lib/oeqa/selftest/cases/barebox.py 
b/meta/lib/oeqa/selftest/cases/barebox.py
new file mode 100644
index 00..497cd6e8dd
--- /dev/null
+++ b/meta/lib/oeqa/selftest/cases/barebox.py
@@ -0,0 +1,72 @@
+# Qemu-based barebox bootloader integration testing
+#
+# Copyright OpenEmbedded Contributors
+#
+# SPDX-License-Identifier: MIT
+#
+
+from oeqa.selftest.case import OESelftestTestCase
+from oeqa.utils.commands import bitbake, runqemu
+from oeqa.core.decorator.data import skipIfNotArch
+from oeqa.core.decorator import OETestTag
+
+barebox_boot_patterns = {
+'search_reached_prompt': r"stop autoboot",
+'search_login_succeeded': r"barebox@[^:]+:[^ ]+ ",
+'search_cmd_finished': r"barebox@[a-zA-Z0-9\-\s]+:/"
+}
+
+
+class BareboxTest(OESelftestTestCase):
+
+@skipIfNotArch(['arm', 'aarch64'])
+@OETestTag("runqemu")
+def test_boot_barebox(self):
+"""
+Tests building barebox and booting it with QEMU
+"""
+
+self.write_config("""
+QB_DEFAULT_KERNEL = "barebox-dt-2nd.img"
+PREFERRED_PROVIDER_virtual/bootloader = "barebox"
+""")
+
+bitbake("virtual/bootloader core-image-minimal")
+
+with runqemu('core-image-minimal', ssh=False, 
runqemuparams='nographic',
+ boot_patterns=barebox_boot_patterns) as qemu:
+
+# test if barebox console works
+cmd = "version"
+status, output = qemu.run_serial(cmd)
+self.assertEqual(status, 1, msg=output)
+self.assertTrue("barebox" in output, msg=output)
+
+@skipIfNotArch(['x86_64'])
+@OETestTag("runqemu")
+def test_boot_barebox_efi(self):
+"""
+Tests building barebox for UEFI and booting it as EFI payload
+with QEMU + OVMF
+"""
+image = "core-image-minimal"
+
+self.write_config("""
+IMAGE_INSTALL:append = " barebox"
+MACHINE_FEATURES:append = " pcbios efi"
+EXTRA_IMAGEDEPENDS += "ovmf"
+EFI_PROVIDER = "barebox"
+IMAGE_FSTYPES += "wic"
+WKS_FILE = "efi-bootdisk.wks.in"
+""")
+
+bitbake(image)
+
+with runqemu(image, ssh=False, runqemuparams='nographic ovmf',
+ boot_patterns=barebox_boot_patterns, image_fstype='wic') 
as qemu:
+
+# test if barebox console works
+cmd = "version"
+status, output = qemu.run_serial(cmd)
+self.assertEqual(status, 1, msg=output)
+self.assertTrue("barebox" in output, msg=output)
-- 
2.39.2


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



Re: [OE-core][PATCH v3] devicetree.bbclass: Allow selection of dts files to build

2023-04-25 Thread Denys Dmytriyenko
On Mon, Apr 24, 2023 at 08:48:24AM +, Petr Kubizňák - 2N wrote:
> Hi Denys,
> 
> > Any examples of this being used? Not really clear from the description 
> > what's
> > this really used for...
> 
> I'm not sure what is unclear to you - just the commit message, or the patch 
> itself?
> 
> An example could be beaglebone-yocto.conf. If someone decides to move the 
> device tree files from kernel to a standalone repository, then it is enough 
> (e.g.) to rename KERNEL_DEVICETREE to EXTERNAL_DEVICETREE in the machine 
> conf, and make an assignment DT_FILES = "${EXTERNAL_DEVICETREE}" in the 
> devicetree recipe.
> 
> So how about to replace the unclear sentence by:

> To make DT_FILES consistent with KERNEL_DEVICETREE, the list works with both 
> dts and dtb files.

Thanks, this sounds much better, I believe.


> Would that make more sense to you? Or do you think the example should be 
> part of that commit message, too?
> 
> Cheers,
> Petr
> 
> 
> From: Denys Dmytriyenko 
> Sent: Sunday, April 23, 2023 12:07 AM
> To: Petr Kubizňák - 2N
> Cc: openembedded-core@lists.openembedded.org
> Subject: Re: [OE-core][PATCH v3] devicetree.bbclass: Allow selection of dts 
> files to build
> 
> On Fri, Apr 21, 2023 at 05:23:25PM +0200, Petr Kubizňák wrote:
> > Add DT_FILES variable to allow the user of the class to select specific
> > dts files to build. This is useful for packages featuring dts files
> > for multiple machines.
> >
> > Since many machine configs contain a list of dtb files
> > (e.g. KERNEL_DEVICETREE), DT_FILES works with both dts and dtb files.
> 
> Any examples of this being used? Not really clear from the description what's
> this really used for...
> 
> 
> > Signed-off-by: Petr Kubizňák 
> > ---
> >  meta/classes-recipe/devicetree.bbclass | 9 +++--
> >  1 file changed, 7 insertions(+), 2 deletions(-)
> >
> > diff --git a/meta/classes-recipe/devicetree.bbclass 
> > b/meta/classes-recipe/devicetree.bbclass
> > index ed2a92e447..bd50d7fa1d 100644
> > --- a/meta/classes-recipe/devicetree.bbclass
> > +++ b/meta/classes-recipe/devicetree.bbclass
> > @@ -53,8 +53,10 @@ KERNEL_INCLUDE ??= " \
> >
> >  DT_INCLUDE[doc] = "Search paths to be made available to both the device 
> > tree compiler and preprocessor for inclusion."
> >  DT_INCLUDE ?= "${DT_FILES_PATH} ${KERNEL_INCLUDE}"
> > -DT_FILES_PATH[doc] = "Defaults to source directory, can be used to select 
> > dts files that are not in source (e.g. generated)."
> > +DT_FILES_PATH[doc] = "Path to the directory containing dts files to build. 
> > Defaults to source directory."
> >  DT_FILES_PATH ?= "${S}"
> > +DT_FILES[doc] = "Space-separated list of dts or dtb files (relative to 
> > DT_FILES_PATH) to build. If empty, all dts files are built."
> > +DT_FILES ?= ""
> >
> >  DT_PADDING_SIZE[doc] = "Size of padding on the device tree blob, used as 
> > extra space typically for additional properties during boot."
> >  DT_PADDING_SIZE ??= "0x3000"
> > @@ -125,9 +127,12 @@ def devicetree_compile(dtspath, includes, d):
> >  subprocess.run(dtcargs, check = True, stdout=subprocess.PIPE, 
> > stderr=subprocess.STDOUT)
> >
> >  python devicetree_do_compile() {
> > +import re
> >  includes = expand_includes("DT_INCLUDE", d)
> > +dtfiles = d.getVar("DT_FILES").split()
> > +dtfiles = [ re.sub(r"\.dtbo?$", ".dts", dtfile) for dtfile in dtfiles ]
> >  listpath = d.getVar("DT_FILES_PATH")
> > -for dts in os.listdir(listpath):
> > +for dts in dtfiles or os.listdir(listpath):
> >  dtspath = os.path.join(listpath, dts)
> >  try:
> >  if not(os.path.isfile(dtspath)) or not(dts.endswith(".dts") or 
> > devicetree_source_is_overlay(dtspath)):
> > --
> > 2.30.2

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



[OE-core] Yocto Project Status 25 April 2023 (WW17)

2023-04-25 Thread Stephen Jolley
Current Dev Position: YP 4.3 M1

Next Deadline: 28th April 2023 YP 4.2 Release

 

Next Team Meetings:

*   Bug Triage meeting Thursday April 27th 7:30 am PDT (

https://zoom.us/j/454367603?pwd=ZGxoa2ZXL3FkM3Y0bFd5aVpHVVZ6dz09)
*   Weekly Project Engineering Sync Tuesday April 25th at 8 am PDT (

https://zoom.us/j/990892712?pwd=cHU1MjhoM2x6ck81bkcrYjRrcmJsUT09
 )
*   Twitch -  See  
https://www.twitch.tv/theyoctojester

 

Key Status/Updates:

*   YP 4.2 moved to an rc3 build since a kernel/qemu/drm issue was found
which warranted a rebuild. This has not been picked up by QA yet.
*   YP 4.0.9 was released.
*   Since 4.2 rc3 was being built with kennel stable series updates,
some CVE fixes and a high priority bitbake bug were also fixed.
*   Patches are merging into master for 4.3.
*   We'd like to thank Paul Eggleton for some great work on the
documentation and release notes and catching a number of areas where we
could improve the documentation for things that changed in this release.
*   We have a growing number of bugs in bugzilla, any help with them is
appreciated.

 

Ways to contribute:

*   As people are likely aware, the project has a number of components
which are either unmaintained, or have people with little to no time trying
to keep them alive. These components include: patchtest, layerindex,
devtool, toaster, wic, oeqa, autobuilder, CROPs containers, pseudo and more.
Many have open bugs. Help is welcome in trying to better look after these
components!
*   There are bugs identified as possible for newcomers to the project:

https://wiki.yoctoproject.org/wiki/Newcomers
*   There are bugs that are currently unassigned for YP 4.2. See:

https://wiki.yoctoproject.org/wiki/Bug_Triage#Medium.2B_4.2_Unassigned_Enhan
cements.2FBugs
*   We'd welcome new maintainers for recipes in OE-Core. Please see the
list at:

http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/conf/distro/include/main
tainers.inc and discuss with the existing maintainer, or ask on the OE-Core
mailing list. We will likely move a chunk of these to "Unassigned" soon to
help facilitate this.
*   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.
*   Help us resolve CVE issues:
 CVE metrics 

 

YP 4.2 Milestone Dates:

*   P 4.2 M4 Release date 2023/04/28

 

YP 4.3 Milestone Dates:

*   YP 4.2 M4 build date 2023/04/03
*   YP 4.2 M4 Release date 2023/04/28
*   YP 4.3 M1 build date  2023/06/05
*   YP 4.3 M1 Release date 2023/06/16
*   YP 4.3 M2 build date  2023/07/17
*   YP 4.3 M2 Release date 2023/07/28
*   YP 4.3 M3 build date  2023/08/28
*   YP 4.3 M3 Release date 2023/09/08
*   YP 4.3 M4 build date  2023/10/02
*   YP 4.3 M4 Release date 2023/10/27

 

Upcoming dot releases:

*   YP 4.0.9 is released
*   YP 4.1.4 build date 2023/05/01
*   YP 4.1.4 Release date 2023/05/13
*   YP 3.1.25 build date 2023/05/08
*   YP 3.1.25 Release date 2023/05/19
*   YP 4.0.10 build date 2023/05/15
*   YP 4.0.10 Release date 2023/05/26
*   YP 4.2.1 build date 2023/05/22
*   YP 4.2.1 Release date 2023/06/02
*   YP 3.1.26 build date 2023/06/19
*   YP 3.1.26 Release date 2023/06/30
*   YP 4.0.11 build date 2023/06/26
*   YP 4.0.11 Release date 2023/07/07
*   YP 4.2.2 build date 2023/07/10
*   YP 4.2.2 Release date 2023/07/21 
*   YP 3.1.27 build date 2023/07/31
*   YP 3.1.27 Release date 2023/08/11
*   YP 4.0.12 build date 2023/08/07
*   YP 4.0.12 Release date 2023/08/18
*   YP 4.2.3 build date 2023/08/28
*   YP 4.2.3 Release date 2023/09/08
*   YP 3.1.28 build date 2023/09/18
*   YP 3.1.28 Release date 2023/09/29
*   YP 4.0.13 build date 2023/09/25
*   YP 4.0.13 Release date 2023/10/06
*   YP 3.1.29 build date 2023/10/30
*   YP 3.1.29 Release date 2023/11/10
*   YP 4.0.14 build date 2023/11/06
*   YP 4.0.14 Release date 2023/11/17
*   YP 4.2.4 build date 2023/11/13
*   YP 4.2.4 Release date 2023/11/24
*   YP 3.1.30 build date 2023/12/11
*   YP 3.1.30 Release date 2023/12/22
*   YP 4.0.15 build date 2023/12/18
*   YP 4.0.15 Release date 2023/12/29

 

Tracking Metrics:

*  

Re: [OE-core][dunfell][PATCH] go: Security fix for CVE-2023-24538

2023-04-25 Thread Steve Sakoman
On Mon, Apr 24, 2023 at 7:45 AM Steve Sakoman via
lists.openembedded.org 
wrote:
>
> Unfortunately the dunfell version of this patch does not apply
> (kirkstone seems fine):

Ah, I spoke too soon!

The kirkstone version of the patch applies just fine but fails to
build both locally and on the autobuilder.

An example log of the failure from the autobuilder:

https://errors.yoctoproject.org/Errors/Details/700566/

Steve

> Applying: go: Security fix for CVE-2023-24538
> error: corrupt patch at line 594
> error: could not build fake ancestor
> Patch failed at 0001 go: Security fix for CVE-2023-24538
> hint: Use 'git am --show-current-patch=diff' to see the failed patch
> When you have resolved this problem, run "git am --continue".
> If you prefer to skip this patch, run "git am --skip" instead.
> To restore the original branch and stop patching, run "git am --abort".
>
> Steve
>
> On Sun, Apr 23, 2023 at 7:43 PM Shubham Kulkarni  wrote:
> >
> > From: Shubham Kulkarni 
> >
> > html/template: disallow actions in JS template literals
> >
> > Backport from 
> > https://github.com/golang/go/commit/b1e3ecfa06b67014429a197ec5e134ce4303ad9b
> >
> > Signed-off-by: Shubham Kulkarni 
> > ---
> >  meta/recipes-devtools/go/go-1.14.inc   |   2 +
> >  .../go/go-1.14/CVE-2023-24538-1.patch  | 633 
> > +
> >  .../go/go-1.14/CVE-2023-24538-2.patch  | 371 
> >  3 files changed, 1006 insertions(+)
> >  create mode 100644 meta/recipes-devtools/go/go-1.14/CVE-2023-24538-1.patch
> >  create mode 100644 meta/recipes-devtools/go/go-1.14/CVE-2023-24538-2.patch
> >
> > diff --git a/meta/recipes-devtools/go/go-1.14.inc 
> > b/meta/recipes-devtools/go/go-1.14.inc
> > index 56f4f12..01f9f1e 100644
> > --- a/meta/recipes-devtools/go/go-1.14.inc
> > +++ b/meta/recipes-devtools/go/go-1.14.inc
> > @@ -57,6 +57,8 @@ SRC_URI += "\
> >  file://CVE-2022-41722-2.patch \
> >  file://CVE-2020-29510.patch \
> >  file://CVE-2023-24537.patch \
> > +file://CVE-2023-24538-1.patch \
> > +file://CVE-2023-24538-2.patch \
> >  "
> >
> >  SRC_URI_append_libc-musl = " 
> > file://0009-ld-replace-glibc-dynamic-linker-with-musl.patch"
> > diff --git a/meta/recipes-devtools/go/go-1.14/CVE-2023-24538-1.patch 
> > b/meta/recipes-devtools/go/go-1.14/CVE-2023-24538-1.patch
> > new file mode 100644
> > index 000..4b0d200
> > --- /dev/null
> > +++ b/meta/recipes-devtools/go/go-1.14/CVE-2023-24538-1.patch
> > @@ -0,0 +1,633 @@
> > +From 64779a6dfb11631133ff3cfba7ae7e449c191a88 Mon Sep 17 00:00:00 2001
> > +From: empijei 
> > +Date: Fri, 27 Mar 2020 19:27:55 +0100
> > +Subject: [PATCH 1/2] html/template,text/template: switch to Unicode escapes
> > + for JSON compatibility
> > +MIME-Version: 1.0
> > +Content-Type: text/plain; charset=UTF-8
> > +Content-Transfer-Encoding: 8bit
> > +
> > +The existing implementation is not compatible with JSON
> > +escape as it uses hex escaping.
> > +Unicode escape, instead, is valid for both JSON and JS.
> > +This fix avoids creating a separate escaping context for
> > +scripts of type "application/ld+json" and it is more
> > +future-proof in case more JSON+JS contexts get added
> > +to the platform (e.g. import maps).
> > +
> > +Fixes #33671
> > +Fixes #37634
> > +
> > +Change-Id: Id6f6524b4abc52e81d9d744d46bbe5bf2e081543
> > +Reviewed-on: https://go-review.googlesource.com/c/go/+/226097
> > +Reviewed-by: Carl Johnson 
> > +Reviewed-by: Daniel Martí 
> > +Run-TryBot: Daniel Martí 
> > +TryBot-Result: Gobot Gobot 
> > +
> > +Upstream-Status: Backport from 
> > https://github.com/golang/go/commit/d4d298040d072ddacea0e0d6b55fb148fff18070
> > +CVE: CVE-2023-24538
> > +Signed-off-by: Shubham Kulkarni 
> > +---
> > + src/html/template/content_test.go  | 70 
> > +++---
> > + src/html/template/escape_test.go   |  6 ++--
> > + src/html/template/example_test.go  |  6 ++--
> > + src/html/template/js.go| 70 
> > +++---
> > + src/html/template/js_test.go   | 68 
> > ++--
> > + src/html/template/template_test.go | 39 +
> > + src/text/template/exec_test.go |  6 ++--
> > + src/text/template/funcs.go |  8 ++---
> > + 8 files changed, 163 insertions(+), 110 deletions(-)
> > +
> > +diff --git a/src/html/template/content_test.go 
> > b/src/html/template/content_test.go
> > +index 72d56f5..bd86527 100644
> > +--- a/src/html/template/content_test.go
> >  b/src/html/template/content_test.go
> > +@@ -18,7 +18,7 @@ func TestTypedContent(t *testing.T) {
> > +   HTML(`Hello, World tc!`),
> > +   HTMLAttr(` dir="ltr"`),
> > +   JS(`c && alert("Hello, World!");`),
> > +-  JSStr(`Hello, World & O'Reilly\x21`),
> > ++  JSStr(`Hello, World & O'Reilly\u0021`),
> > +   URL(`greeting=H%69,=(World)`),
> > +   Srcset(`greeting=H%69,=(World) 2x, 
> > 

Re: [OE-core] [PATCH] python3targetconfig.bbclass: Extend PYTHONPATH instead of overwriting

2023-04-25 Thread Tim Orling
On Tue, Apr 25, 2023 at 2:15 AM  wrote:

> From: Johannes Schrimpf 
>
> [YOCTO #15108] -- https://bugzilla.yoctoproject.org/show_bug.cgi?id=15108
>
> Since the latest change,


We should mention the commit where the change was made:
https://git.openembedded.org/openembedded-core/commit/meta/classes-recipe/python3targetconfig.bbclass?id=c9617c03bceee54dc540318cada392799b137bd5

the PYTHONPATH is overwritten instead of extended.
> This leads to changed behavior and build errors of recipes where the
> PYTHONPATH
> is set before setup_target_config is run.
>
> Signed-off-by: Johannes Schrimpf 
> ---
>  meta/classes-recipe/python3targetconfig.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes-recipe/python3targetconfig.bbclass
> b/meta/classes-recipe/python3targetconfig.bbclass
> index 22305fe176..08bc619398 100644
> --- a/meta/classes-recipe/python3targetconfig.bbclass
> +++ b/meta/classes-recipe/python3targetconfig.bbclass
> @@ -12,7 +12,7 @@ DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}"
>
>  setup_target_config() {
>  export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
> -export PYTHONPATH=${STAGING_LIBDIR}/python-sysconfigdata
> +export
> PYTHONPATH=${STAGING_LIBDIR}/python-sysconfigdata:$PYTHONPATH
>  export PATH=${STAGING_EXECPREFIXDIR}/python-target-config/:$PATH
>  }
>
> --
> 2.37.1 (Apple Git-137.1)
>
>
> 
>
>

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



[OE-core][langdale 10/10] populate_sdk_base: add zip options

2023-04-25 Thread Steve Sakoman
From: Christoph Lauer 

Add SDK_ZIP_OPTIONS to remove symbolic link creation in zip archive or add 
options, e.g. for encryption of the zip archive.

(From OE-Core rev: 04b62f9459b401c276255f166d0738b6f902a576)

Signed-off-by: Christoph Lauer 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
Signed-off-by: Steve Sakoman 
---
 meta/classes-recipe/populate_sdk_base.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes-recipe/populate_sdk_base.bbclass 
b/meta/classes-recipe/populate_sdk_base.bbclass
index 70b3f1974e..6286d64233 100644
--- a/meta/classes-recipe/populate_sdk_base.bbclass
+++ b/meta/classes-recipe/populate_sdk_base.bbclass
@@ -74,6 +74,8 @@ TOOLCHAIN_OUTPUTNAME ?= "${SDK_NAME}-toolchain-${SDK_VERSION}"
 SDK_ARCHIVE_TYPE ?= "tar.xz"
 SDK_XZ_COMPRESSION_LEVEL ?= "-9"
 SDK_XZ_OPTIONS ?= "${XZ_DEFAULTS} ${SDK_XZ_COMPRESSION_LEVEL}"
+SDK_ZIP_OPTIONS ?= "-y"
+
 
 # To support different sdk type according to SDK_ARCHIVE_TYPE, now support zip 
and tar.xz
 python () {
@@ -81,7 +83,7 @@ python () {
d.setVar('SDK_ARCHIVE_DEPENDS', 'zip-native')
# SDK_ARCHIVE_CMD used to generate archived sdk 
${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} from input dir 
${SDK_OUTPUT}/${SDKPATH} to output dir ${SDKDEPLOYDIR}
# recommand to cd into input dir first to avoid archive with buildpath
-   d.setVar('SDK_ARCHIVE_CMD', 'cd ${SDK_OUTPUT}/${SDKPATH}; zip -r -y 
${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} .')
+   d.setVar('SDK_ARCHIVE_CMD', 'cd ${SDK_OUTPUT}/${SDKPATH}; zip -r 
${SDK_ZIP_OPTIONS} ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE} 
.')
 else:
d.setVar('SDK_ARCHIVE_DEPENDS', 'xz-native')
d.setVar('SDK_ARCHIVE_CMD', 'cd ${SDK_OUTPUT}/${SDKPATH}; tar 
${SDKTAROPTS} -cf - . | xz ${SDK_XZ_OPTIONS} > 
${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_ARCHIVE_TYPE}')
-- 
2.34.1


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



[OE-core][langdale 09/10] cpio: Fix wrong CRC with ASCII CRC for large files

2023-04-25 Thread Steve Sakoman
From: Marek Vasut 

Due to signedness, the checksum is not computed when filesize is bigger
a 2GB. Pick a fix for this problem from CPIO ML, where the fix has been
posted for 5 years. Since CPIO upstream is effectively unresponsive and
any and all attempts to communicate with the maintainer and get the fix
applied upstream failed, add the fix here instead.

Signed-off-by: Marek Vasut 
Signed-off-by: Richard Purdie 
(cherry picked from commit bfff138af4bdd356ac66571e6ad91c1a5599b935)
Signed-off-by: Steve Sakoman 
---
 ...g-CRC-with-ASCII-CRC-for-large-files.patch | 39 +++
 meta/recipes-extended/cpio/cpio_2.13.bb   |  1 +
 2 files changed, 40 insertions(+)
 create mode 100644 
meta/recipes-extended/cpio/cpio-2.13/0001-Wrong-CRC-with-ASCII-CRC-for-large-files.patch

diff --git 
a/meta/recipes-extended/cpio/cpio-2.13/0001-Wrong-CRC-with-ASCII-CRC-for-large-files.patch
 
b/meta/recipes-extended/cpio/cpio-2.13/0001-Wrong-CRC-with-ASCII-CRC-for-large-files.patch
new file mode 100644
index 00..4b96e4316c
--- /dev/null
+++ 
b/meta/recipes-extended/cpio/cpio-2.13/0001-Wrong-CRC-with-ASCII-CRC-for-large-files.patch
@@ -0,0 +1,39 @@
+From 77ff5f1be394eb2c786df561ff37dde7f982ec76 Mon Sep 17 00:00:00 2001
+From: Stefano Babic 
+Date: Fri, 28 Jul 2017 13:20:52 +0200
+Subject: [PATCH] Wrong CRC with ASCII CRC for large files
+
+Due to signedness, the checksum is not computed when filesize is bigger
+a 2GB.
+
+Upstream-Status: Submitted 
[https://lists.gnu.org/archive/html/bug-cpio/2017-07/msg4.html]
+Signed-off-by: Stefano Babic 
+---
+ src/copyout.c | 8 
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/copyout.c b/src/copyout.c
+index 1f0987a..727aeca 100644
+--- a/src/copyout.c
 b/src/copyout.c
+@@ -34,13 +34,13 @@
+compute and return a checksum for them.  */
+ 
+ static uint32_t
+-read_for_checksum (int in_file_des, int file_size, char *file_name)
++read_for_checksum (int in_file_des, unsigned int file_size, char *file_name)
+ {
+   uint32_t crc;
+   char buf[BUFSIZ];
+-  int bytes_left;
+-  int bytes_read;
+-  int i;
++  unsigned int bytes_left;
++  unsigned int bytes_read;
++  unsigned int i;
+ 
+   crc = 0;
+ 
+-- 
+2.7.4
+
diff --git a/meta/recipes-extended/cpio/cpio_2.13.bb 
b/meta/recipes-extended/cpio/cpio_2.13.bb
index e72a114de9..dd3541096f 100644
--- a/meta/recipes-extended/cpio/cpio_2.13.bb
+++ b/meta/recipes-extended/cpio/cpio_2.13.bb
@@ -10,6 +10,7 @@ SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \
file://0001-Unset-need_charset_alias-when-building-for-musl.patch \

file://0002-src-global.c-Remove-superfluous-declaration-of-progr.patch \
file://CVE-2021-38185.patch \
+   file://0001-Wrong-CRC-with-ASCII-CRC-for-large-files.patch \
"
 
 SRC_URI[md5sum] = "389c5452d667c23b5eceb206f5000810"
-- 
2.34.1


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



[OE-core][langdale 05/10] linux-yocto/5.15: update to v5.15.108

2023-04-25 Thread Steve Sakoman
From: Bruce Ashfield 

Updating  to the latest korg -stable release that comprises
the following commits:

3299fb36854f Linux 5.15.108
adef0cebea85 nvme-pci: avoid the deepest sleep state on ZHITAI TiPro5000 
SSDs
c6897dfe2bb6 counter: Add the necessary colons and indents to the comments 
of counter_compi
fa934784fb65 counter: fix docum. build problems after filename change
0cf283340023 panic, kexec: make __crash_kexec() NMI safe
9e1e59b1 kexec: turn all kexec_mutex acquisitions into trylocks
6fc7a53fcc4c nvme-pci: add NVME_QUIRK_BOGUS_NID for T-FORCE Z330 SSD
fa43e0591900 nvme-pci: mark Lexar NM760 as IGNORE_DEV_SUBNQN
a814fc9e6e59 nvme-pci: add NVME_QUIRK_BOGUS_NID for Lexar NM760
972e06d09e86 nvme-pci: add NVME_QUIRK_BOGUS_NID for Lexar NM610
cf773832139b nvme-pci: Crucial P2 has bogus namespace ids
5a19b9a49aea nvme-pci: avoid the deepest sleep state on ZHITAI TiPro7000 
SSDs
65f5dc5dff29 nvme-pci: add NVME_QUIRK_BOGUS_NID for ADATA XPG GAMMIX S50
3daaa5f7aae2 i2c: ocores: generate stop condition after timeout in polling 
mode
0af686415ca2 x86/rtc: Remove __init for runtime functions
b11ff3ef4d09 sched/fair: Fix imbalance overflow
90e3dc510106 sched/fair: Move calculate of avg_load to a better location
6d1353781bba powerpc/papr_scm: Update the NUMA distance table for the 
target node
0b031f5983f8 ubi: Fix deadlock caused by recursively holding work_sem
85d7a7044b75 ubi: Fix failure attaching when vid_hdr offset equals to 
(sub)page size
f0b4a4086cf2 mptcp: stricter state check in mptcp_worker
925e1a510a2e mptcp: use mptcp_schedule_work instead of open-coding it
f4f2a1d491e9 cgroup/cpuset: Wake up cpuset_attach_wq tasks in 
cpuset_cancel_attach()
19c7f9329bdb x86/PCI: Add quirk for AMD XHCI controller that loses MSI-X 
state in D3hot
05143d90ac90 scsi: ses: Handle enclosure with just a primary component 
gracefully
aaae6d303150 net: phy: nxp-c45-tja11xx: fix unsigned long multiplication 
overflow
b1ca14361d49 net: phy: nxp-c45-tja11xx: add remove callback
0359e505bcd7 net: sfp: initialize sfp->i2c_block_size at sfp allocation
a42f565c0e96 riscv: add icache flush for nommu sigreturn trampoline
6eeb1cba4c9d drm/i915: fix race condition UAF in i915_perf_add_config_ioctl
9b344cf6aea0 i915/perf: Replace DRM_DEBUG with driver specific drm_dbg call
6b337a13c144 tracing: Have tracing_snapshot_instance_cond() write errors to 
the appropriate instance
1403518ed0d9 tracing: Add trace_array_puts() to write into instance
670e54151b7a counter: 104-quad-8: Fix Synapse action reported for Index 
signals
6e25d374cd95 counter: Internalize sysfs interface code
c4153e662883 counter: stm32-timer-cnt: Provide defines for slave mode 
selection
4c1010848b12 counter: stm32-lptimer-cnt: Provide defines for clock 
polarities
189ada57e88c ACPI: resource: Add Medion S17413 to IRQ override quirk
248a18a895e2 wifi: iwlwifi: mvm: fix mvmtxq->stopped handling
0efd9ed92926 asymmetric_keys: log on fatal failures in PE/pkcs7
ae2b44aeade1 verify_pefile: relax wrapper length check
744f80ae0716 drm: panel-orientation-quirks: Add quirk for Lenovo Yoga Book 
X90F
05a24344296e efi: sysfb_efi: Add quirk for Lenovo Yoga Book X91F/L
0f9d2fc58824 i2c: hisi: Avoid redundant interrupts
d21a46212009 i2c: imx-lpi2c: clean rx/tx buffers upon new message
8451da304b4a wifi: mwifiex: mark OF related data as maybe unused
9aeff275b7f7 power: supply: cros_usbpd: reclassify "default case!" as debug
788f4a3d3987 ARM: 9290/1: uaccess: Fix KASAN false-positives
53967ac8080b libbpf: Fix single-line struct definition output in btf_dump
906a6689bb01 skbuff: Fix a race between coalescing and releasing SKBs
7ccc58a1a756 net: macb: fix a memory corruption in extended buffer 
descriptor mode
ed2ec39e46fe udp6: fix potential access to stale information
e97ff11b396c RDMA/core: Fix GID entry ref leak when create_ah fails
6109f5b13ce3 sctp: fix a potential overflow in sctp_ifwdtsn_skip
c6a796ee5a63 net: qrtr: Fix an uninit variable access bug in 
qrtr_tx_resume()
9b1ca43bcf3d qlcnic: check pci_reset_function result
ffa4f32952e2 drm/armada: Fix a potential double free in an error handling 
path
a94f5d35fdbb tcp: restrict net.ipv4.tcp_app_win
a08ec4ed3b6e niu: Fix missing unwind goto in niu_alloc_channels()
e35ae49bc198 9p/xen : Fix use after free bug in xen_9pfs_front_remove due 
to race condition
b41da67451b0 bpf: tcp: Use sock_gen_put instead of sock_put in bpf_iter_tcp
48e8e7851dc0 RDMA/cma: Allow UD qp_type to join multicast only
1569a4cdb973 IB/mlx5: Add support for 400G_8X lane speed
f6711bc5c016 RDMA/irdma: Add ipv4 check to irdma_find_listener()
c8c7a7aee861 RDMA/irdma: Increase iWARP CM default rexmit count
810250c9c661 RDMA/irdma: Fix memory leak of PBLE objects
aa2607bae45f clk: sprd: set 

[OE-core][langdale 08/10] oeqa ping.py: fail test if target IP address has not been set

2023-04-25 Thread Steve Sakoman
From: Mikko Rapeli 

It is possible to call exported tests with --target-ip set to ":22"
where IP address is not set at all. Detect this case and fail the test
instead of calling ping without an IP address.

Signed-off-by: Mikko Rapeli 
Signed-off-by: Richard Purdie 
(cherry picked from commit 17c995c53775b8cee279ca4ced916092067e1195)
Signed-off-by: Steve Sakoman 
---
 meta/lib/oeqa/runtime/cases/ping.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oeqa/runtime/cases/ping.py 
b/meta/lib/oeqa/runtime/cases/ping.py
index fcb72d4543..f72460e7f3 100644
--- a/meta/lib/oeqa/runtime/cases/ping.py
+++ b/meta/lib/oeqa/runtime/cases/ping.py
@@ -17,6 +17,7 @@ class PingTest(OERuntimeTestCase):
 def test_ping(self):
 output = ''
 count = 0
+self.assertNotEqual(len(self.target.ip), 0, msg="No target IP address 
set")
 try:
 while count < 5:
 cmd = 'ping -c 1 %s' % self.target.ip
-- 
2.34.1


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



[OE-core][langdale 07/10] oeqa ping.py: avoid busylooping failing ping command

2023-04-25 Thread Steve Sakoman
From: Mikko Rapeli 

Use a sleep on error path before trying again. For example
when oeqa runtime tests are executed without setting target
IP address correctly, the tests are drowning logs with messages:

2023-04-04 07:19:24,985 - runtime - INFO - test_ping (ping.PingTest.test_ping)
ping: usage error: Destination address required
ping: usage error: Destination address required
ping: usage error: Destination address required
ping: usage error: Destination address required
ping: usage error: Destination address required
ping: usage error: Destination address required
ping: usage error: Destination address required
ping: usage error: Destination address required
ping: usage error: Destination address required
ping: usage error: Destination address required
ping: usage error: Destination address required
ping: usage error: Destination address required
...
2023-04-04 07:19:55,002 - runtime - INFO -  ... FAIL
2023-04-04 07:19:55,002 - runtime - INFO - Traceback (most recent call
last):
  File 
\"/lava-62618/3/tests/3_oeqa-runtime-tests/image/lib/oeqa/runtime/cases/ping.py\",
 line 23, in test_ping
output += proc.communicate()[0].decode('utf-8')
  ^^
  File \"/usr/lib/python3.11/subprocess.py\", line 1194, in communicate
stdout = self.stdout.read()
 ^^
  File 
\"/lava-62618/3/tests/3_oeqa-runtime-tests/image/lib/oeqa/core/decorator/oetimeout.py\",
 line 18, in _timeoutHandler
raise OEQATimeoutError(\"Timed out after %s \"
oeqa.core.exception.OEQATimeoutError: Timed out after 30 seconds of execution

Signed-off-by: Mikko Rapeli 
Signed-off-by: Richard Purdie 
(cherry picked from commit 87ec75710b5cd7b3f35d886003844d62d3182b54)
Signed-off-by: Steve Sakoman 
---
 meta/lib/oeqa/runtime/cases/ping.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/lib/oeqa/runtime/cases/ping.py 
b/meta/lib/oeqa/runtime/cases/ping.py
index 967b44175f..fcb72d4543 100644
--- a/meta/lib/oeqa/runtime/cases/ping.py
+++ b/meta/lib/oeqa/runtime/cases/ping.py
@@ -5,6 +5,7 @@
 #
 
 from subprocess import Popen, PIPE
+from time import sleep
 
 from oeqa.runtime.case import OERuntimeTestCase
 from oeqa.core.decorator.oetimeout import OETimeout
@@ -25,6 +26,7 @@ class PingTest(OERuntimeTestCase):
 count += 1
 else:
 count = 0
+sleep(1)
 except OEQATimeoutError:
 self.fail("Ping timeout error for address %s, count %s, output: 
%s" % (self.target.ip, count, output))
 msg = ('Expected 5 consecutive, got %d.\n'
-- 
2.34.1


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



[OE-core][langdale 06/10] busybox: move hwclock init earlier in startup

2023-04-25 Thread Steve Sakoman
From: Chris Elledge 

hwclock.sh had default update-rc parameters which made it run after
other tasks that work with the clock such as connman. This causes a
time obtained by NTP to be clobbered by a potentially incorrect time
in the RTC.

Provide non-default INITSCRIPT_PARAMS to have hwclock.sh run during
the rc startup before runlevel initscripts start.

Signed-off-by: Chris Elledge 
Signed-off-by: Alexandre Belloni 
Signed-off-by: Richard Purdie 
(cherry picked from commit 3012bac35ada9a9f66d9e6e2fecaee09527b9d44)
Signed-off-by: Steve Sakoman 
---
 meta/recipes-core/busybox/busybox.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/busybox/busybox.inc 
b/meta/recipes-core/busybox/busybox.inc
index 62dc839245..f5d7c3f9c8 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -34,6 +34,7 @@ INITSCRIPT_PACKAGES = "${PN}-httpd ${PN}-syslog ${PN}-udhcpd 
${PN}-mdev ${PN}-hw
 
 INITSCRIPT_NAME:${PN}-httpd = "busybox-httpd"
 INITSCRIPT_NAME:${PN}-hwclock = "hwclock.sh"
+INITSCRIPT_PARAMS:${PN}-hwclock = "start 40 S . stop 20 0 1 6 ."
 INITSCRIPT_NAME:${PN}-mdev = "mdev"
 INITSCRIPT_PARAMS:${PN}-mdev = "start 04 S ."
 INITSCRIPT_NAME:${PN}-syslog = "syslog"
-- 
2.34.1


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



[OE-core][langdale 04/10] linux-yocto/5.15: update to v5.15.107

2023-04-25 Thread Steve Sakoman
From: Bruce Ashfield 

Updating  to the latest korg -stable release that comprises
the following commits:

4fdad925aa1a Linux 5.15.107
c862d7debe55 bpftool: Print newline before '}' for struct with padding only 
fields
1585f3fc24b5 ocfs2: fix freeing uninitialized resource on ocfs2_dlm_shutdown
b97e4100be37 kbuild: fix single directory build
326b80bd2267 mm: take a page reference when removing device exclusive 
entries
1fc9263ad795 drm/bridge: lt9611: Fix PLL being unable to lock
4bdf1514b426 mm/swap: fix swap_info_struct race between swapoff and 
get_swap_pages()
cbe5f7fed7f7 ring-buffer: Fix race while reader and writer are on the same 
page
23ed5af5767a drm/nouveau/disp: Support more modes by checking with lower bpc
6f2180c5273a drm/panfrost: Fix the panfrost_mmu_map_fault_addr() error path
a184df0de132 mm: vmalloc: avoid warn_alloc noise caused by fatal signal
d88d7a9fcf20 ASoC: hdac_hdmi: use set_stream() instead of set_tdm_slots()
33d5d4e67a0e tracing: Free error logs of tracing instances
c74065da695e can: isotp: isotp_ops: fix poll() to not report false EPOLLOUT 
events
4fe1d9b6231a can: j1939: j1939_tp_tx_dat_new(): fix out-of-bounds memory 
access
0af8fae81d8b fs: drop peer group ids under namespace lock
33a503b7c339 ftrace: Fix issue that 'direct->addr' not restored in 
modify_ftrace_direct()
20c5e10950e9 ftrace: Mark get_lock_parent_ip() __always_inline
a007b7dc19de perf/core: Fix the same task check in perf_event_set_output
8417eb9aaf1e cifs: sanitize paths in cifs_update_super_prepath.
df23c702d11c smb3: lower default deferred close timeout to address perf 
regression
1d9cad9c5873 smb3: allow deferred close timeout to be configurable
5e5c5f472972 scsi: iscsi_tcp: Check that sock is valid before 
iscsi_set_param()
ae73c4dd48f2 scsi: qla2xxx: Fix memory leak in qla2x00_probe_one()
c8c17991dab0 iio: adc: ad7791: fix IRQ flags
bc61cce6a658 coresight-etm4: Fix for() loop drvdata->nr_addr_cmp range bug
97302eb6ca48 coresight: etm4x: Do not access TRCIDR1 for identification
fd23e9bbfccc ALSA: hda/realtek: Add quirk for Clevo X370SNW
f204f38212dc ksmbd: do not call kvmalloc() with __GFP_NORETRY | 
__GFP_NO_WARN
091b3e31275b dt-bindings: serial: renesas,scif: Fix 4th IRQ for 4-IRQ SCIFs
d540aea451ab nilfs2: fix sysfs interface lifetime
92684e02654c nilfs2: fix potential UAF of struct nilfs_sc_info in 
nilfs_segctor_thread()
ba3a88b444cd tty: serial: fsl_lpuart: avoid checking for transfer complete 
when UARTCTRL_SBK is asserted in lpuart32_tx_empty
ad142624ccc3 tty: serial: sh-sci: Fix Rx on RZ/G2L SCI
1184bd5c5ee4 tty: serial: sh-sci: Fix transmit end interrupt handler
1f49173be32d iio: light: cm32181: Unregister second I2C client if present
77593b4e963c iio: dac: cio-dac: Fix max DAC write value check for 12-bit
73742a446e08 iio: adc: ti-ads7950: Set `can_sleep` flag for GPIO chip
7a1e21d26104 iio: adis16480: select CONFIG_CRC32
4d3841fe16c4 USB: serial: option: add Quectel RM500U-CN modem
7151d2af0656 USB: serial: option: add Telit FE990 compositions
e1aa1c1bc51f usb: typec: altmodes/displayport: Fix configure initial pin 
assignment
9cd66aa2fa04 USB: serial: cp210x: add Silicon Labs IFS-USB-DATACABLE IDs
f8d59e2a36ac usb: dwc3: pci: add support for the Intel Meteor Lake-S
11453332fa40 usb: cdnsp: Fixes error: uninitialized symbol 'len'
83637720ea20 xhci: also avoid the XHCI_ZERO_64B_REGS quirk with a 
passthrough iommu
1122474b757a usb: xhci: tegra: fix sleep in atomic call
f5c5934580e7 kbuild: refactor single builds of *.ko
e62d179b9177 gve: Secure enough bytes in the first TX desc for all TCP pkts
40c6802d7dae ethtool: reset #lanes when lanes is omitted
4eada1dabdfb ice: Reset FDIR counter in FDIR init stage
391d28c0e38c ice: fix wrong fallback logic for FDIR
e215928a510c NFSD: callback request does not use correct credential for 
AUTH_SYS
bbca64f2052e sunrpc: only free unix grouplist after RCU settles
ca7c3b4ae03e net: stmmac: fix up RX flow hash indirection table when 
setting channels
3a997c0d2341 net: ethernet: ti: am65-cpsw: Fix mdio cleanup in probe
0ae8cdf0153c gpio: davinci: Add irq chip flag to skip set wake
1c19a42b2863 platform/x86: think-lmi: Clean up display of current_value on 
Thinkstation
cccdb30935c8 platform/x86: think-lmi: Fix memory leaks when parsing 
ThinkStation WMI strings
b9396d991abe platform/x86: think-lmi: Fix memory leak when showing current 
settings
d65ff2fe877c ipv6: Fix an uninit variable access bug in __ip6_make_skb()
926c8299ac3d net: qrtr: Do not do DEL_SERVER broadcast after DEL_CLIENT
667eb99cf7c1 sctp: check send stream number after wait_for_sndbuf
9692e16b5991 net: dsa: mv88e6xxx: Reset mv88e6393x force WD event bit
5d1007e81fb6 net: don't let netpoll invoke NAPI if in xmit context
e150a5c9f44c 

[OE-core][langdale 03/10] linux-yocto/5.15: update to v5.15.106

2023-04-25 Thread Steve Sakoman
From: Bruce Ashfield 

Updating  to the latest korg -stable release that comprises
the following commits:

d86dfc4d95cd Linux 5.15.106
06a948b8347c x86/PVH: avoid 32-bit build warning when obtaining VGA console 
info
3abdf6d71fdb hsr: ratelimit only when errors are printed
fcc09ef87e79 libbpf: Fix btf_dump's packed struct determination
74059587b25d selftests/bpf: Add few corner cases to test padding handling 
of btf_dump
c74ae8678dfa libbpf: Fix BTF-to-C converter's padding logic
17a61d1e9431 selftests/bpf: Test btf dump for struct with padding only 
fields
6777291c7b14 zonefs: Fix error message in zonefs_file_dio_append()
71ab5c1d506d KVM: x86: Purge "highest ISR" cache when updating APICv state
61e0863dc8dd KVM: x86: Inject #GP on x2APIC WRMSR that sets reserved bits 
63:32
4483dc41d123 KVM: VMX: Move preemption timer <=> hrtimer dance to common x86
a58d4e66712b s390/uaccess: add missing earlyclobber annotations to 
__clear_user()
1dfccde646aa KVM: arm64: Disable interrupts while walking userspace PTs
25e74e728168 drm/amd/display: Add DSC Support for Synaptics Cascaded MST Hub
3bfedfdbf92b drm/etnaviv: fix reference leak when mmaping imported buffer
fd1f48613e9f rcu: Fix rcu_torture_read ftrace event
9097ba15ea5c xtensa: fix KASAN report for show_stack
8861429f883e ALSA: hda/realtek: Add quirk for Lenovo ZhaoYang CF4620Z
77ab3e5f9873 ALSA: hda/realtek: Add quirks for some Clevo laptops
f775413ffeff ALSA: usb-audio: Fix regression on detection of Roland VS-100
b39d42ed67d5 ALSA: hda/conexant: Partial revert of a quirk for Lenovo
305a171cf617 NFSv4: Fix hangs when recovering open state after a server 
reboot
7624973bc15b powerpc: Don't try to copy PPR for task with NULL pt_regs
3a9510113f5b pinctrl: at91-pio4: fix domain name assignment
6c1bc7b50e02 pinctrl: amd: Disable and mask interrupts on resume
45ed4e5149e8 net: phy: dp83869: fix default value for tx-/rx-internal-delay
0f75ef136169 xen/netback: don't do grant copy across page boundary
8a581b71cf68 can: j1939: prevent deadlock by moving j1939_sk_errqueue()
a3373a681d9a zonefs: Always invalidate last cached page on append write
c1310fc7abe6 btrfs: scan device in non-exclusive mode
c976f9233ef9 btrfs: fix race between quota disable and quota assign ioctls
1484852ca152 Input: goodix - add Lenovo Yoga Book X90F to nine_bytes_report 
DMI table
b64305185b76 cifs: fix DFS traversal oops without CONFIG_CIFS_DFS_UPCALL
0a2e0baf3677 cifs: prevent infinite recursion in CIFSGetDFSRefer()
a5075c097de1 Input: focaltech - use explicitly signed char type
cf43bc826159 Input: alps - fix compatibility with -funsigned-char
16c951f3eba4 iommu/vt-d: Allow zero SAGAW if second-stage not supported
e4fbeaa31362 pinctrl: ocelot: Fix alt mode for ocelot
76f09582a191 net: ethernet: mtk_eth_soc: fix flow block refcounting logic
9caf3cbf1224 net: dsa: mv88e6xxx: Enable IGMP snooping on user ports only
4c6c0e8510a2 bnxt_en: Add missing 200G link speed reporting
c519174366a3 bnxt_en: Fix typo in PCI id to device description string 
mapping
24722a0e0925 bnxt_en: Fix reporting of test result in ethtool selftest
3e3654bf679f i40e: fix registers dump after run ethtool adapter self test
8d7b0b22ea22 net: ipa: compute DMA pool size properly
81d2a7e93c83 ALSA: ymfpci: Fix BUG_ON in probe function
95642872c466 ALSA: ymfpci: Create card with device-managed 
snd_devm_card_new()
9cb4f23e4f7a ice: fix invalid check for empty list in 
ice_sched_assoc_vsi_to_agg()
938eba5b434d ice: add profile conflict check for AVF FDIR
0ea60b230d19 smsc911x: avoid PHY being resumed when interface is not up
41f77a6d9841 net: mvpp2: parser fix PPPoE
ec117d22f143 net: mvpp2: parser fix QinQ
18d6e95fbb08 net: mvpp2: classifier flow fix fragmentation flags
aa45d3dd74e9 loop: LOOP_CONFIGURE: send uevents for partitions
83ee49ab185d loop: suppress uevents while reconfiguring the device
aa2bff25e9bb s390/vfio-ap: fix memory leak in vfio_ap device driver
bf70e0eab64c can: bcm: bcm_tx_setup(): fix KMSAN uninit-value in vfs_write
959348f7c300 platform/x86/intel/pmc: Alder Lake PCH slp_s0_residency fix
c8e7ff3071bf drm/i915/tc: Fix the ICL PHY ownership check in TC-cold state
61e2e6d444cd net: stmmac: don't reject VLANs when IFF_PROMISC is set
2d5cebf57296 net/net_failover: fix txq exceeding warning
829a0d013c00 regulator: Handle deferred clk
75155f4d8dcd r8169: fix RTL8168H and RTL8107E rx crc error
4597e104a365 net: dsa: microchip: ksz8863_smi: fix bulk access
c0de1a26e659 ptp_qoriq: fix memory leak in probe()
d84796008a89 scsi: mpt3sas: Don't print sense pool info twice
27b1ae000bf1 scsi: megaraid_sas: Fix crash after a double completion
d63a83146d25 sfc: ef10: don't overwrite offload features at NIC reset
7ea88e90dabb SUNRPC: fix shutdown of NFS 

[OE-core][langdale 02/10] screen: backport fix for CVE-2023-24626

2023-04-25 Thread Steve Sakoman
From: Ross Burton 

Signed-off-by: Ross Burton 
Signed-off-by: Luca Ceresoli 
(cherry picked from commit 05c7f446ca790f3695d04665aad118e42b7a52be)
Signed-off-by: Steve Sakoman 
---
 .../screen/screen/signal-permission.patch | 40 +++
 meta/recipes-extended/screen/screen_4.9.0.bb  |  1 +
 2 files changed, 41 insertions(+)
 create mode 100644 meta/recipes-extended/screen/screen/signal-permission.patch

diff --git a/meta/recipes-extended/screen/screen/signal-permission.patch 
b/meta/recipes-extended/screen/screen/signal-permission.patch
new file mode 100644
index 00..77dc649090
--- /dev/null
+++ b/meta/recipes-extended/screen/screen/signal-permission.patch
@@ -0,0 +1,40 @@
+From e9ad41bfedb4537a6f0de20f00b27c7739f168f7 Mon Sep 17 00:00:00 2001
+From: Alexander Naumov 
+Date: Mon, 30 Jan 2023 17:22:25 +0200
+Subject: fix: missing signal sending permission check on failed query messages
+
+Signed-off-by: Alexander Naumov 
+
+CVE: CVE-2023-24626
+Upstream-Status: Backport
+Signed-off-by: Ross Burton 
+---
+ src/socket.c | 9 +++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/src/socket.c b/src/socket.c
+index 147dc54..54d8cb8 100644
+--- a/socket.c
 b/socket.c
+@@ -1285,11 +1285,16 @@ ReceiveMsg()
+   else
+ queryflag = -1;
+ 
+-  Kill(m.m.command.apid,
++  if (CheckPid(m.m.command.apid)) {
++Msg(0, "Query attempt with bad pid(%d)!", m.m.command.apid);
++  }
++  else {
++Kill(m.m.command.apid,
+(queryflag >= 0)
+? SIGCONT
+: SIG_BYE); /* Send SIG_BYE if an error happened */
+-  queryflag = -1;
++queryflag = -1;
++  }
+ }
+ break;
+   case MSG_COMMAND:
+-- 
+cgit v1.1
+
diff --git a/meta/recipes-extended/screen/screen_4.9.0.bb 
b/meta/recipes-extended/screen/screen_4.9.0.bb
index 77e8000bf3..235cd8c6cf 100644
--- a/meta/recipes-extended/screen/screen_4.9.0.bb
+++ b/meta/recipes-extended/screen/screen_4.9.0.bb
@@ -22,6 +22,7 @@ SRC_URI = "${GNU_MIRROR}/screen/screen-${PV}.tar.gz \
file://0001-fix-for-multijob-build.patch \
file://0001-Remove-more-compatibility-stuff.patch \
file://0001-configure-Add-needed-system-headers-in-checks.patch \
+   file://signal-permission.patch \
"
 
 SRC_URI[sha256sum] = 
"f9335281bb4d1538ed078df78a20c2f39d3af9a4e91c57d084271e0289c730f4"
-- 
2.34.1


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



[OE-core][langdale 01/10] xserver-xorg: backport fix for CVE-2023-1393

2023-04-25 Thread Steve Sakoman
From: Ross Burton 

Signed-off-by: Ross Burton 
Signed-off-by: Richard Purdie 
(cherry picked from commit 7828f7026b4cd3ae97ebe5d849c09fabbc17272d)
Signed-off-by: Steve Sakoman 
---
 ...posite-Fix-use-after-free-of-the-COW.patch | 46 +++
 .../xorg-xserver/xserver-xorg_21.1.7.bb   |  3 +-
 2 files changed, 48 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-composite-Fix-use-after-free-of-the-COW.patch

diff --git 
a/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-composite-Fix-use-after-free-of-the-COW.patch
 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-composite-Fix-use-after-free-of-the-COW.patch
new file mode 100644
index 00..fc426daba5
--- /dev/null
+++ 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-composite-Fix-use-after-free-of-the-COW.patch
@@ -0,0 +1,46 @@
+From 26ef545b3502f61ca722a7a3373507e88ef64110 Mon Sep 17 00:00:00 2001
+From: Olivier Fourdan 
+Date: Mon, 13 Mar 2023 11:08:47 +0100
+Subject: [PATCH] composite: Fix use-after-free of the COW
+
+ZDI-CAN-19866/CVE-2023-1393
+
+If a client explicitly destroys the compositor overlay window (aka COW),
+we would leave a dangling pointer to that window in the CompScreen
+structure, which will trigger a use-after-free later.
+
+Make sure to clear the CompScreen pointer to the COW when the latter gets
+destroyed explicitly by the client.
+
+This vulnerability was discovered by:
+Jan-Niklas Sohn working with Trend Micro Zero Day Initiative
+
+Signed-off-by: Olivier Fourdan 
+Reviewed-by: Adam Jackson 
+
+CVE: CVE-2023-1393
+Upstream-Status: Backport
+Signed-off-by: Ross Burton 
+---
+ composite/compwindow.c | 5 +
+ 1 file changed, 5 insertions(+)
+
+diff --git a/composite/compwindow.c b/composite/compwindow.c
+index 4e2494b86..b30da589e 100644
+--- a/composite/compwindow.c
 b/composite/compwindow.c
+@@ -620,6 +620,11 @@ compDestroyWindow(WindowPtr pWin)
+ ret = (*pScreen->DestroyWindow) (pWin);
+ cs->DestroyWindow = pScreen->DestroyWindow;
+ pScreen->DestroyWindow = compDestroyWindow;
++
++/* Did we just destroy the overlay window? */
++if (pWin == cs->pOverlayWin)
++cs->pOverlayWin = NULL;
++
+ /*compCheckTree (pWin->drawable.pScreen); can't check -- tree isn't good*/
+ return ret;
+ }
+-- 
+2.34.1
+
diff --git a/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.7.bb 
b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.7.bb
index 212c7d39c2..f0771cc86e 100644
--- a/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.7.bb
+++ b/meta/recipes-graphics/xorg-xserver/xserver-xorg_21.1.7.bb
@@ -1,7 +1,8 @@
 require xserver-xorg.inc
 
 SRC_URI += 
"file://0001-xf86pciBus.c-use-Intel-ddx-only-for-pre-gen4-hardwar.patch \
-   file://0001-Avoid-duplicate-definitions-of-IOPortBase.patch \
+file://0001-Avoid-duplicate-definitions-of-IOPortBase.patch \
+file://0001-composite-Fix-use-after-free-of-the-COW.patch \
"
 SRC_URI[sha256sum] = 
"d9c60b2dd0ec52326ca6ab20db0e490b1ff4f566f59ca742d6532e92795877bb"
 
-- 
2.34.1


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



[OE-core][langdale 00/10] Patch review

2023-04-25 Thread Steve Sakoman
Please review this set of patches for langdale and have comments back by
end of day Thursday.

Passed a-full on autobuilder:

https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/5215

The following changes since commit 5f2d74856e6790e8742f7d6049f7a21c4c17d987:

  report-error: catch Nothing PROVIDES error (2023-04-05 06:24:00 -1000)

are available in the Git repository at:

  https://git.openembedded.org/openembedded-core-contrib stable/langdale-nut
  
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=stable/langdale-nut

Bruce Ashfield (3):
  linux-yocto/5.15: update to v5.15.106
  linux-yocto/5.15: update to v5.15.107
  linux-yocto/5.15: update to v5.15.108

Chris Elledge (1):
  busybox: move hwclock init earlier in startup

Christoph Lauer (1):
  populate_sdk_base: add zip options

Marek Vasut (1):
  cpio: Fix wrong CRC with ASCII CRC for large files

Mikko Rapeli (2):
  oeqa ping.py: avoid busylooping failing ping command
  oeqa ping.py: fail test if target IP address has not been set

Ross Burton (2):
  xserver-xorg: backport fix for CVE-2023-1393
  screen: backport fix for CVE-2023-24626

 meta/classes-recipe/populate_sdk_base.bbclass |  4 +-
 meta/lib/oeqa/runtime/cases/ping.py   |  3 ++
 meta/recipes-core/busybox/busybox.inc |  1 +
 ...g-CRC-with-ASCII-CRC-for-large-files.patch | 39 
 meta/recipes-extended/cpio/cpio_2.13.bb   |  1 +
 .../screen/screen/signal-permission.patch | 40 
 meta/recipes-extended/screen/screen_4.9.0.bb  |  1 +
 ...posite-Fix-use-after-free-of-the-COW.patch | 46 +++
 .../xorg-xserver/xserver-xorg_21.1.7.bb   |  3 +-
 .../linux/linux-yocto-rt_5.15.bb  |  6 +--
 .../linux/linux-yocto-tiny_5.15.bb|  6 +--
 meta/recipes-kernel/linux/linux-yocto_5.15.bb | 26 +--
 12 files changed, 155 insertions(+), 21 deletions(-)
 create mode 100644 
meta/recipes-extended/cpio/cpio-2.13/0001-Wrong-CRC-with-ASCII-CRC-for-large-files.patch
 create mode 100644 meta/recipes-extended/screen/screen/signal-permission.patch
 create mode 100644 
meta/recipes-graphics/xorg-xserver/xserver-xorg/0001-composite-Fix-use-after-free-of-the-COW.patch

-- 
2.34.1


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



[OE-core] [PATCH] python3targetconfig.bbclass: Extend PYTHONPATH instead of overwriting

2023-04-25 Thread dev
From: Johannes Schrimpf 

[YOCTO #15108] -- https://bugzilla.yoctoproject.org/show_bug.cgi?id=15108

Since the latest change, the PYTHONPATH is overwritten instead of extended.
This leads to changed behavior and build errors of recipes where the PYTHONPATH
is set before setup_target_config is run.

Signed-off-by: Johannes Schrimpf 
---
 meta/classes-recipe/python3targetconfig.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-recipe/python3targetconfig.bbclass 
b/meta/classes-recipe/python3targetconfig.bbclass
index 22305fe176..08bc619398 100644
--- a/meta/classes-recipe/python3targetconfig.bbclass
+++ b/meta/classes-recipe/python3targetconfig.bbclass
@@ -12,7 +12,7 @@ DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}"
 
 setup_target_config() {
 export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
-export PYTHONPATH=${STAGING_LIBDIR}/python-sysconfigdata
+export PYTHONPATH=${STAGING_LIBDIR}/python-sysconfigdata:$PYTHONPATH
 export PATH=${STAGING_EXECPREFIXDIR}/python-target-config/:$PATH
 }
 
-- 
2.37.1 (Apple Git-137.1)


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



Re: [OE-core] [PATCH v3] openssl: set package level PERL5LIB

2023-04-25 Thread Yang Xu via lists.openembedded.org
Dear Sirs,

Sorry, please NOT accept this patch because I found it will break its
own sstate cache.

I will found other solution for this openssl/perl co-work issue.

On Fri, 2023-04-21 at 03:38 +, yang...@mediatek.com wrote:
> From: Yang Xu 
> 
> Build openssl with shared state cache may meet problem under below
> conditions:
> 1. sstate cache generated by another user on same machine
> 2. inappropriate PERL5LIB setting
> 3. openssl build from scratch but perl using cache
> 
> When build openssl from scratch with perl using cache, it will be
> aborted at do_configure stage,
> error message is like "Can't locate Text/Template.pm at
> /home/A/[build path]/[perl module path]/Text/Template.pm : Permission
> Denied".
> 
> The simplified environment and scenarios is:
> 1) User A, his home directory is /home/A, generate one sstate cache
> under /home/A.
> 2) This sstate cache moved to /home/Public, act as shared sstate
> cache
> 3) User B, his home directory is /home/B, using sstate cache in
> /home/Public and build yocto.
> 4) User B has no permission to access /home/A.
> 
> Some information about perl behavior:
> 1. perl will hardcode buildtime path in @INC in binary (module search
> directories)
> 2. when "use MODULE", perl will search @INC from begin to end until
> it found MODULE.
> 3. when perl search module through directories in @INC
>  3.1 if [directory]/MODULE.pm is not exist, search in next
> directory in @INC.
>  3.2 if [directory]/MODULE.pm has no permission to access, perl
> will ABORT.
> 
> While build openssl from from scratch with perl using cache, @INC
> directory order is:
> 1.
> 2.
> 3.
> 4.
> 
> Without appropriate PERL5LIB setting, perl can't find
> Text/Template.pm in
> , and it also can't find it in .
> 
> Then perl search Text/Template.pm in  binary>,
> *if /home/A is not existed, perl will search in  FindBin> and found Text/Template.pm finally. (OK case)
> *if /home/A is existed but has no permission access, perl will ABORT
> immediately. (NG case)
> 
> So this patch does some fixup for NG case:
> 1) set appropriate PERL5LIB to make perl can found Text/Tempalte.pm
> at highest priority folder .
> 2) add other perl module directories needed by openssl build in
> PERL5LIB
> 3) set PERL5LIB as package environment variable
> 
> Signed-off-by: Yang Xu 
> ---
>  meta/recipes-connectivity/openssl/openssl_3.1.0.bb | 6 +-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-connectivity/openssl/openssl_3.1.0.bb
> b/meta/recipes-connectivity/openssl/openssl_3.1.0.bb
> index b319c66044..613451f265 100644
> --- a/meta/recipes-connectivity/openssl/openssl_3.1.0.bb
> +++ b/meta/recipes-connectivity/openssl/openssl_3.1.0.bb
> @@ -54,6 +54,10 @@ CFLAGS:append:class-nativesdk = "
> -DOPENSSLDIR=/not/builtin -DENGINESDIR=/not/bu
>  # The default is to trust upstream choices.
>  DEPRECATED_CRYPTO_FLAGS ?= ""
>  
> +# Set package level PERL5LIB
> +PERL5LIB = "${S}/external/perl/Text-Template-
> 1.56/lib/:${S}/crypto/perlasm"
> +export PERL5LIB
> +
>  do_configure () {
>   # When we upgrade glibc but not uninative we see obtuse
> failures in openssl. Make
>   # the issue really clear that perl isn't functional due to
> symbol mismatch issues.
> @@ -138,7 +142,7 @@ do_configure () {
>   fi
>   # WARNING: do not set compiler/linker flags (-I/-D etc.) in
> EXTRA_OECONF, as they will fully replace the
>   # environment variables set by bitbake. Adjust the environment
> variables instead.
> - HASHBANGPERL="/usr/bin/env perl" PERL=perl
> PERL5LIB="${S}/external/perl/Text-Template-1.46/lib/" \
> + HASHBANGPERL="/usr/bin/env perl" PERL=perl \
>   perl ${S}/Configure ${EXTRA_OECONF} ${PACKAGECONFIG_CONFARGS}
> ${DEPRECATED_CRYPTO_FLAGS} --prefix=$useprefix --
> openssldir=${libdir}/ssl-3 --libdir=${libdir} $target
>   perl ${B}/configdata.pm --dump
>  }

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



Re: [OE-core] [PATCH v2] openssl: set package level PERL5LIB

2023-04-25 Thread Yang Xu via lists.openembedded.org
Dear Sirs,

Sorry, please NOT accept this patch because I found it will break its
own sstate cache.

I will found other solution for this openssl/perl co-work issue.

On Thu, 2023-04-20 at 10:43 +0200, Luca Ceresoli wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> Hello Yang,
> 
> thanks for you patch. However there is an issue with your e-mail, see
> below
> 
> On Thu, 20 Apr 2023 06:30:34 +
> "Yang Xu via lists.openembedded.org"
>  wrote:
> 
> 
> As you can see your sender address has been mangled, and as a result
> the patch is rejected by the the openembedded git server. This is not
> your fault, but we need you to modify your git configuration to
> prevent
> this from happening in the future. Have a look at the wiki for more
> info and how to solve that:
> 
> 
https://urldefense.com/v3/__https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded*Fixing_your_From_identity__;Iw!!CTRNKA9wMg0ARbw!mqd2E9hIGSyXX1IuHHAsZENlRGaglvctXM4n_aGmmPesGsE7KMIxiBwRhAo_7H7IP7fVwq1ICYPKoQVXgz6U1ZFvnQ$
> 
> I'm taking your patch for testing on the autobuilders, fixing it
> manually so you don't need to resend it.
> 
> Best regards,
> Luca
> 
> --
> Luca Ceresoli, Bootlin
> Embedded Linux and Kernel engineering
> 
https://urldefense.com/v3/__https://bootlin.com__;!!CTRNKA9wMg0ARbw!mqd2E9hIGSyXX1IuHHAsZENlRGaglvctXM4n_aGmmPesGsE7KMIxiBwRhAo_7H7IP7fVwq1ICYPKoQVXgz6LUphplw$

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



Re: [OE-core] [PATCH] openssl: set package level PERL5LIB

2023-04-25 Thread Yang Xu via lists.openembedded.org
Dear Sirs,

Sorry, please NOT accept this patch because I found it will break its
own sstate cache.

I will found other solution for this openssl/perl co-work issue.

On Thu, 2023-04-20 at 21:11 +0100, Richard Purdie wrote:
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
> 
> 
> On Thu, 2023-04-20 at 19:20 +0200, Alexander Kanavin wrote:
> > Thank you, I understand this now. I'm fine with the fix, but can
> > you
> > add this additional information to the commit message? So that it's
> > available in git history if anyone needs to understand it.
> 
> I think there is something additional we need to do. If the path
> compiled into perl breaks when it is installed from sstate, we should
> make sure this path is *always* incorrect. That way things will work
> or
> fail deterministicly.
> 
> Cheers,
> 
> Richard

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