Re: [yocto] error while adding device tree overlay for UART to the image #bitbake #linux

2024-10-25 Thread Crane
Just follow the solution in the link, change two tabs to 8 spaces in front of "overlays/uart?-pi5.dtbo", then it works fine now. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64135): https://lists.yoctoproject.org/g/yocto/message/64135 Mute This T

Re: [yocto] error while adding device tree overlay for UART to the image #bitbake #linux

2024-10-25 Thread Crane
I found this link talking about the same error. https://lists.yoctoproject.org/g/yocto/topic/meta_raspberrypi_error_with/78879953 Indeed, the contents of IMAGE_BOOT_FILES has issues. But when overlays/uart0-pi5.dtbo is added, both uart0-pi5.dtbo and overlays/uart0-pi5.dtbo are added. This should

Re: [yocto] CFP for Yocto Project Summit 2024.12 is open

2024-10-25 Thread Sandeep GR
Hi All, Is the proposal still open? I see it says it's already closed. It's Still Oct 25th here in Mountain Time. *Thanks,* *Sandeep* On Thu, Oct 24, 2024 at 3:35 PM Ryan Eatmon via lists.yoctoproject.org wrote: > > Hey. Just so you know the dates you list in the CFP are a little off. > >

Re: [yocto] How to add postinst and prerm scripts to a recipe?

2024-10-25 Thread Alexander Kanavin
On Fri, 25 Oct 2024 at 16:32, Uy Ha via Lists.Yoctoproject.Org wrote: > > I'm just not really sure what `pkg_prerm` does. Does it create a script that > will be run when the package is removed? or does it run entirely during > bitbake build step? It creates a 'scriptlet' embedded into rpm packa

Re: [yocto] version-going-backwards issues with shared sstate cache

2024-10-25 Thread Alexander Kanavin
On Fri, 25 Oct 2024 at 15:59, Philip Lorenz wrote: > Wouldn't we then see version-going-backwards errors in the validation > builds (as the "mainline" builds which contribute to the shared > buildhistory will have higher PRs from PRserv)? We'd like to maximize > our cache reuse so in a perfect wor

Re: [yocto] Date in version number

2024-10-25 Thread Richard Purdie
On Fri, 2024-10-25 at 08:00 -0700, Daniel Squires via lists.yoctoproject.org wrote: > We have many internal projects that we build as part of our platform. > These are all managed in git repositories. Our recipes therefore all > point at git repositories. > After some internal discussions we have

[yocto] Date in version number

2024-10-25 Thread Daniel Squires
We have many internal projects that we build as part of our platform. These are all managed in git repositories. Our recipes therefore all point at git repositories. After some internal discussions we have come to  the conclusion that having traditional version numbers of the form x.y.z is not v

Re: [yocto] How to add postinst and prerm scripts to a recipe?

2024-10-25 Thread Uy Ha
I'm just not really sure what `pkg_prerm` does. Does it create a script that will be run when the package is removed? or does it run entirely during bitbake build step? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64128): https://lists.yoctoproj

Re: [yocto] version-going-backwards issues with shared sstate cache

2024-10-25 Thread Philip Lorenz
Hi Alex, On 25.10.24 11:07, Alexander Kanavin wrote: On Thu, 24 Oct 2024 at 19:26, Philip Lorenz via lists.yoctoproject.org wrote: Is this issue generally known and are there any other recommendations on how to deal with this? I don't really know much about this, but I would consider allocati

Re: [yocto] sources/poky/meta/recipes-kernel/perf/perf.bb:do_compile) failed with exit code '1'

2024-10-25 Thread Gyorgy Sarvari
On 10/25/24 12:24, RAVIKUMAR RONAD via lists.yoctoproject.org wrote: *Output:* *ERROR: Task (/home/calixto_admin/calixto-yocto-bsp/sources/poky/meta/recipes-kernel/perf/perf.bb:do_compile) failed with exit code '1' Around the same error (at the end of the output) there should be a message al

[yocto] sources/poky/meta/recipes-kernel/perf/perf.bb:do_compile) failed with exit code '1'

2024-10-25 Thread RAVIKUMAR RONAD
Dear Experts, I'm currently working on the BSP images for an i.MX6ULL processor-based custom embedded board. I've created the machine file for the respective board, & I'm trying to create a QT6 feature image. For this, I used the following configuration and executed the command: DISTRO=fslc-xw

Re: [yocto] How to add postinst and prerm scripts to a recipe?

2024-10-25 Thread Alexander Kanavin
Why? prerm would work just the same and there are examples in meta/: pkg_prerm:${PN} () { sh run-my-prerm-script.sh } Alex On Fri, 25 Oct 2024 at 11:21, Uy Ha via Lists.Yoctoproject.Org wrote: > > That works for postinst, but what about prerm? It is run only when the > package is remov

Re: [yocto] How to add postinst and prerm scripts to a recipe?

2024-10-25 Thread Uy Ha
That works for postinst, but what about prerm? It is run only when the package is removed in future so it cannot be done at bitbake build time -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64123): https://lists.yoctoproject.org/g/yocto/message/641

Re: [yocto] How to add postinst and prerm scripts to a recipe?

2024-10-25 Thread Alexander Kanavin
You can rename the scripts when you install them into something generic: do_install() {} install ${S}/debian/rules/postinst ${D}/${bindir}/my-package-postinst.sh } then in pkg_postinst:${PN} () { sh my-package-postinst.sh } Alex On Fri, 25 Oct 2024 at 11:14, Uy Ha via lists.yoctoprojec

Re: [yocto] How to add postinst and prerm scripts to a recipe?

2024-10-25 Thread Uy Ha
Could you give me an example? I can install the scripts as regular scripts but since DEB and RPM have different naming for these scripts, do i have to write package manager dependant code? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#64121): htt

Re: [yocto] version-going-backwards issues with shared sstate cache

2024-10-25 Thread Alexander Kanavin
On Thu, 24 Oct 2024 at 19:26, Philip Lorenz via lists.yoctoproject.org wrote: > Is this issue generally known and are there any other recommendations on > how to deal with this? I don't really know much about this, but I would consider allocating PR values only for things that have been reviewed

Re: [yocto] How to add postinst and prerm scripts to a recipe?

2024-10-25 Thread Alexander Kanavin
You need to install and package the scripts as 'regular' scripts on target, and then write postinst() recipe snippets that call the scripts. Alex On Fri, 25 Oct 2024 at 09:26, hchanuy via lists.yoctoproject.org wrote: > > I have a package that has postinst and prerm scripts that are embedded whe

Re: [yocto] populate_sysroot not found in x86_64 x86_64_ubuntu-20.04 #yocto

2024-10-25 Thread Aleksandar Nikolic
On Wed, Oct 23, 2024 at 12:39 PM, umeshyv wrote: > > Hi > > I get below error for the recipe which copies .tgz files to a directory > > ERROR: lib32-xx-image-1.0-r0 do_prepare_recipe_sysroot: Manifest > /home/x/projects/x/build-x/tmp/sstate-control/manifest-x86_64_ubuntu-20.04-sigma-tools-n

[yocto] How to add postinst and prerm scripts to a recipe?

2024-10-25 Thread hchanuy
I have a package that has postinst and prerm scripts that are embedded when packaging as a DEB file. Now I want to write a recipe for that package, but I cannot figure out how to add the postinst and prerm scripts in the final packaging. -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages s

Re: [yocto] populate_sysroot not found in x86_64 x86_64_ubuntu-20.04 #yocto

2024-10-25 Thread Alexander Kanavin
I think it would be good to clarify first, what is actually needed on the target filesystem, the tarball files or their content? Installing to /opt/tools indicates it's probably the unpacked content. Alex On Thu, 24 Oct 2024 at 11:00, Jairo Mejia Aponte via lists.yoctoproject.org wrote: > > Hi,

Re: [yocto] populate_sysroot not found in x86_64 x86_64_ubuntu-20.04 #yocto

2024-10-25 Thread Jairo Mejia Aponte via lists.yoctoproject.org
Hi, When you are using yocto, by default unpack the compress files that you put in SRC_URI. Therefore, you will not find the .tgz in the working directory. In order to avoid that you need to specify that in the recipe. See: https://docs.yoctoproject.org/dev-manual/new-recipe.html?highlight=unp

Re: [yocto] bitbake: enforce variables to be defined?

2024-10-25 Thread Jairo Mejia Aponte via lists.yoctoproject.org
Hi, If you need to add something to several recipes, you can create a bbclass and make the recipes inherit it. Ex: SUMMARY = "Enables/disables compile flags for builds" TARGET_CFLAGS:append = "${@ ' -DTEST_ENV' if not d.getVar('RELEASE') else ''}" The else is empty, maybe it is not entirely c

Re: [yocto] bitbake: enforce variables to be defined?

2024-10-25 Thread Quentin Schulz via lists.yoctoproject.org
On 10/24/24 1:28 PM, Jairo Mejia Aponte via lists.yoctoproject.org wrote: You don't often get email from jairo.mejiaaponte=belden@lists.yoctoproject.org. Learn why this is important Hi, If you need to add something to several recipes, you can c

Re: [yocto] CFP for Yocto Project Summit 2024.12 is open

2024-10-25 Thread Ryan Eatmon via lists.yoctoproject.org
Hey. Just so you know the dates you list in the CFP are a little off. October 25th is a Friday, not a Monday. Same for the other three dates. Not sure if it will confuse anyone... On 10/3/2024 5:16 AM, Josef Holzmayr wrote: Submit your talk now! --> https://pretalx.com/yocto-project-s