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.
1,323
questions
0
votes
1
answer
13
views
Problem with Custom Install Step in Yocto
Goal
I want to create a tar.gz archive of an application along with its configuration files and I want to install the archive file into the rootfs image rather than the compiled files themselves.
...
0
votes
0
answers
48
views
Yocto dtc compile fails on "/dts-v1/" [closed]
I'm trying to add a custom device tree to my Yocto build, the build finds all the files fine, but gives an error when trying to compile them.
I have added this file, socfpga_cyclone5_de10_nano_cn0540....
0
votes
0
answers
18
views
Yocto rebuild image and have devtool modified package recompile
I have a recipe like this:
LICENSE = "CLOSED"
inherit pkgconfig cmake
PR = "r1"
SRCREV = "${AUTOREV}"
PV = "0.1+git${SRCPV}"
SRC_URI = " \
git:/...
0
votes
0
answers
31
views
Yocto package built from externalsrc not being rebuilt by bitbake after code change
I have this package, let's call it my_pkg whose recipe looks like this:
LICENSE = "CLOSED"
inherit cmake externalsrc
DEPENDS += "my_other_pkgA my_other_pkgB"
RDEPENDS_${PN} = &...
0
votes
1
answer
26
views
Custom recipe that doesn't add any files
I am trying to add a recipe to PetaLinux which only runs commands, adding new users.
Aside from the pre-amble SUMMARY, LICENCE etc here is what I have:
inherit extrausers
EXTRA_USERS_PARAMS = "\
...
0
votes
0
answers
16
views
How to make a quick/fast build of a single recipe?
I am developing a driver on Yocto target.
For this explanation, I will use the terminology:
embedded-machine: the target of the Yocto project.
host-machine: the desktop machine on which I work, where ...
0
votes
1
answer
37
views
Static file not being included in yocto image
I'm trying to include a static file in a yocto image. The file does not need anything done to it, just be included. I'm appending core-image-minimal. However, after the image is built, the file is not ...
0
votes
0
answers
30
views
can I use other distro than Arago for building an image with meta-ti for yocto linux?
I am trying to build EWAOL image for TDA4VM using distro as EWAOL, but it is giving me override errors like, "Overrides could not be expanded into a stable state after 5 iterations, overrides ...
0
votes
0
answers
29
views
Why IMAGE_INSTALL fails, even though recipe builds fine?
I encountered weird situation I don't understand, namely:
I have my image ecg-image, build fine with Honister's bitbake, works fine on device.
To that image I need to add some chip specific firmware. ...
0
votes
0
answers
41
views
Petalinux bitbake - recipe for copying a number of files to rootfs
I have the following dir structure:
.
├── files
│ ├── file1.so
│ ├── file2.so
│ └── fileN.so
└── my-libs.bb
I wish to be able to copy these into the rootfs.
First I made this bitbake, based off ...
0
votes
1
answer
109
views
Bitbake do_fetch error /.git/objects: not a directory
i'm trying to build a yocto image for an embedded system, i always get an error on do_fletch of linux-intel-ese-lts-5.4
i tried everything, also a complete resatrt of the bitbake erasing "tmp&...
0
votes
0
answers
22
views
How can I add a bitbake layer to merge in Ubuntu desktop
Can anyone give an cookbook for creating a bitbake layer to turn my Yocto Poky Dunfell barebones target into Ubuntu desktop? Or even better provide a meta-layer which can do this? The goal is to ...
0
votes
1
answer
73
views
How to get value of variables in yocto recipes
I want to get value of variables in yocto recipes with overrides resolving.
Background
I'm developing a custom yocto runtime image at work.
Recently, my colleagues want me to export some values of ...
0
votes
1
answer
23
views
Prevent yocto from removing bzImage output files
I use 'bitbake' command 3 times, for 3 different layers, one after one.
In the folder /build/tmp/deploy/images/{machine_name}/, there is only one kernel output file(bzImage).
But, for example, file ...
0
votes
0
answers
31
views
Bitbake force recipe order
I have a set of bitbake recipes coming from different sources.
A file is created from scratch by a first recipe. Another recipe needs to modify this file. How can I order execution of recipes for this?...
0
votes
0
answers
44
views
CMake error in bitbake do_compile task : Could not load cache
I was trying to create a recipe for a c++ library.
Find below the recipe code :
DESCRIPTION = "Vector SilKit yocto project"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;...
-2
votes
1
answer
70
views
How to 'mount' a bitbake output build - 'wic.bz2' files
Much like the ability to mount an image copy of an SD card, I am attempting to 'mount' a yocto/bitbake output file to inspect the contents or run via docker.
Looking through various docs/tutorial, it ...
0
votes
0
answers
33
views
yocto: Enabling gcov for all recopies modified in given layer
I am trying to enable code-coverage (gcov) for all the recipes that have been modified in a given layer.
I can achieve this by updating the ".bbappend" files of the corresponding recipes and ...
0
votes
1
answer
54
views
Can yocto apply a patch file pulled from a seperate git repo rather than included in the recipe?
I have a kernel patch that I'm using in multiple yocto recipes. Every example that I can find just puts the .patch file in the recipe folder, like this:
FILESEXTRAPATHS:prepend := "${THISDIR}/${...
0
votes
1
answer
41
views
Is there a generic way of creating multiple (slightly different) variants of a Bitbake recipe providing the same software?
I have multiple variants for the same (custom) software. A few variants support different hardware platforms and other wariants support the same hardware platform but with different feature-set. For ...
0
votes
1
answer
30
views
Yocto do_install action not performed
here is my bbappend file.
LICENSE = "MIT"
IMAGE_LINGUAS = " "
# User preferences
inherit extrausers
# Change root password (note the capital -P)
EXTRA_USERS_PARAMS = "\
...
1
vote
1
answer
42
views
Bitbake not finding files specified in SRC_URI when changing directory name
I'm writing a recipe that copies some configuration files over to my image (like a cramfs.conf that goes into /etc/modprobe.d to disable cramfs). Here is the structure of my recipe directory:
.
├── ...
0
votes
1
answer
83
views
Yocto: CMake Error (find_package) when trying to bitbake a Recipe, but when running it in Cmake alone it works
i am trying to run a simple program using the pigpio library on my raspberry pi, with the yocto project.
I have already tried out the build with cmake and when i run it in the terminal on my pc it ...
0
votes
2
answers
106
views
ROS2 Yocto - no providers found in RDEPENDS_?
A Bit Backstory
I'm trying to install ROS2 package to a Yocto image using Devtools. I follow through this tutorial here with some modification according to my project.
The devtools built successfully, ...
1
vote
2
answers
117
views
Why doesn't my recipe re-build successfully when I'm offline?
I have a recipe that looks basically like this :
SUMMARY = "SomeLibrary"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
...
0
votes
2
answers
38
views
yocto-bitbake mirror keep branch
for my yocto project I'm mirroring to my repo to a private one, it's working fine for basic SRC_URI, but for url that have a branch defined it will erase it and bring the default one (master), making ...
0
votes
1
answer
87
views
Yocto check which packages are installed on target system
I have a Yocto system where I'm running some Chef InSpec scans. Chef InSpec offers a command to check if a package is installed, however, that doesn't work with Yocto (I imagine it would if you'd ...
0
votes
1
answer
50
views
How can I get linux kernel sources (interested mainly in dts) in Yocto
I would like to see linux kernel sources that were used to build an image with bitbake in yocto. I need to verify that we are using a correct dts file, and probably to update it.
I was told that ...
0
votes
1
answer
84
views
Install an executable created by another recipe in Yocto
On Yocto, I have a recipe (application_1.0.0.bb) with a dependency to Poco package (poco_1.11.2.bb):
DEPENDS = "poco"
In the configure step of application_1.0.0.bb, I need to use arc.
This ...
0
votes
0
answers
36
views
rm command not working for a read-only fs made writeable with volatile binds in yocto
I am new to Yocto, I have created a read-write folder on a readonly filesystem using volatile-binds package of yocto. I have pushed some test files into that folder for testing.
After loading the ...
0
votes
0
answers
37
views
SWUpdate building error in yocto. make[1]: *** [swupdate_unstripped] Error 1 , make: *** [sub-make] Error 2
I am building custom image in yocto and I want to include SWUpdate in my image but while building the image I am getting a build error of make[1]: *** [swupdate_unstripped] Error 1 and make: *** [sub-...
0
votes
0
answers
14
views
opendds layer in yocto does not build the opendds_idl tao_idl and ace_gperf for use in building the application
i opened a question a couple of days about the same subject and thought i fixed it but was mistaken. in general i added the opendds yocto layer for branch kirkstone. the build was successful and i ...
0
votes
0
answers
66
views
Yocto Transaction Test, two recipes install the same file
I am adding a custom recipe to my image. It is bases on DBCPPP. This project is built using cmake. My issue only comes to light when I include a new layer meta-swupdate. It seems meta-swupdate alters ...
0
votes
1
answer
46
views
yocto opendds does not create the sdknative files
I am trying to build an application that communicates with dds with opendds. I am using the opendds layer on krikstone. The bitbake image is built with the opendds libraries but when I build the sdk ...
0
votes
1
answer
100
views
SWUpdate ERROR : feature 'archive' required
I am attempting to use SWUpdate to update my device kernel and device tree. However I am getting the error ERROR : feature 'archive' required. I have been told to configure SWUpdate to include archive ...
0
votes
0
answers
63
views
Unable to find local mirror for yocto when fetching packages
I have the following configuration in the local.conf file based on mirror infromation
INHERIT += "own-mirrors"
SOURCE_MIRROR_URL ?= "file:///home/user/mirror-rtr-yocto/"
...
1
vote
1
answer
103
views
How to get a shallow copy with SRC_URI?
I have a git repo with different sdk versions in a .zip format in a separate commits. That practically means that there is a whole files in git history and when you clone the repo you will get ...
0
votes
2
answers
128
views
yocto: REQUIRED_VERSION not working, if recipe does not exist
I am using yocto with the current kirkstone LTS release(for a long time). I tried to use the version information for recipes.
See: https://docs.yoctoproject.org/4.0.6/ref-manual/variables.html?...
0
votes
1
answer
74
views
bitbake encounters with error after starting Toaster
I've successfully used Yocto to create an image for an IoT gateway based on imx8 processor. Before starting the Toaster, everything is ok and I can do every bitbake command, successfully in the ...
0
votes
1
answer
180
views
ERROR: u-boot-1_2020.01-r0 do_compile: oe_runmake failed
I'm new to yocto project and I was trying to build an image for lichee pi board. during the build process i got these errors:
ERROR: u-boot-1_2020.01-r0 do_compile: oe_runmake failed
ERROR: u-boot-...
0
votes
1
answer
125
views
Yocto Error : Could not inherit file classes/qt6-cmake.bbclass
I'm currently trying to 'boot 2 qt'
I add layers, at "bblayers.conf"
like this.
/yocto/kirkstone/meta-boot2qt/meta-boot2qt \
and also set machine at "local.conf"
when I try to ...
1
vote
1
answer
72
views
Bitbake wget: unable to resolve host address ‘www.nano-editor.org’
I'm new to bitbake and working on a tutorial. I know that bitbake often comes with Yocto project but here I'm trying to use it as a stand-alone tool.
The tutorial is connected with fetching a nano ...
-1
votes
1
answer
50
views
Regarding bitbake recipie
What changes should make to enable dlt-system.
In build folder dlt-system application is not generating.
Manually by using command: cmake -D with dlt-system=ON it will generate but I need to generate ...
0
votes
1
answer
66
views
Bitbake builds C project but does not include dependent libraries to image rootfs
With the Makefile and hello.bb listed below I am able to compile and run my C project on target device. The issue I am facing is that libraries sqlite3 libmicrohttpd json-c are not included to rootfs ...
1
vote
1
answer
89
views
How can I speed up flashing SD card ( wic Image)
Flashing an SD card using dd is slow, is there another option to increase speed?
1
vote
1
answer
72
views
Inheritance clarification in bitbake
In bitbake, are inheritances transferable between include files when they are added with require keyword? Or do we need to reuse inherit keyword over and over again in each of the include files? I'm ...
0
votes
1
answer
104
views
Unable to compile X11 with bitbake
I've added
DISTRO_FEATURES_append = " x11"
to my local.conf as I will need access to Xrandr (which depends on X11). As soon as I add x11 to the DISTRO_FEATURES, I keep getting the following ...
0
votes
1
answer
52
views
32-bit Build on 64-bit Linux
I want to build my recipe into 32bit binary on 64bit system, I have Multilib enabled :
multilib configuration add in local.conf :
MACHINE = "ti-am335x"
require conf/multilib.conf
MULTILIBS = ...
0
votes
1
answer
66
views
What are the implications of setting FILESEXTRAPATHS in a .bb file (rather than a .bbappend)?
The Yocto docs suggest that the variable FILESEXTRAPATHS should only be set in a .bbappend file, and by implication, not in a base .bb recipe:
Best practices dictate that you accomplish this by using ...
0
votes
0
answers
174
views
When operating within the framework known as "Yocto", how do I build source from within a monorepo, without storing it in the 'files' subdir?
I have a mono-repository ("monorepo") that contains the C++ source code for my application, as well as a tree of OE/Yocto files and directories that form the bitbake recipes required to ...