Re: [yocto] Correct way for multiple recipes to install files in the same directory

2024-04-12 Thread Markus Volk
On Fri, Apr 12 2024 at 09:14:45 AM -07:00:00, Linus Nilsson 
 wrote:
I haven't worked with the classes yet but I can see how they can be 
used to make things a lot easier in my case.


But don't use classen too invasively. They can be problematic, e.g. an 
:append may be ignored depending on the BBFILE_PRIORITY of a layer



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



Re: [yocto] Correct way for multiple recipes to install files in the same directory

2024-04-12 Thread Linus Nilsson
I found a solution and I'll try to break it down. There was the original 
problem with the conflict between the recipes and then there were the problem 
with the recipe not being aware of the existence of the user polkitd.

The solution for the first problem was to make sure that the permissions and 
ownership set by my recipe 2 matches the one in recipe 1 exactly, hence:
> 
> 
> Changing in recipe 2 from
> chown -R user1:user1 ${D}/home/user1/.config/
> to
> chown -R user1:user1 ${D}/home/user1/
> actually seems to solve the problem with those particular recipes.

The solution to the second problem (disk-automount recipe bitbake error because 
user polkitd is invalid) was to copy the creation of the user polkitd from the 
original polkit recipe into my recipe:
inherit useradd
USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir 
${sysconfdir}/${BPN}-1 --shell /bin/nologin polkitd"

and then make sure that my disk-automount recipe matches the permissions and 
ownerships set up by the polkit recipe as well:
do_install:append() {
#Fix up permissions on polkit rules.d to work with rpm4 constraints
chmod 700 ${D}/${datadir}/polkit-1/rules.d
chmod 700 ${D}/${sysconfdir}/polkit-1/rules.d
chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
chown polkitd:root ${D}/${sysconfdir}/polkit-1/rules.d
}

This is working but I can see some issues with copying code from one recipe to 
another. If the original recipe changes, I will need to manually update every 
one of my own recipes with the corresponding changes, which doesn't scale very 
well. Having this in mind I think that Markus Volk's post might be a nicer way 
to do things so I think I will consider his way of doing it in the future. I 
haven't worked with the classes yet but I can see how they can be used to make 
things a lot easier in my case.

Big thanks and great appreciation to everyone who came up with suggestions, 
they eventually led me towards a solution! :)

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



Re: [linux-yocto] [linux-yocto std kernel]: update std kernel for nxp-imx9

2024-04-12 Thread Bruce Ashfield
both are merged.

Bruce

In message: [linux-yocto] [linux-yocto std kernel]: update std kernel for 
nxp-imx9
on 12/04/2024 Xiaolei Wang wrote:

> Hi bruce
> 
> Would you please help to  merge the following patch into branch:
> 
> v6.1/standard/nxp-sdk-6.1/nxp-soc
> 
> for nxp-imx9 bsp?
> 
> The following changes since commit 93c514e7433e49536a23abaca358935674922bad:
> 
>   arm64: dts: fix ecspi2 dts node (2024-03-22 11:48:47 +0800)
> 
> are available in the Git repository at:
> 
>   https://github.com/wangxiaolei12/linux-yocto-6.1.git 
> v6.1/standard/nxp-sdk-6.1/nxp-soc
> 
> for you to fetch changes up to 02fe605dcc348f36559b8ce4833cece1f1f65224:
> 
>   LF-10611 arm64: dts: imx8mq-evk-rpmsg: fix CMA memory reservation fail 
> (2024-04-12 09:07:33 +0800)
> 
> 
> Alexander Sverdlin (1):
>   LF-9506-2 tty: serial: fsl_lpuart: fix race on RX DMA shutdown
> 
> Alice Guo (7):
>   LF-9535 soc: imx: split i.MX93 SoC device support from soc-imx8m.c
>   LF-9476-1 ele_base_msg: handle common fuse with special id
>   LF-9476-2 nvmem: imx: update read_common_fuse with special ID
>   LF-9476-3 nvmem: imx: update i.MX93 fuse read driver
>   LF-9646-1: soc: imx: remove the part related to i.MX9 from soc-imx8m.c
>   LF-9646-2 soc: imx9: i.MX91P reuses i.MX93 SoC driver
>   LF-10365 nvmem: imx: i.MX8ULP: update fsb_bank_reg of 
> imx8ulp_fsb_s400_hw
> 
> Alice Yuan (4):
>   LF-9127-1: arm64: dtsi: imx8ulp: Support suspend/resume when camera is 
> running
>   LF-9127-2: media: csi: Support suspend/resume when camera is running
>   LF-9127-3: media: isi: support suspend/resume when camera is running
>   LF-9638 media: isi: Fix the isi-m2m play hang if convert format
> 
> Andrew Lunn (1):
>   net: mdio: Add dedicated C45 API to MDIO bus drivers
> 
> Andy Shevchenko (1):
>   device property: Introduce fwnode_device_is_compatible() helper
> 
> Apeksha Gupta (1):
>   net/fec-uio: Fixed error handling
> 
> Camelia Groza (16):
>   net: phy: aquantia: Add support for AQR115
>   net: sdk_fman: macsec: check the return value of FM_MAC_GetId
>   net: sdk_fman: macsec: free locks on error paths
>   net: sdk_fman: fm_cc: free resources on MatchTableSet error path
>   net: sdk_fman: fm_manip: initialize prsArrayOffset
>   net: sdk_fman: fm_manip: release the p_Manip spinlock on error
>   net: sdk_fman: wrapper: check the return value of FM_CtrlMonGetCounters
>   fsl_qbman: check qman_ccsrmempeek's return value
>   net: sdk_fman: cleanup memory on fm_port_probe error paths
>   net: sdk_fman: cleanup memory on fm_probe error paths
>   net: sdk_fman: initialize variables before use
>   net: sdk_fman: cleanup SP memory on FM_Config errors
>   net: sdk_fman: cleanup resources if HashTableSet fails
>   soc: fsl: qbman: check kzalloc return value
>   net: fman: fix variable type
>   net: sdk_fman: avoid division by zero
> 
> Carlos Song (4):
>   MLK-26127-1 arm64: dts: imx91p-9x9-qsb: add lpspi master support
>   MLK-26127-2 arm64: dts: imx91p-9x9-qsb: add lpspi slave support
>   LF-9490 arm64: dts: imx93: enable eDMA for lpspi devices
>   LF-9692 arm64: dts: imx91p-11x11-evk: Add lpspi support
> 
> Chancel Liu (18):
>   LF-9256: arm64: dts: imx93-11x11-evk-rpmsg: Disable unavailable devices
>   MLK-26119: arm64: dts: imx91p-9x9-qsb-aud-hat: Add a new DT to support 
> AUD-HAT board
>   LF-9645-1: arm64: dts: imx91p-11x11-evk-mqs: Add a new DT to support MQS
>   LF-9645-2: arm64: dts: imx91p-11x11-evk-aud-hat: Add a new DT to 
> support AUD-HAT board
>   LF-9688-1: arm64: dts: imx93-9x9-qsb-rpmsg: Add a DT to support LPA
>   LF-9688-2: arm64: dts: imx93-9x9-qsb-rpmsg-lpv: Add a DT to support LPV
>   LF-9708: arm64: dts: imx93-9x9-qsb-aud-hat: Use RPI 3v3 and 5v regulator
>   ASoC: fsl_micfil: Add new registers and new bit definition
>   ASoC: fsl_micfil: Add fsl_micfil_use_verid function
>   ASoC: fsl_micfil: Use SET_SYSTEM_SLEEP_PM_OPS to simplify PM
>   LF-9333: ASoC: fsl_rpmsg: Move MCLK control to runtime suspend/resume 
> phase
>   Revert "LF-9333: ASoC: fsl_rpmsg: Move MCLK control to runtime 
> suspend/resume phase"
>   LF-9368: arm64: dts: imx93-11x11-evk-rpmsg: Enable dynamic buffer size 
> for i2c-rpmsg
>   LF-9910-1: arm64: dts: imx8m: Let WM8524 driver constrain supported rate
>   LF-9910-2: Revert "LF-6278-2: ASoC: fsl_rpmsg: Constrain rates of 
> wm8524 codec"
>   ASoC: soc-pcm.c: Clear DAIs parameters after stream_active is updated
>   ASoC: soc-pcm.c: Make sure DAI parameters cleared if the DAI becomes 
> inactive
>   LF-9973-7: arm64: dts: imx93: add fsl,sai-mclk-direction-output
> 
> Clark Wang (6):
>   MLK-26126 arm64: dts: imx91p-9x9-qsb: add i3c support
>   LF-9574-1 nvmem: imx: change the unit of offset
>   LF-9574-2 arm64: dts: 

Re: [linux-yocto] net/can: llce: Drop unused label in register_devlink_params()

2024-04-12 Thread Bruce Ashfield
In message: [linux-yocto] net/can: llce: Drop unused label in 
register_devlink_params()
on 11/04/2024 Kevin Hao wrote:

> From: Kevin Hao 
> 
> This unused label was introduced by sdk commit 6f13f0d7b7a7 ("net/can:
> llce: Add self-recv devlink parameter").
> 
> Signed-off-by: Kevin Hao 
> ---
> Hi Bruce,
> 
> Please help me merge this into the following two branches:
>   v6.1/standard/nxp-sdk-5.15/nxp-s32g
>   v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g

merged.

Bruce

> 
>  drivers/net/can/llce/llce_can.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/net/can/llce/llce_can.c b/drivers/net/can/llce/llce_can.c
> index 8d059ae6626f..57336d06d369 100644
> --- a/drivers/net/can/llce/llce_can.c
> +++ b/drivers/net/can/llce/llce_can.c
> @@ -816,7 +816,6 @@ static int register_devlink_params(struct llce_can *llce, 
> struct device *dev)
>  unreg_devlink:
>   if (ret)
>   devlink_unregister(devlink);
> -free_devlink:
>   if (ret)
>   devlink_free(devlink);
>  
> -- 
> 2.44.0
> 

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



Re: [linux-yocto] [linux-yocto 0/2] Fix two build warnings on v5.15 j72xx branches

2024-04-12 Thread Bruce Ashfield
In message: [linux-yocto 0/2] Fix two build warnings on v5.15 j72xx branches
on 11/04/2024 Kevin Hao wrote:

> From: Kevin Hao 
> 
> Hi Bruce,
> 
> These two patches fix several build warnings on v5.15 j72xx branches.
> Please help me merge them into the following two branches:
>   v5.15/standard/ti-sdk-5.10/ti-j72xx
>   v5.15/standard/preempt-rt/ti-sdk-5.10/ti-j72xx

merged.

Bruce

> 
> Kevin Hao (2):
>   media: vxe-vxd: Drop unused variable and function in vxd_v4l2.c
>   media: vxe-vxd: Fix the incorrect indentation in
> topaz_video_destroy_context()
> 
>  .../media/platform/vxe-vxd/decoder/vxd_v4l2.c| 16 
>  .../media/platform/vxe-vxd/encoder/topaz_api.c   |  4 ++--
>  2 files changed, 2 insertions(+), 18 deletions(-)
> 
> -- 
> 2.44.0
> 

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



Re: [linux-yocto] [linux-yocto preempt-rt kernel v6.1]: nxp-s32g: update to compatible with SDK BSP40 release

2024-04-12 Thread Bruce Ashfield
In message: [linux-yocto] [linux-yocto preempt-rt kernel v6.1]: nxp-s32g: 
update to compatible with SDK BSP40 release
on 11/04/2024 Zhantao Tang wrote:

> Hi Bruce,
> 
> There are 211 patches to update to compatible with SDK BSP40 release.
> Would you please help to merge the following patches into
>   v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g

merged.

Bruce

> 
> branch?
> 
> The following changes since commit acda2a279d8f9e5f60c19e47d6ae70e207e751e1:
> 
>   Merge branch 'v6.1/standard/preempt-rt/base' into 
> v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g (2024-04-09 12:37:43 -0400)
> 
> are available in the Git repository at:
> 
>   https://github.com/zhantaotang/linux-yocto-std 
> v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g
> 
> for you to fetch changes up to d49e6f8ff7060fa5478362aee50fa5b81566fc45:
> 
>   thermal: qoriq: Fix deadlock between irq and tmu_get_temp (2024-04-10 
> 21:43:22 +0800)
> 
> 
> Thanks,
> Zhantao
> 

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



Re: [linux-yocto] [linux-yocto std kernel v6.1]: nxp-s32g: update to compatible with SDK BSP40 release

2024-04-12 Thread Bruce Ashfield
In message: [linux-yocto] [linux-yocto std kernel v6.1]: nxp-s32g: update to 
compatible with SDK BSP40 release
on 11/04/2024 Zhantao Tang wrote:

> Hi Bruce,
> 
> There are 211 patches to update to compatible with SDK BSP39 release.
> Would you please help to merge the patches to:
>   v6.1/standard/nxp-sdk-5.15/nxp-s32g
> branch?
> 

merged.

Bruce

> 
> The following changes since commit c35789c18149bed4d149a893a16ba61f589a3d20:
> 
>   Merge branch 'v6.1/standard/base' into v6.1/standard/nxp-sdk-5.15/nxp-s32g 
> (2024-04-09 12:30:40 -0400)
> 
> are available in the Git repository at:
> 
>   https://github.com/zhantaotang/linux-yocto-std 
> v6.1/standard/nxp-sdk-5.15/nxp-s32g
> 
> for you to fetch changes up to e3c1d80279e6fe930a99bcec75fb3179ab0f1adf:
> 
>   thermal: qoriq: Fix deadlock between irq and tmu_get_temp (2024-04-10 
> 21:15:51 +0800)
> 
> 
> Thanks,
> Zhantao
> 

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



Re: [linux-yocto] [kernel-cache][PATCH] nft_test.cfg: Enable CONFIG_VETH

2024-04-12 Thread Bruce Ashfield
merged.

SRCREV bumps will follow in a bit.

Bruce

In message: [linux-yocto] [kernel-cache][PATCH] nft_test.cfg: Enable CONFIG_VETH
on 10/04/2024 Khem Raj wrote:

> nftable ptests do create interfaces of veth type and this
> feature would be needed to enable those tests
> 
> e.g. from tests/shell/testcases/packetpath/vlan_8021ad_tag
> 
> ip link add veth0 netns $ns1 type veth peer name veth0 netns $ns2
> 
> Signed-off-by: Khem Raj 
> ---
>  features/nf_tables/nft_test.cfg | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/features/nf_tables/nft_test.cfg b/features/nf_tables/nft_test.cfg
> index 45ca8e5d..0a959d0e 100644
> --- a/features/nf_tables/nft_test.cfg
> +++ b/features/nf_tables/nft_test.cfg
> @@ -10,3 +10,4 @@ CONFIG_NFT_OSF=m
>  CONFIG_NFT_QUOTA=m
>  CONFIG_NFT_SYNPROXY=m
>  CONFIG_NFT_XFRM=m
> +CONFIG_VETH=y
> -- 
> 2.44.0
> 

> 
> 
> 


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



Re: [yocto] Correct way for multiple recipes to install files in the same directory

2024-04-12 Thread linusnilsson
> 
> Obvious solution is to copy chmod command to your recipe.

Yes and I did that but that line alone didn't suffice. I also had to copy the 
'chown'-line but since the polkit user was created in another recipe it is not 
recognized in this recipe and so I have to somehow figure out a way to fix that.

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