Questions tagged [bitbake]
22 questions
6
votes
2 answers
Meaning of ?= and ??= in bitbake/yocto
What does the different assignment types mean in bitbake recipe scripts, such as:
BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
MACHINE ??= "qemux86"
What of above is analogous to Ruby's…
Frankie_Fomalhaut
- 331
- 1
- 2
- 7
3
votes
1 answer
What is the right way to store BitBake configuration under git?
What is correct way to keep track of bitbake configuration and used layers in git?
senx
- 141
- 2
3
votes
0 answers
systemd service will not start automatically at boot-up
I've been struggling to solve this for 2 or 3 days now. I am using Yocto to customize a Linux build. I have a systemd service called app2.service as below.
[Unit]
Description=app2
ConditionPathExists=/app
After=network.target uncrypte_app.service…
Engineer999
- 1,111
- 2
- 15
- 32
3
votes
1 answer
Adding iptables to yocto causes image do_rootfs to fail
My image builds nicely with kernel 4.13 (set in local.conf) and all of my recipes.
When I try to add the iptables recipe (v1.6) to my image, the do_rootfs task fails with the following error:
ERROR: image-dev-0.7-r0 do_rootfs: Error executing a…
bam
- 123
- 1
- 3
- 9
1
vote
1 answer
"-dev package mylib-dev contains non-symlink" error when building lib using Yocto bitbake
I am trying to build Linux distribution using Yocto project, the target board is STM32MP157A-DK1 board ,I am using distribution package and meta data delivered by STMicroelectronics for OpenSTLinux.
I want to add c++ library based on cmake to my…
Hossam Alzomor
- 11
- 3
1
vote
1 answer
How do I edit '/etc/ld.so.conf' in a yocto recipe?
As suggested by Zac Anger, i copy this question over here:
I have a yocto recipe in which I copy/install some stuff to an image. After that, I want to add a line to the /etc/ld.so.conf file like this, so that the dynamic loader finds my library…
schande
- 113
- 4
1
vote
0 answers
Compiling CFLAGS in a Yocto Recipe File
Issue: I have 2 macros I added in a c file and I have 2 machines. Using Yocto recipe I wish to build the code with specific macros for specific machines.
Breaking down the issue in sub parts -
hello.c
// Simple hello.c…
Nathan
- 21
- 4
1
vote
1 answer
Reusing source files between machines in bitbake
My goal is to share source files between some machines, but not all. In this example, machine_a and machine_b have source directories that are exact copies of each other an I'd like to combine them together somehow to reduce the…
andrey
- 61
- 6
1
vote
0 answers
understanding datastore in bitbake
I am new to bitbake. I am going through the user manual for learning and I got a doubt in the section quoted below
3.5.3. Passing Information Into the Build Task Environment
When running a task, BitBake tightly controls the execution
environment of…
jeyshree
- 11
- 1
1
vote
0 answers
How to start using google tests on a Yocto(Open Embedded) System
I'm doing a project for ARM64 devices and am using Linux Embedded as the OS. I am trying to using Google Tests but when running bitbake, it is failing.
Heres the error:
| CMake Error at…
Md. Mohsin Hussain
- 11
- 2
1
vote
2 answers
Yocto - patch has not been applied
I am working with Linux built with Yocto. I need to add some changes to /etc/ssh/sshd_config file. I created the following patch file using meld:
--- a/sshd_config
+++ b/sshd_config
@@ -116,3 +116,8 @@
# AllowTcpForwarding no
# PermitTTY no
# …
tomi7654
- 15
- 3
1
vote
0 answers
Yocto adding multiple system services to recipe file
I am modifying a Yocto .bb recipe file to add and enable 3 systemd services in my image. Below shows the bottom of my recipe file with just two services added and enabled. This works!
app1.service is a one shot basic service that runs once and…
Engineer999
- 1,111
- 2
- 15
- 32
0
votes
0 answers
How to modify timesyncd.conf in a yocto recipe
I have a yocto build and now I am trying to write a recipe in which I can adjust the parameters in the configuration file under /etc/systemd/timesyncd.conf.
Responsible for the file is probably the recipe under…
schande
- 113
- 4
0
votes
1 answer
Get bitbake to use a different locale
I'm running through the Yocto Quick Build tutorial, and I've got to the command
bitbake core-image-sato
This is producing the error
Your system need to support the en_US.UTF-8 locale.
Can I change this so it uses the en_GB.UTF-8 locale? I don't…
Matt Ellen
- 103
- 4
0
votes
0 answers
Creating a separate image for boot partition in Yocto
I have a Yocto Linux image with two partitions: boot and rootfs.
I would like to create two separate images: one with rootfs and the second one with bootstrap and u-boot files. I have two questions about it.
Is there a better way to do it than…
user1111
- 1
- 1