Questions tagged [yocto]

An open source collaboration project that provides templates, tools and methods to help you create custom Linux-based systems for embedded products regardless of the hardware architecture

The Yocto Project is a Linux Foundation workgroup defined as:

The Yocto Project provides open source, high-quality infrastructure and tools to help developers create their own custom Linux distributions for any hardware architecture, across multiple market segments. The Yocto Project is intended to provide a helpful starting point for developers.

The Yocto Project is an open source collaboration project that provides templates, tools and methods to help us create custom Linux-based systems for embedded products regardless of the hardware architecture.

It was founded in 2010 as a collaboration among many hardware manufacturers, open-source operating systems vendors, and electronics companies to bring some order to the chaos of embedded Linux development.

In conclusion, Yocto Project is a a community open source project that is a combination of communities, companies, projects, and tools, and gather people with the same purpose to build Linux-based embedded Project.


Documentation :

3641 questions
33
votes
6 answers

Bitbake list of targets

thx for reading, I am working in a project where we create a secimage (linux yocto image). I am not familiar with all the tools used there and neither am I familiar with the technical terms to use. So this question may be just really really stupid,…
MDeero
  • 370
  • 1
  • 4
  • 11
30
votes
3 answers

How to find which Yocto Project recipe populates a particular file on an image root filesystem

I work with the Yocto Project quite a bit and a common challenge is determining why (or from what recipe) a file has been included on the rootfs. This is something that can hopefully be derived from the build system's environment, log & meta data. …
shibley
  • 1,528
  • 1
  • 17
  • 23
28
votes
2 answers

Quick rebuild of device tree only with Yocto/bitbake?

So, each time I modify the device tree I typically change the dts in a custom recipe and rebuild the image. The rebuild takes a long time since it rebuilds the entire kernel, and then the image needs to be built and finally deployed to the target…
Jonatan
  • 3,752
  • 4
  • 36
  • 47
23
votes
4 answers

How do I write a yocto/bitbake recipe to copy a directory to the target root file system

I have a directory of 'binary' (i.e. not to be compiled) files and just want them to be installed onto my target root file system. I have looked at several articles, none of which seem to work for me. The desired functionality of this recipe…
Ben Turner
  • 725
  • 1
  • 6
  • 23
22
votes
9 answers

Bitbake: "The metadata is not deterministic and this needs to be fixed"

I'm building a Bitbake recipe and getting the following error message: ERROR: When reparsing virtual:native:/path/to/poky/meta/recipes-devtools/cve-check-tool/cve-check-tool_5.6.4.bb.do_populate_cve_db, the basehash value changed from…
Konstantin Shemyak
  • 2,369
  • 5
  • 21
  • 41
22
votes
5 answers

Is there a way to check the exact list of packages that will be installed in the image in Yocto?

In Yocto-based Embedded Linux distributions, I am really interested in finding the complete list of packages/recipes/kernel modules from each dependent layers that will be built and installed to an image file before executing the image building…
mozcelikors
  • 2,582
  • 8
  • 43
  • 77
22
votes
2 answers

Where are bitbake python functions documented

I'm trying to find documentation for "bb.utils.contains". I found the code in pokey/bitbake/lib/utils.py, but that code is poorly documented. For instance, it takes a parameter named "d". What is "d"? How do you even get started with a short…
ELO
  • 319
  • 1
  • 3
  • 4
21
votes
3 answers

Yocto - Files/directories were installed but not shipped in any package

I'm using Yocto to install clBLAS library (https://github.com/clMathLibraries/clBLAS) using the recipe https://github.com/CogentEmbedded/meta-opencl/blob/master/meta-ocl-common/recipes-graphics/clblas/clblas_git.bb But I'm getting the below warning…
Avis
  • 988
  • 2
  • 11
  • 31
21
votes
2 answers

Enable systemd services using yocto

Hi this is my layer tree ├── conf │   └── layer.conf ├── COPYING.MIT ├── README └── recipes-hello ├── helloworld │   ├── helloworld-0.1 │   │   ├── helloworld.c │   │   ├── helloworld.patch │   │   └── newhelloworld.c │   └──…
user7345878
  • 492
  • 2
  • 7
  • 20
21
votes
1 answer

What is the difference between do_compile[noexec] and empty function in bitbake recipe?

If I want to disable a particular build step, I can use either of these: do_configure[noexec] = "1" OR do_configure() { } What is the difference between these alternatives? I have heard there can be raise conditions when using noexec.
ATOzTOA
  • 34,814
  • 22
  • 96
  • 117
20
votes
2 answers

How do I generate an ordered lists of the executed tasks when bitbaking a package?

I know that I can list the possible tasks with: bitbake package -c listtasks But this list also includes tasks that need to be called explicitly (like do_devshell or do_clean), and I wish to watch what is called when running: bitbake…
ytm
  • 461
  • 1
  • 5
  • 16
20
votes
6 answers

modifying kernel config in Yocto

I am trying to modify the kernel config without luck. There is a BSP in meta-xxx-yyy/ with recipes-kernel/linux/linux_git.bb. I try to override the kernel config in my layer named meta-xxx-mylayer where I have recipes-kernel/linux/linux_git.bbappend…
Michal Koziel
  • 242
  • 1
  • 2
  • 9
19
votes
11 answers

Unable to start bitbake server

I am trying to learn yocto by following the video tutorials on their main website. I installed the poky-rocko-18.0.0 and after setting up the build environment I tried to build the linux image using the following command: bitbake…
chandana
  • 201
  • 1
  • 2
  • 6
19
votes
3 answers

bitbake SRC_URI file://

If I have a tarball, helloworld.tar.gz in a local directory, say /home/user/tarballs/, how can I make my bitbake recipe fetch from that directory? my helloworld.bb is SECTION = "examples" LICENSE = "Proprietary" LIC_FILES_CHKSUM = "file://COPYING;…
xyz
  • 870
  • 2
  • 8
  • 16
19
votes
2 answers

Docker image format

I would like to build a Docker image without docker itself. I have looked at [Packer](http://www.packer.io/docs/builders/docker.html, but it requires that Docker be installed on the builder host. I have looked at the Docker Registry API…
errordeveloper
  • 6,716
  • 6
  • 41
  • 54
1
2 3
99 100