Re: [linux-yocto][v6.1/standard/preempt-rt/sdkv6.1/xlnx-soc][PATCH] arm64: zynqmp: delete redundant xiic-i2c device node

2023-06-26 Thread quanyang.wang via lists.yoctoproject.org

ping.

On 6/21/23 10:54, quanyang.wang via lists.yoctoproject.org wrote:

From: Quanyang Wang 

The device node "axi_iic_0" is not needed to test canfd. Let's remove it
since it triggers warning info:
 xiic-i2c 80003000.i2c: error -ENXIO: IRQ index 0 not found

Signed-off-by: Quanyang Wang 
---
Hi Bruce,
Would you please help merge this patch to the branches:
v6.1/standard/preempt-rt/sdkv6.1/xlnx-soc
v6.1/standard/sdkv6.1/xlnx-soc
Thanks,
Quanyang
---
  arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0-canfd.dts | 8 
  1 file changed, 8 deletions(-)

diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0-canfd.dts 
b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0-canfd.dts
index d5b54d4a98d12..c351cd18398aa 100644
--- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0-canfd.dts
+++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0-canfd.dts
@@ -15,14 +15,6 @@ amba_pl: amba_pl {
#size-cells = <2>;
compatible = "simple-bus";
ranges ;
-   axi_iic_0: i2c@80003000 {
-   #address-cells = <1>;
-   #size-cells = <0>;
-   clock-names = "s_axi_aclk";
-   clocks = <_clk 71>;
-   compatible = "xlnx,axi-iic-2.0", "xlnx,xps-iic-2.00.a";
-   reg = <0x0 0x80003000 0x0 0x1000>;
-   };
axi_timer_0: timer@8000 {
clock-frequency = <187481262>;
clock-names = "s_axi_aclk";




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



[yocto] [meta-security][PATC 2/3] python3-segno: add new package

2023-06-26 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 .../recipes-devtools/python/python3-segno_1.5.2.bb   | 9 +
 1 file changed, 9 insertions(+)
 create mode 100644 
dynamic-layers/meta-python/recipes-devtools/python/python3-segno_1.5.2.bb

diff --git 
a/dynamic-layers/meta-python/recipes-devtools/python/python3-segno_1.5.2.bb 
b/dynamic-layers/meta-python/recipes-devtools/python/python3-segno_1.5.2.bb
new file mode 100644
index 000..f8a6552
--- /dev/null
+++ b/dynamic-layers/meta-python/recipes-devtools/python/python3-segno_1.5.2.bb
@@ -0,0 +1,9 @@
+DESCRIPTION = "QR Code and Micro QR Code generator for Python 2 and Python 3"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=8e8db3765a57bcb968140e0a353c1a35"
+
+SRC_URI[sha256sum] = 
"983424b296e62189d70fc73460cd946cf56dcbe82b9bda18c066fc1b24371cdc"
+
+#PYPI_PACKAGE = "Flask-Script"
+
+inherit pypi setuptools3
-- 
2.34.1


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



[yocto] [meta-security][PATC 3/3] python3-privacyidea: fixup REDPENDS

2023-06-26 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 .../recipes-security/mfa/python3-privacyidea_3.8.1.bb  | 7 +++
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/dynamic-layers/meta-python/recipes-security/mfa/python3-privacyidea_3.8.1.bb 
b/dynamic-layers/meta-python/recipes-security/mfa/python3-privacyidea_3.8.1.bb
index 8bb88f1..aa7bafa 100644
--- 
a/dynamic-layers/meta-python/recipes-security/mfa/python3-privacyidea_3.8.1.bb
+++ 
b/dynamic-layers/meta-python/recipes-security/mfa/python3-privacyidea_3.8.1.bb
@@ -21,8 +21,7 @@ USERADD_PARAM:${PN} = "--system -g privacyidea -o -r -d 
/opt/${BPN}  \
 
 FILES:${PN} += " ${prefix}/etc/privacyidea/* ${prefix}/lib/privacyidea/*"
 
-RDEPENDS:${PN} += " bash perl freeradius-mysql freeradius-utils"
-
+RDEPENDS:${PN} = " bash perl freeradius-mysql freeradius-utils"
 RDEPENDS:${PN} += "python3 python3-alembic python3-babel python3-bcrypt"
 RDEPENDS:${PN} += "python3-beautifulsoup4 python3-cbor2 python3-certifi 
python3-cffi python3-chardet"
 RDEPENDS:${PN} += "python3-click python3-configobj python3-croniter 
python3-cryptography python3-defusedxml"
@@ -34,5 +33,5 @@ RDEPENDS:${PN} += "python3-markupsafe python3-netaddr 
python3-oauth2client pytho
 RDEPENDS:${PN} += "python3-pyasn1 python3-pyasn1-modules python3-pycparser 
python3-pyjwt python3-pymysql"
 RDEPENDS:${PN} += "python3-pyopenssl python3-pyrad python3-dateutil 
python3-editor python3-gnupg"
 RDEPENDS:${PN} += "python3-pytz python3-pyyaml python3-qrcode python3-redis 
python3-requests python3-rsa"
-RDEPENDS:${PN} += "python3-six python3-smpplib python3-soupsieve 
python3-soupsieve "
-RDEPENDS:${PN} += "python3-sqlalchemy python3-sqlsoup python3-urllib3 
python3-werkzeug"
+RDEPENDS:${PN} += "python3-smpplib python3-soupsieve python3-segno 
python3-importlib-metadata"
+RDEPENDS:${PN} += "python3-sqlalchemy python3-urllib3 python3-werkzeug"
-- 
2.34.1


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



[yocto] [meta-security][PATC 1/3] python3-flask-script: add package

2023-06-26 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 .../python/python3-flask-script_2.0.6.bb   | 14 ++
 1 file changed, 14 insertions(+)
 create mode 100644 
dynamic-layers/meta-python/recipes-devtools/python/python3-flask-script_2.0.6.bb

diff --git 
a/dynamic-layers/meta-python/recipes-devtools/python/python3-flask-script_2.0.6.bb
 
b/dynamic-layers/meta-python/recipes-devtools/python/python3-flask-script_2.0.6.bb
new file mode 100644
index 000..377ad02
--- /dev/null
+++ 
b/dynamic-layers/meta-python/recipes-devtools/python/python3-flask-script_2.0.6.bb
@@ -0,0 +1,14 @@
+DESCRIPTION = "Scripting support for flask"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e686048adb69341fc8a08caeda528b41"
+
+SRC_URI[md5sum] = "3fbd91fe13cebedfb2431331f6eabb68"
+SRC_URI[sha256sum] = 
"6425963d91054cfcc185807141c7314a9c5ad46325911bd24dcb489bd0161c65"
+
+PYPI_PACKAGE = "Flask-Script"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "\
+${PYTHON_PN}-flask \
+"
-- 
2.34.1


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



Re: [linux-yocto]: [kernel for intel-socfpga]: intel-socfpga: dts: improve qspi nor-flash partitions for Remote System Update feature

2023-06-26 Thread Bruce Ashfield
In message: [linux-yocto]: [kernel for intel-socfpga]: intel-socfpga: dts: 
improve qspi nor-flash partitions for Remote System Update feature
on 26/06/2023 Meng Li wrote:

> From: Limeng 
> 
> Hi Bruce,
> 
> This patch is used to improve qspi nor-flash partitions for Remote System 
> Update feature
> Could you please help to merge it into linux-ycoto kernel repo, both standard 
> and rt branches
> v6.1/standard/intel-sdk-6.1/intel-socfpga
> v6.1/standard/preempt-rt/intel-sdk-6.1/intel-socfpga

merged.

Bruce

> 
> diffstat info as below:
> 
>  altera/socfpga_stratix10_socdk.dts |   12 ++--
>  intel/socfpga_agilex_socdk.dts |   12 ++--
>  2 files changed, 12 insertions(+), 12 deletions(-)
> 
> 
> thanks,
> Limeng

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



[yocto] M+ & H bugs with Milestone Movements WW25

2023-06-26 Thread Stephen Jolley
All,

YP M+ or high bugs which moved to a new milestone in WW25 are listed below: 


Priority

Bug ID

Short Description

Changer

Owner

Was

Became


Medium+

7600  

syslinux: port extX support patches to syslinux community

randy.macl...@windriver.com

sakib.sa...@windriver.com

4.3 M1

4.3 M2


10731  

bitbake --observe-only doesn't work with memres

randy.macl...@windriver.com

pa...@zhukoff.net

4.3 M1

4.3 M2


10820  

devtool: -d/--debug doesn't show bitbake debug output

randy.macl...@windriver.com

pi...@pidge.org

4.3 M1

4.3 M2


12723  

mysql requires unicode and char length filtering

david.re...@windriver.com

david.re...@windriver.com

4.3 M1

4.3 M2


13008  

toaster testing

david.re...@windriver.com

david.re...@windriver.com

4.3 M1

4.3 M2


13103  

[Bug][QA 2.7 M1 rc1][Toaster] "Recipes" table  and  "machines" table are not 
getting populated after clicking on imported layer as well as after clicking 
Machines Tab on project page

david.re...@windriver.com

david.re...@windriver.com

4.3 M1

4.3 M2


13338  

SDK build fails if image contains bash

randy.macl...@windriver.com

pa...@zhukoff.net

4.3 M1

4.3 M2


13508  

Meson detects googletest installed on system

randy.macl...@windriver.com

newco...@yoctoproject.org

4.3 M1

4.3 M2


13533  

Devtool finish on _git package with SRCPV in PV points to wrong WORKDIR

david.re...@windriver.com

david.re...@windriver.com

4.3 M1

4.3 M3


13766  

Using TCLIBC=musl results in SDKs producing incompatible binaries

randy.macl...@windriver.com

sakib.sa...@windriver.com

4.3 M1

4.3 M2


13904  

do_prepare_recipe_sysroot: postinst-useradd-* does not run in order of 
dependency and sometimes fails

randy.macl...@windriver.com

sakib.sa...@windriver.com

4.3 M1

4.3 M2


14066  

bitbake core-image-base -c populate_sdk fails when image contains bash, 
core-utils and package_deb is used

randy.macl...@windriver.com

pa...@zhukoff.net

4.3 M1

4.3 M2


14141  

devtool modify fails with submodules

david.re...@windriver.com

david.re...@windriver.com

4.3 M1

4.3 M2


14403  

Qemu error messages not clear when command line is corrupted.

randy.macl...@windriver.com

sakib.sa...@windriver.com

4.3 M1

4.3 M3


14723  

patches not applied by devtool when using overrides in SRC_URI

randy.macl...@windriver.com

pi...@pidge.org

4.3 M1

4.3 M2


14814  

ncurses version of taskexp.py

david.re...@windriver.com

david.re...@windriver.com

4.3 M1

4.3 M2


14837  

devtool modify doesnt fetch all the crates on rust based recipes

randy.macl...@windriver.com

pi...@pidge.org

4.3 M1

4.3 M2


14875  

reproducibility failures in rust

randy.macl...@windriver.com

sundeep.kokko...@windriver.com

4.3 M1

4.3 M2


14938  

gitsm fetcher failure when LFS content is present and git smudge fails

randy.macl...@windriver.com

martin.ja...@gmail.com

4.3 M1

4.3 M2


14991  

When forcing WARN_QA as ERROR_QA patch-fuzz QA checks are not fatal

randy.macl...@windriver.com

mathew.pro...@gmail.com

4.3 M1

4.3 M2


15023  

Cannot build SDK with api-documentation enabled

randy.macl...@windriver.com

pa...@zhukoff.net

4.3 M1

4.3 M2


15061  

Rust multilib sdks broken

randy.macl...@windriver.com

sundeep.kokko...@windriver.com

4.3 M1

4.3 M3


15146  

AB-INT: baremetal.BaremetalTest.test_baremetal failure

randy.macl...@windriver.com

alejan...@enedino.org

0.0.0

4.3 M2


15148  

Is uninative-tarball reproducible?


[yocto] Enhancements/Bugs closed WW25!

2023-06-26 Thread Stephen Jolley
All,

The below were the owners of enhancements or bugs closed during the last
week!


Who

Count


randy.macl...@windriver.com

4


ross.bur...@arm.com

3


richard.pur...@linuxfoundation.org

1


johannes.schri...@blueye.no

1


david.re...@windriver.com

1


Grand Total

10

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com
 

 


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



[yocto] Current high bug count owners for Yocto Project 4.3

2023-06-26 Thread Stephen Jolley
All,

Below is the list as of top 29 bug owners as of the end of WW25 of who have
open medium or higher bugs and enhancements against YP 4.3. There are 86
possible work days left until the final release candidates for YP 4.3 needs
to be released.


Who

Count


michael.opdenac...@bootlin.com

32


ross.bur...@arm.com

30


david.re...@windriver.com

25


richard.pur...@linuxfoundation.org

24


bruce.ashfi...@gmail.com

24


randy.macl...@windriver.com

21


jpewhac...@gmail.com

10


pa...@zhukoff.net

7


sundeep.kokko...@windriver.com

5


sakib.sa...@windriver.com

5


pi...@pidge.org

4


yash.shi...@windriver.com

3


tim.orl...@konsulko.com

3


alexis.loth...@bootlin.com

3


jon.ma...@arm.com

2


yoann.con...@smile.fr

1


tvgamb...@gmail.com

1


thr...@amazon.de

1


thomas.per...@bootlin.com

1


st...@sakoman.com

1


p.lob...@welotec.com

1


martin.ja...@gmail.com

1


mark.ha...@kernel.crashing.org

1


mark.asselst...@windriver.com

1


louis.ran...@syslinbit.com

1


jens.ge...@desy.de

1


fathi.bou...@linaro.org

1


alexandre.bell...@bootlin.com

1


alejan...@enedino.org

1


Grand Total

212

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com
 

 


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



[yocto] Yocto Project Newcomer & Unassigned Bugs - Help Needed

2023-06-26 Thread Stephen Jolley
All,

 

The triage team is starting to try and collect up and classify bugs which a
newcomer to the project would be able to work on in a way which means people
can find them. They're being listed on the triage page under the appropriate
heading:

https://wiki.yoctoproject.org/wiki/Bug_Triage#Newcomer_Bugs  Also please
review:
https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded and
how to create a bugzilla account at:

https://bugzilla.yoctoproject.org/createaccount.cgi

The idea is these bugs should be straight forward for a person to help work
on who doesn't have deep experience with the project.  If anyone can help,
please take ownership of the bug and send patches!  If anyone needs
help/advice there are people on irc who can likely do so, or some of the
more experienced contributors will likely be happy to help too.

 

Also, the triage team meets weekly and does its best to handle the bugs
reported into the Bugzilla. The number of people attending that meeting has
fallen, as have the number of people available to help fix bugs. One of the
things we hear users report is they don't know how to help. We (the triage
team) are therefore going to start reporting out the currently 432
unassigned or newcomer bugs.

 

We're hoping people may be able to spare some time now and again to help out
with these.  Bugs are split into two types, "true bugs" where things don't
work as they should and "enhancements" which are features we'd want to add
to the system.  There are also roughly four different "priority" classes
right now,  "4.3", "4.4", "4.99" and "Future", the more pressing/urgent
issues being in "4.3" and then "4.4".

 

Please review this link and if a bug is something you would be able to help
with either take ownership of the bug, or send me (sjolley.yp...@gmail.com
 ) an e-mail with the bug number you would
like and I will assign it to you (please make sure you have a Bugzilla
account).  The list is at:
https://wiki.yoctoproject.org/wiki/Bug_Triage_Archive#Unassigned_or_Newcomer
_Bugs

 

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com
 

 


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



[yocto] [meta-rockchip] [PATCH] trusted-firmware-a: add Upstream-Status to .patch file

2023-06-26 Thread Martin Jansa
Signed-off-by: Martin Jansa 
---
 .../files/0001-dram-Fix-build-with-gcc-11.patch  | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/recipes-bsp/trusted-firmware-a/files/0001-dram-Fix-build-with-gcc-11.patch 
b/recipes-bsp/trusted-firmware-a/files/0001-dram-Fix-build-with-gcc-11.patch
index 14defed..94ca8e2 100644
--- a/recipes-bsp/trusted-firmware-a/files/0001-dram-Fix-build-with-gcc-11.patch
+++ b/recipes-bsp/trusted-firmware-a/files/0001-dram-Fix-build-with-gcc-11.patch
@@ -12,6 +12,7 @@ plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c:781:11: 
error: explicitly a
 ~~~ ^ ~~~
 
 Signed-off-by: Khem Raj 
+Upstream-Status: Pending
 ---
  plat/rockchip/rk3399/drivers/dram/dram_spec_timing.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
-- 
2.41.0


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



[yocto] [meta-security][PATCH 2/2] ossec-hids: Fix usermod

2023-06-26 Thread Armin Kuster
Use built in USERMOD to set uid and gid properly.
convert to using OSSEC_DIR instead of DIR

Signed-off-by: Armin Kuster 
---
 recipes-ids/ossec/ossec-hids_3.7.0.bb | 111 ++
 1 file changed, 58 insertions(+), 53 deletions(-)

diff --git a/recipes-ids/ossec/ossec-hids_3.7.0.bb 
b/recipes-ids/ossec/ossec-hids_3.7.0.bb
index 55c10fa..829715b 100644
--- a/recipes-ids/ossec/ossec-hids_3.7.0.bb
+++ b/recipes-ids/ossec/ossec-hids_3.7.0.bb
@@ -17,11 +17,19 @@ inherit autotools-brokensep  useradd
 
 S = "${WORKDIR}/git"
 
+
+OSSEC_DIR="/var/ossec"
 OSSEC_UID ?= "ossec"
 OSSEC_RUID ?= "ossecr"
 OSSEC_GID ?= "ossec"
 OSSEC_EMAIL ?= "ossecm"
 
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM:${PN} = "--system ${OSSEC_UID}"
+USERADD_PARAM:${PN} = "--system -g ${OSSEC_GID} --home-dir  \
+   ${OSSEC_DIR} --no-create-home  \
+   --shell /sbin/nologin ${BPN}"
+
 do_configure[noexec] = "1"
 
 do_compile() {
@@ -45,78 +53,75 @@ do_install(){
 }
 
 pkg_postinst_ontarget:${PN} () {
-DIR="/var/ossec"
-
-usermod -g ossec -G ossec -a root
 
 # Default for all directories
-chmod -R 550 ${DIR}
-chown -R root:${OSSEC_GID} ${DIR}
+chmod -R 550 ${OSSEC_DIR}
+chown -R root:${OSSEC_GID} ${OSSEC_DIR}
 
 # To the ossec queue (default for agentd to read)
-chown -R ${OSSEC_UUID}:${OSSEC_GID} ${DIR}/queue/ossec
-chmod -R 770 ${DIR}/queue/ossec
+chown -R ${OSSEC_UUID}:${OSSEC_GID} ${OSSEC_DIR}/queue/ossec
+chmod -R 770 ${OSSEC_DIR}/queue/ossec
 
 # For the logging user
-chown -R ${OSSEC_UUID}:${OSSEC_GID} ${DIR}/logs
-chmod -R 750 ${DIR}/logs
-chmod -R 775 ${DIR}/queue/rids
-touch ${DIR}/logs/ossec.log
-chown ${OSSEC_UUID}:${OSSEC_GID} ${DIR}/logs/ossec.log
-chmod 664 ${DIR}/logs/ossec.log
+chown -R ${OSSEC_UUID}:${OSSEC_GID} ${OSSEC_DIR}/logs
+chmod -R 750 ${OSSEC_DIR}/logs
+chmod -R 775 ${OSSEC_DIR}/queue/rids
+touch ${OSSEC_DIR}/logs/ossec.log
+chown ${OSSEC_UUID}:${OSSEC_GID} ${OSSEC_DIR}/logs/ossec.log
+chmod 664 ${OSSEC_DIR}/logs/ossec.log
 
-chown -R ${OSSEC_UUID}:${OSSEC_GID} ${DIR}/queue/diff
-chmod -R 750 ${DIR}/queue/diff
-chmod 740 ${DIR}/queue/diff/* > /dev/null 2>&1 || true
+chown -R ${OSSEC_UUID}:${OSSEC_GID} ${OSSEC_DIR}/queue/diff
+chmod -R 750 ${OSSEC_DIR}/queue/diff
+chmod 740 ${OSSEC_DIR}/queue/diff/* > /dev/null 2>&1 || true
 
# For the etc dir
-   chmod 550 ${DIR}/etc
-   chown -R root:${OSSEC_GID} ${DIR}/etc
+   chmod 550 ${OSSEC_DIR}/etc
+   chown -R root:${OSSEC_GID} ${OSSEC_DIR}/etc
if [ -f /etc/localtime ]; then
-   cp -pL /etc/localtime ${DIR}/etc/;
-   chmod 555 ${DIR}/etc/localtime
-   chown root:${OSSEC_GID} ${DIR}/etc/localtime
+   cp -pL /etc/localtime ${OSSEC_DIR}/etc/;
+   chmod 555 ${OSSEC_DIR}/etc/localtime
+   chown root:${OSSEC_GID} ${OSSEC_DIR}/etc/localtime
fi
 
if [ -f /etc/TIMEZONE ]; then
-   cp -p /etc/TIMEZONE ${DIR}/etc/;
-   chmod 555 ${DIR}/etc/TIMEZONE
+   cp -p /etc/TIMEZONE ${OSSEC_DIR}/etc/;
+   chmod 555 ${OSSEC_DIR}/etc/TIMEZONE
fi
 
# More files
-   chown root:${OSSEC_GID} ${DIR}/etc/internal_options.conf
-   chown root:${OSSEC_GID} ${DIR}/etc/local_internal_options.conf 
>/dev/null 2>&1 || true
-   chown root:${OSSEC_GID} ${DIR}/etc/client.keys >/dev/null 2>&1 || true
-   chown root:${OSSEC_GID} ${DIR}/agentless/*
-   chown ${OSSEC_UUID}:${OSSEC_GID} ${DIR}/.ssh
-   chown root:${OSSEC_GID} ${DIR}/etc/shared/*
-
-   chmod 550 ${DIR}/etc
-   chmod 440 ${DIR}/etc/internal_options.conf
-   chmod 660 ${DIR}/etc/local_internal_options.conf >/dev/null 2>&1 || true
-   chmod 440 ${DIR}/etc/client.keys >/dev/null 2>&1 || true
-   chmod 550 ${DIR}/agentless/*
-   chmod 700 ${DIR}/.ssh
-   chmod 770 ${DIR}/etc/shared
-   chmod 660 ${DIR}/etc/shared/*
+   chown root:${OSSEC_GID} ${OSSEC_DIR}/etc/internal_options.conf
+   chown root:${OSSEC_GID} ${OSSEC_DIR}/etc/local_internal_options.conf 
>/dev/null 2>&1 || true
+   chown root:${OSSEC_GID} ${OSSEC_DIR}/etc/client.keys >/dev/null 2>&1 || 
true
+   chown root:${OSSEC_GID} ${OSSEC_DIR}/agentless/*
+   chown ${OSSEC_UUID}:${OSSEC_GID} ${OSSEC_DIR}/.ssh
+   chown root:${OSSEC_GID} ${OSSEC_DIR}/etc/shared/*
+
+   chmod 550 ${OSSEC_DIR}/etc
+   chmod 440 ${OSSEC_DIR}/etc/internal_options.conf
+   chmod 660 ${OSSEC_DIR}/etc/local_internal_options.conf >/dev/null 2>&1 
|| true
+   chmod 440 ${OSSEC_DIR}/etc/client.keys >/dev/null 2>&1 || true
+   chmod 550 ${OSSEC_DIR}/agentless/*
+   chmod 700 ${OSSEC_DIR}/.ssh
+   chmod 770 ${OSSEC_DIR}/etc/shared
+   chmod 660 ${OSSEC_DIR}/etc/shared/*
 
# For the /var/run
-   chmod 770 ${DIR}/var/run
-   chown root:${OSSEC_GID} ${DIR}/var/run
+   chmod 770 

[yocto] [meta-security][PATCH 1/2] bastille: bastille/config should not be world writeable.

2023-06-26 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 .../meta-perl/recipes-security/bastille/bastille_3.2.1.bb   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dynamic-layers/meta-perl/recipes-security/bastille/bastille_3.2.1.bb 
b/dynamic-layers/meta-perl/recipes-security/bastille/bastille_3.2.1.bb
index e7852d9..f2ef335 100644
--- a/dynamic-layers/meta-perl/recipes-security/bastille/bastille_3.2.1.bb
+++ b/dynamic-layers/meta-perl/recipes-security/bastille/bastille_3.2.1.bb
@@ -138,7 +138,7 @@ do_install () {
install -m 0644 OSMap/OSX.bastille${D}${datadir}/Bastille/OSMap
install -m 0644 OSMap/OSX.system${D}${datadir}/Bastille/OSMap
 
-   install -m 0777 ${WORKDIR}/config ${D}${sysconfdir}/Bastille/config
+   install -m 0644 ${WORKDIR}/config ${D}${sysconfdir}/Bastille/config
 
for file in `cat Modules.txt` ; do
install -m 0644 Questions/$file.txt 
${D}${datadir}/Bastille/Questions
-- 
2.34.1


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



Re: [yocto] user and password problem

2023-06-26 Thread Manuel Wagesreither
Am Mo, 26. Jun 2023, um 14:32, schrieb Natanan Tirasukvongsa:
> I got a problem. I use raspberry pi 4 with yocto kirkstone version. 
> I cannot login right now. What are username and password?
> Thank you for helping me.
> These are my other files.

You might want to look into the IMAGE_FEATURE debug-tweaks. [1]

You should be able to activate it by putting IMAGE_FEATURES:append = " 
debug-tweaks" in your local.conf.

[1] https://docs.yoctoproject.org/dev/ref-manual/features.html#image-features

Regards,
Manuel

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



Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain

2023-06-26 Thread Jesus Jimenez Sanchez via lists.yoctoproject.org
Hi,

I kept investigating and it turns out that someone in my team had made a custom 
glibc-package.inc which changed the WORKDIR value, and I didn't know. That was 
all in the end.

I've modified this file to revert the change (we actually have both now, just 
in case they need it for something else) and the toolchain is working perfectly 
now.

Thank you very much for your help anyways.

Best regards,
Jesús Jiménez Sánchez

From: Ross Burton 
Sent: Tuesday 20 June 2023 14:52
To: Jesus Jimenez Sanchez 
Cc: Sumit Garg ; yocto@lists.yoctoproject.org 

Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain

CAUTION: This email originated from outside of our organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.


So there’s a lot of settings in that file.  Can you replicate with a default 
config as generated by poky?

Ross

> On 20 Jun 2023, at 14:44, Jesus Jimenez Sanchez 
>  wrote:
>
> Hello,
>
> I am using an absolute path there; I just removed it before posting on the 
> email thread.
>
> I have attached my local.conf here.
>
> Best regards,
> Jesús Jiménez SánchezFrom: Sumit Garg 
> Sent: Tuesday 20 June 2023 14:18
> To: Ross Burton 
> Cc: Jesus Jimenez Sanchez ; 
> yocto@lists.yoctoproject.org 
> Subject: Re: [yocto] meta-arm-toolchain: SUPPORTED file not found #toolchain
>  [You don't often get email from sumit.g...@linaro.org. Learn why this is 
> important at https://aka.ms/LearnAboutSenderIdentification ]
>
> CAUTION: This email originated from outside of our organization. Do not click 
> links or open attachments unless you recognize the sender and know the 
> content is safe.
>
>
> On Tue, 20 Jun 2023 at 18:06, Ross Burton  wrote:
> >
> > On 20 Jun 2023, at 13:08, Sumit Garg via lists.yoctoproject.org 
> >  wrote:
> > >
> > > On Mon, 19 Jun 2023 at 22:03, Jesus.JimenezSanchez via
> > > lists.yoctoproject.org
> > >  wrote:
> > >>
> > >> Hello, I'm trying to add the arm toolchain to my yocto project but I 
> > >> just got this error
> > >> ```
> > >> | cp: cannot stat 
> > >> '.../tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/external-arm-toolchain/2022.02-r0/image/local/SUPPORTED':
> > >>  No such file or directory
> > >> ```
> > >> It comes from the `external-arm-toolchain.bb` recipe. I've checked and 
> > >> the `SUPPORTED` file is in the right folder (the `files` folder where 
> > >> the `external-arm-toolchain.bb` file is). I haven't made any 
> > >> modifications to the meta-arm repo. I just cloned it and changed to 
> > >> branch `kirkstone`. After that, I have configured my local.conf with 
> > >> this:
> > >> ```
> > >> TCMODE = "external-arm"
> > >>
> > >> EXTERNAL_TOOLCHAIN = 
> > >> ".../gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf"
> > >> ```
> > >>
> > >
> > > Don't provide a relative path here. It should be an absolute path to
> > > your external toolchain install directory. This should resolve your
> > > issue.
> >
> > If that’s the issue, can you add a check for the path being absolute to the 
> > class?
> >
>
> Sure, see [1].
>
> [1] 
> https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.yoctoproject.org%2Fg%2Fmeta-arm%2Fmessage%2F4809=05%7C01%7CJesus.JimenezSanchez%40verifone.com%7C8fdf8d44005f462cd9b208db71959a89%7C611a22d68c40495884e3ce47d8205d98%7C0%7C0%7C638228659596378789%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C=c%2Fd7LXNot1v%2Bmy%2BU6ioRDcoot2Qb2wXgN5PlDGHEe6I%3D=0
>
> -Sumit
>
> > Ross
> 


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



Re: [linux-yocto] [PATCH] kernel/sched: Fix uninitialized read in nohz_full/isolcpus setup

2023-06-26 Thread Paul Gortmaker via lists.yoctoproject.org
[[linux-yocto] [PATCH] kernel/sched: Fix uninitialized read in 
nohz_full/isolcpus setup] On 25/06/2023 (Sun 18:50) Adrian Cinal via 
lists.yoctoproject.org wrote:

> Fix reading uninitialized cpumask and using it to validate the nohz_full=
> and isolcpus= kernel command line parameters.
> 
> An older version of a patch from lkml was incorporated into linux-yocto,
> whereas a newer, rebased version was later published. See:
> https://lore.kernel.org/lkml/20220221182009.1283-1-paul.gortma...@windriver.com/

Let me remind myself of what got merged upstream and what didn't and
why, and I'll follow up shortly with a Yocto specific update.

Thanks,
Paul.
--

> 
> Signed-off-by: Adrian Cinal 
> ---
>  kernel/sched/isolation.c | 12 ++--
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/kernel/sched/isolation.c b/kernel/sched/isolation.c
> index 73386019efcb..b97d6e05013d 100644
> --- a/kernel/sched/isolation.c
> +++ b/kernel/sched/isolation.c
> @@ -119,6 +119,12 @@ static int __init housekeeping_setup(char *str, unsigned 
> long flags)
>   }
>   }
>  
> + alloc_bootmem_cpumask_var(_housekeeping_mask);
> + if (cpulist_parse(str, non_housekeeping_mask) < 0) {
> + pr_warn("Housekeeping: nohz_full= or isolcpus= incorrect CPU 
> range\n");
> + goto free_non_housekeeping_mask;
> + }
> +
>   if (!cpumask_subset(non_housekeeping_mask, cpu_possible_mask)) {
>   pr_info("housekeeping: kernel parameter 'nohz_full=' or 
> 'isolcpus=' contains nonexistent CPUs.\n");
>   cpumask_and(non_housekeeping_mask, cpu_possible_mask,
> @@ -128,12 +134,6 @@ static int __init housekeeping_setup(char *str, unsigned 
> long flags)
>   if (cpumask_empty(non_housekeeping_mask)) {
>   pr_info("housekeeping: kernel parameter 'nohz_full=' or 
> 'isolcpus=' has no valid CPUs.\n");
>   free_bootmem_cpumask_var(non_housekeeping_mask);
> - return 0;
> - }
> -
> - alloc_bootmem_cpumask_var(_housekeeping_mask);
> - if (cpulist_parse(str, non_housekeeping_mask) < 0) {
> - pr_warn("Housekeeping: nohz_full= or isolcpus= incorrect CPU 
> range\n");
>   goto free_non_housekeeping_mask;
>   }
>  
> -- 
> 2.41.0
> 

> 
> 
> 


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



[yocto] user and password problem

2023-06-26 Thread Natanan Tirasukvongsa
I got a problem. I use raspberry pi 4 with yocto kirkstone version.
I cannot login right now. What are username and password?
Thank you for helping me.
These are my other files.


local.conf
Description: Binary data


bblayers.conf
Description: Binary data

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



Re: [yocto] #gcc Is it possible to have Yocto Build go with distcc?

2023-06-26 Thread Ming Wen
Hi Jose:

Nice to meet you~~
Thanks a lot for the suggestion. We will take a try soon.

Best Regards!

[Ambarella AI Envisioned]



Ming Wen (闻明)
SDK Team | Ambarella Shanghai

Phone: +86-021-60880608-511
Email: m...@ambarella.com


From: Jose Quaresma 
Sent: Monday, June 26, 2023 5:39 PM
To: Ming Wen 
Cc: yocto@lists.yoctoproject.org
Subject: [EXT] Re: [yocto] #gcc Is it possible to have Yocto Build go with 
distcc?

You can use the icecc which is very similar to distcc.

https://www.openembedded.org/wiki/Using_IceCC

Jose

mailto:m...@ambarella.com>> escreveu no dia domingo, 
25/06/2023 à(s) 16:06:
Hi

As you know Yocto Build is time consuming, we'd like to check with you to see 
if there is any way to have Yocto Build go with distcc as we have multiple 
build servers shared by the office members. If going with distcc, they can be 
effectively leveraged.
We did some try, but hit below error immediately. :(

   ljiang@shbuild10 13:25:50 
:/daily_build/yocto/yocto_daily/ambarella/out/yocto_out/cv72_gage$ make 
ipcam_config

/usr/lib/python3/dist-packages/html5lib/_trie/_base.py:3: DeprecationWarning: 
Using or importing the ABCs from 'collections' instead of from 
'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop 
working

  from collections import Mapping

ERROR: Error running gcc  --version: distcc[3226461] (main) CRITICAL! distcc 
seems to have invoked itself recursively!

distcc[3226460] ERROR: compile (null) on localhost failed with exit code 111



make: *** 
[/daily_build/yocto/yocto_daily/ambarella/build/bin/yocto/inc-yocto-build.mk:96:
 kconfig-native] Error 1




--
Best regards,

José Quaresma

This EXTERNAL email has been scanned by Proofpoint Email Protect service.

**
This email and attachments contain Ambarella Proprietary and/or Confidential 
Information and is intended solely for the use of the individual(s) to whom it 
is addressed. Any unauthorized review, use, disclosure, distribute, copy, or 
print is prohibited. If you are not an intended recipient, please contact the 
sender by reply email and destroy all copies of the original message. Thank you.

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



Re: [yocto] #gcc Is it possible to have Yocto Build go with distcc?

2023-06-26 Thread Jose Quaresma
You can use the icecc which is very similar to distcc.

https://www.openembedded.org/wiki/Using_IceCC

Jose

 escreveu no dia domingo, 25/06/2023 à(s) 16:06:

> Hi
>
> As you know Yocto Build is time consuming, we'd like to check with you to
> see if there is any way to have Yocto Build go with distcc as we have
> multiple build servers shared by the office members. If going with distcc,
> they can be effectively leveraged.
> We did some try, but hit below error immediately. :(
>
>ljiang@shbuild10 13:25:50
> :/daily_build/yocto/yocto_daily/ambarella/out/yocto_out/cv72_gage$ make
> ipcam_config
>
> /usr/lib/python3/dist-packages/html5lib/_trie/_base.py:3:
> DeprecationWarning: Using or importing the ABCs from 'collections' instead
> of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it
> will stop working
>
>   from collections import Mapping
>
> ERROR: Error running gcc  --version: distcc[3226461] (main) CRITICAL!
> distcc seems to have invoked itself recursively!
>
> distcc[3226460] ERROR: compile (null) on localhost failed with exit code
> 111
>
>
>
> make: *** [/daily_build/yocto/yocto_daily/ambarella/build/bin/yocto/
> inc-yocto-build.mk:96: kconfig-native] Error 1
>
> 
>
>

-- 
Best regards,

José Quaresma

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



[yocto] [yocto-autobuilder-helper][PATCH 3/3] scripts/test_utils.py: update test after BUILD_HISTORY_DIRECTPUSH removal

2023-06-26 Thread Alexis Lothoré via lists . yoctoproject . org
From: Alexis Lothoré 

Update getcomparisonbranch unit tests by removing BUILD_HISTORY_DIRECTPUSH
entry in fake configuration

Signed-off-by: Alexis Lothoré 
---
 scripts/test_utils.py | 29 +++--
 1 file changed, 7 insertions(+), 22 deletions(-)

diff --git a/scripts/test_utils.py b/scripts/test_utils.py
index d02e9b2a5bb3..d149dc946ccd 100755
--- a/scripts/test_utils.py
+++ b/scripts/test_utils.py
@@ -7,22 +7,7 @@ import utils
 
 class TestGetComparisonBranch(unittest.TestCase):
 TEST_CONFIG = {
-"BUILD_HISTORY_DIRECTPUSH": [
-"poky:morty",
-"poky:pyro",
-"poky:rocko",
-"poky:sumo",
-"poky:thud",
-"poky:warrior",
-"poky:zeus",
-"poky:dunfell",
-"poky:gatesgarth",
-"poky:hardknott",
-"poky:honister",
-"poky:kirkstone",
-"poky:langdale",
-"poky:master"
-], "BUILD_HISTORY_FORKPUSH": {
+   "BUILD_HISTORY_FORKPUSH": {
 "poky-contrib:ross/mut": "poky:master",
 "poky:master-next": "poky:master",
 "poky-contrib:abelloni/master-next": "poky:master"
@@ -35,9 +20,9 @@ class TestGetComparisonBranch(unittest.TestCase):
 basebranch, comparebranch = utils.getcomparisonbranch(
 self.TEST_CONFIG, repo, branch)
 self.assertEqual(
-basebranch, "master", msg="Repo/branch pair present in 
BUILD_HISTORY_DIRECTPUSH must return corresponding base branch")
+basebranch, "master", msg="Release branch in poky must return 
corresponding base branch")
 self.assertEqual(
-comparebranch, None, msg="Repo/branch pair present in 
BUILD_HISTORY_DIRECTPUSH must return corresponding compare branch")
+comparebranch, None, msg="Release branch in poky must return 
corresponding compare branch")
 
 def test_release_kirkstone(self):
 repo = "ssh://g...@push.yoctoproject.org/poky"
@@ -45,9 +30,9 @@ class TestGetComparisonBranch(unittest.TestCase):
 basebranch, comparebranch = utils.getcomparisonbranch(
 self.TEST_CONFIG, repo, branch)
 self.assertEqual(basebranch, "kirkstone",
- msg="Repo/branch pair present in 
BUILD_HISTORY_DIRECTPUSH must return corresponding base branch")
+ msg="Release branch in poky must return corresponding 
base branch")
 self.assertEqual(
-comparebranch, None, msg="Repo/branch pair present in 
BUILD_HISTORY_DIRECTPUSH must return corresponding compare branch")
+comparebranch, None, msg="Release branch in poky must return 
corresponding compare branch")
 
 def test_release_langdale(self):
 repo = "ssh://g...@push.yoctoproject.org/poky"
@@ -55,9 +40,9 @@ class TestGetComparisonBranch(unittest.TestCase):
 basebranch, comparebranch = utils.getcomparisonbranch(
 self.TEST_CONFIG, repo, branch)
 self.assertEqual(basebranch, "langdale",
- msg="Repo/branch pair present in 
BUILD_HISTORY_DIRECTPUSH must return corresponding base branch")
+ msg="Release branch in poky must return corresponding 
base branch")
 self.assertEqual(
-comparebranch, None, msg="Repo/branch pair present in 
BUILD_HISTORY_DIRECTPUSH must return corresponding compare branch")
+comparebranch, None, msg="Release branch in poky must return 
corresponding compare branch")
 
 def test_master_next(self):
 repo = "ssh://g...@push.yoctoproject.org/poky"
-- 
2.41.0


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



[yocto] [yocto-autobuilder-helper][PATCH 2/3] config.json: remove BUILD_HISTORY_DIRECTPUSH

2023-06-26 Thread Alexis Lothoré via lists . yoctoproject . org
From: Alexis Lothoré 

Now that BUILD_HISTORY_DIRECTPUSH has been replaced by a hardcoded
condition, remove it from config.json

Signed-off-by: Alexis Lothoré 
---
 config.json | 1 -
 1 file changed, 1 deletion(-)

diff --git a/config.json b/config.json
index e7f308d0a3f6..f271ffaa402a 100644
--- a/config.json
+++ b/config.json
@@ -5,7 +5,6 @@
 
 "BUILD_HISTORY_DIR" : "buildhistory",
 "BUILD_HISTORY_REPO" : 
"ssh://g...@push.yoctoproject.org/poky-buildhistory",
-"BUILD_HISTORY_DIRECTPUSH" : ["poky:morty", "poky:pyro", "poky:rocko", 
"poky:sumo", "poky:thud", "poky:warrior", "poky:zeus", "poky:dunfell", 
"poky:gatesgarth", "poky:hardknott", "poky:honister", "poky:kirkstone", 
"poky:langdale", "poky:mickledore", "poky:master"],
 "BUILD_HISTORY_FORKPUSH" : {"poky-contrib:ross/mut" : "poky:master", 
"poky-contrib:abelloni/master-next": "poky:master", "poky:master-next" : 
"poky:master"},
 
 "BUILDTOOLS_URL_TEMPLOCAL" : 
"/srv/autobuilder/autobuilder.yocto.io/pub/non-release/20210214-8/buildtools/x86_64-buildtools-extended-nativesdk-standalone-3.2+snapshot-7d38cc8e749aedb8435ee71847e04b353cca541d.sh",
-- 
2.41.0


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



[yocto] [yocto-autobuilder-helper][PATCH 0/3] replace BUILD_HISTORY_DIRECTPUSH with hardcoded condition

2023-06-26 Thread Alexis Lothoré via lists . yoctoproject . org
From: Alexis Lothoré 

This series is a follow-up to [1], which hot-fixed tests results not being
pushed by Autobuilder by enriching the BUILD_HISTORY_DIRECTPUSH variable
with mickledore. Since the issue will likely happen for all new releases,
this series brings in a better fix (suggested by Richard) to systematically
include all "main" branches, based on their name and the target repository
(poky). Since the new condition is based on the branch name, it assumes
that except for the XXX-next branch, no other custom/non release branch
will be pushed to poky (contrary to poky-contrib)

[1] https://lists.yoctoproject.org/g/yocto/topic/99523809#60297

Alexis Lothoré (3):
  scripts/utils.py: replace BUILD_HISTORY_DIRECTPUSH with hardcoded
condition
  config.json: remove BUILD_HISTORY_DIRECTPUSH
  scripts/test_utils.py: update test after BUILD_HISTORY_DIRECTPUSH
removal

 config.json   |  1 -
 scripts/test_utils.py | 29 +++--
 scripts/utils.py  | 13 +++--
 3 files changed, 18 insertions(+), 25 deletions(-)

-- 
2.41.0


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



[yocto] [yocto-autobuilder-helper][PATCH 1/3] scripts/utils.py: replace BUILD_HISTORY_DIRECTPUSH with hardcoded condition

2023-06-26 Thread Alexis Lothoré via lists . yoctoproject . org
From: Alexis Lothoré 

It has been observed that when a new release branch is created, it is quite
easy to forget to update the BUILD_HISTORY_DIRECTPUSH variable, which leads
to failures in autobuilder like test results not being pushed.
Replace the BUILD_HISTORY_DIRECTPUSH usage with a hardcoded condition which
validates any branch in poky representing a "main" branch, i.e all branches
not ending in "-next"

Signed-off-by: Alexis Lothoré 
---
 scripts/utils.py | 13 +++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/scripts/utils.py b/scripts/utils.py
index 444b3ab55092..36b3e81bfc94 100644
--- a/scripts/utils.py
+++ b/scripts/utils.py
@@ -19,6 +19,15 @@ import fnmatch
 import glob
 import fcntl
 
+
+def is_a_main_branch(reponame, branchname):
+"""
+Checks if target repo/branch combo represent a main branch. This
+includes master and release branches in poky, while excluding "next"
+branches
+"""
+return reponame == "poky" and not branchname.endswith("-next")
+
 #
 # Check if config contains all the listed params
 #
@@ -212,7 +221,7 @@ def getbuildhistoryconfig(ourconfig, builddir, target, 
reponame, branchname, ste
 reponame = reponame.rsplit("/", 1)[1]
 if reponame.endswith(".git"):
 reponame = reponame[:-4]
-if (reponame + ":" + branchname) in 
getconfig("BUILD_HISTORY_DIRECTPUSH", ourconfig):
+if is_a_main_branch(reponame, branchname):
 base = reponame + ":" + branchname
 if (reponame + ":" + branchname) in 
getconfig("BUILD_HISTORY_FORKPUSH", ourconfig):
 base = getconfig("BUILD_HISTORY_FORKPUSH", ourconfig)[reponame 
+ ":" + branchname]
@@ -392,7 +401,7 @@ def getcomparisonbranch(ourconfig, reponame, branchname):
 comparerepo, comparebranch = base.split(":")
 print("Comparing to %s\n" % (comparebranch))
 return branchname, comparebranch
-if (reponame + ":" + branchname) in getconfig("BUILD_HISTORY_DIRECTPUSH", 
ourconfig):
+if is_a_main_branch(reponame, branchname):
 return branchname, None
 return None, None
 
-- 
2.41.0


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



Re: [linux-yocto] Trial merge of v5.15.118 v6.1.35 for linux-yocto

2023-06-26 Thread Bruce Ashfield
On Sun, Jun 25, 2023 at 8:31 PM Kevin Hao  wrote:
>
> On Thu, Jun 22, 2023 at 02:39:08PM -0400, Bruce Ashfield wrote:
> > In message: Trial merge of v5.15.118 v6.1.35 for linux-yocto
> > on 22/06/2023 Kevin Hao wrote:
> >
> > > Hi Bruce,
> > >
> > > This is a trial merge of the stable kernel v5.15.118 v6.1.35 for the 
> > > following branches in the linux-yocto.
> > >   44291613df39  v5.15/standard/sdkv5.10/axxia
> > >   92d24e0c  v5.15/standard/preempt-rt/sdkv5.10/axxia
> > >   eee9186b951b  v5.15/standard/base
> > >   0a56534ef10f  v5.15/standard/preempt-rt/base
> > >   ad8238bf23e4  v5.15/standard/cn-sdkv5.4/octeon
> > >   ae0e45d47b8c  v5.15/standard/preempt-rt/cn-sdkv5.4/octeon
> > >   c9f7bcffad9b  v5.15/standard/cn-sdkv5.15/octeon
> > >   fa68d715b4c0  v5.15/standard/preempt-rt/cn-sdkv5.15/octeon
> > >   f2a817ae09ba  v5.15/standard/ti-sdk-5.10/ti-j72xx
> > >   6c3c7f6a6ff8  v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx
> > >   5c70c1828bc8  v5.15/standard/nxp-sdk-5.15/nxp-soc
> > >   7870ff843da9  v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-soc
> > >   93fc903bf3b2  v5.15/standard/bcm-2xxx-rpi
> > >   67cc6b5860a8  v5.15/standard/preempt-rt/bcm-2xxx-rpi
> > >   4946059cd722  v5.15/standard/nxp-sdk-5.15/nxp-s32g
> > >   443c74d30bdc  v5.15/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g
> > >   f5aaf57cfc36  v5.15/standard/intel-sdk-5.15/intel-socfpga
> > >   25f2d619ab9d  v5.15/standard/preempt-rt/intel-sdk-5.15/intel-socfpga
> > >   50c176083e31  v5.15/standard/x86
> > >   37658a804e93  v5.15/standard/preempt-rt/x86
> > >   869872f0c312  v5.15/standard/sdkv5.15/xlnx-soc
> > >   ed56ec271aad  v5.15/standard/preempt-rt/sdkv5.15/xlnx-soc
> > >   1a6bfea9a36b  v6.1/standard/base
> > >   e6509db19fb3  v6.1/standard/preempt-rt/base
> > >   51c7b330dd8c  v6.1/standard/ti-sdk-6.1/ti-j7xxx
> > >   f8c93e3014c3  v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx
> > >   777cd1c5e959  v6.1/standard/nxp-sdk-6.1/nxp-soc
> > >   5c671cc77d3a  v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc
> > >   49df57c938fb  v6.1/standard/cn-sdkv5.15/octeon
> > >   031d124bf078  v6.1/standard/preempt-rt/cn-sdkv5.15/octeon
> > >   a82523a38e3f  v6.1/standard/bcm-2xxx-rpi
> > >   cb5c94d4111c  v6.1/standard/preempt-rt/bcm-2xxx-rpi
> > >   0b093c0248d5  v6.1/standard/nxp-sdk-5.15/nxp-s32g
> > >   10d3002fa67d  v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g
> > >   947d06fe506e  v6.1/standard/intel-sdk-6.1/intel-socfpga
> > >   8c6b64e15d46  v6.1/standard/preempt-rt/intel-sdk-6.1/intel-socfpga
> > >   62d290096206  v6.1/standard/x86
> > >   5cd07f81418f  v6.1/standard/preempt-rt/x86
> > >   fee4d840f3e9  v6.1/standard/sdkv6.1/xlnx-soc
> > >#Have textual conflicts
> > >   5eeba80c3635  v6.1/standard/preempt-rt/sdkv6.1/xlnx-soc 
> > >#Have textual conflicts
>
> It seems that the final merge of these two branches are different from mine.

Yes, that was on purpose, I was advised to stick with the SDK version.

That being said, this is simple enough, so I can change to the
upstream -stable variant.

Bruce

> I have sent a patch [1] to fix this.
>
> [1] https://lists.yoctoproject.org/g/linux-yocto/message/12798
>
> Thanks,
> Kevin
>
> > >
> > > This seems a very clean stable release and there is only one trivial 
> > > merge conflict
> > > in the xlnx-soc branches on v6.1 kernel. All the branches have passed my 
> > > build test.
> > > I have pushed all these branches to:
> > > https://github.com/haokexin/linux
> > >
> >
> > Thanks Kevin.
> >
> > I had the same results here, the updates are now pushed.
> >
> > Bruce
> >
> > > You can use this as a reference for the linux-yocto stable kernel bump.
> > >
> > > Thanks,
> > > Kevin



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

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