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.

1073 questions
28
votes
5 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
  • 320
  • 1
  • 4
  • 11
27
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
  • 859
  • 1
  • 8
  • 18
23
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,164
  • 2
  • 30
  • 47
22
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,255
  • 1
  • 14
  • 23
21
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
  • 40,613
  • 26
  • 100
  • 171
20
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
  • 665
  • 1
  • 5
  • 19
20
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…
17
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,155
  • 6
  • 34
  • 65
17
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
  • 30,490
  • 20
  • 83
  • 113
17
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
  • 269
  • 1
  • 3
  • 4
16
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
  • 364
  • 2
  • 5
  • 19
16
votes
2 answers

Bitbake not installing my file in the rootfs image

I have created a bitbake recipe that would copy 2 of my files (firmware binaries for VPU) into /lib/firmware/ directory on targets root filesystem. I have tried many options so I'm now not sure what in my recipe is unnecessary/redundant and what is…
lewiatan
  • 986
  • 1
  • 20
  • 35
16
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;…
wei
  • 802
  • 2
  • 8
  • 15
14
votes
1 answer

How to configure yocto to use the latest git commit?

I am a very lazy person. While working on a HW/SW project the software changes permanently. In this development stage, changing the commit/reversion-tags in the recipes is very nasty. I want Yocto to fetch the latest git commit. Is this possible/How…
Stefan Jaritz
  • 1,529
  • 7
  • 24
  • 51
14
votes
2 answers

How to write a BitBake driver recipe which requires kernel source header files?

Introduction I have a do_install task in a BitBake recipe which I've written for a driver where I execute a custom install script. The task fails because the installation script cannot find kernel source header files within
karobar
  • 955
  • 3
  • 20
  • 54
1
2 3
71 72