Questions tagged [bitbake]

BitBake is a simple tool for the execution of tasks. It is derived from Portage, which is the package management system used by the Gentoo Linux distribution. It is most commonly used to build packages, and is used as the basis of the OpenEmbedded project.

From the manual:

BitBake is a simple tool for the execution of tasks. It is derived from Portage, which is the package management system used by the Gentoo Linux distribution. It is most commonly used to build packages, and is used as the basis of the OpenEmbedded project.

BitBake is now managed using the Git source control system which can be obtained from git://git.openembedded.org/bitbake.git. Releases can be downloaded from http://downloads.yoctoproject.org/releases/bitbake/ and the developer mailing list, bitbake-devel can be found at http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/bitbake-devel.

The user manual is found in the docmentation directory within the source code.

1383 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
28
votes
1 answer

Bitbake runtime vs build dependency

I am having trouble understanding the bitbake recipes. (I have some poorly written I need to modify, I usually would read and understand the whole mechanism but sadly I am on a tight schedule). Can you please help me understand the difference…
lulijeta
  • 900
  • 1
  • 9
  • 19
25
votes
5 answers

Is it possible to pass in command line variables to a bitbake build?

I have an OpenEmbedded environment using bitbake to do some builds. I wanted to get something "interactive" going on where bitbake would pause and ask for input then continue with the build but I've found out that's not possible. Since I can't do…
Mike
  • 47,263
  • 29
  • 113
  • 177
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
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
21
votes
2 answers

Methods for speeding up build time in a project using bitbake?

I'm working in a project which has many bitbake recipes and takes a lot of time - up to 13 hours in some cases. I am new to bitbake and I'm asking for some way to: check what packages take more to build check very long dependencies (I have used…
Neaţu Ovidiu Gabriel
  • 833
  • 3
  • 10
  • 20
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
1
2 3
92 93