Questions tagged [yocto-recipe]
213 questions
1
vote
1 answer
When operating within the framework known as "Yocto", Is it possible to install a deployed file into a package with a separate recipe?
I want to add a deployed file to my rootfs image - i.e. "install" from the deployment location (build/tmp/deploy/images/...), and have correct bitbake dependencies to ensure the deployed file is built and deployed first.
I have a third-party recipe…

davidA
- 12,528
- 9
- 64
- 96
1
vote
0 answers
Failed to fetch URL Error in Yocto for gnu-config-native
When giving the bitbake command,
bitbake gnu-config-native
Getting the fetch error.
The poky/meta/recipes-devtools/gnu-config/gnu-config_git.bb
SUMMARY = "gnu-configize"
DESCRIPTION = "Tool that installs the GNU config.guess / config.sub into a…

Manu Mamman
- 11
- 1
1
vote
0 answers
Yocto bitbake: exclude recipe dependency from native build only
I have an application A that depends on library B. But library B can only build for the target, i.e. non-native. Also, I need to build A for both the host and the target. Unfortunately, I get an error like this:
Nothing PROVIDES B-native (but…

Faroguy
- 11
- 1
- 2
1
vote
1 answer
Use Yocto recipes to clone Git repositories
I have a bunch of Yocto recipe files that contain the configs for various git repositories in the format
SRC_URI = "git://XXX;protocol=ssh;branch=YYY;"
SRCREV = "abc123"
I am wondering if I can use these files to only clone the git repositories at…

Daddy
- 61
- 2
1
vote
1 answer
Yocto: how to configure an out-of-tree kernel module recipe that uses "inherit module"?
I have written a simple inherit module recipe to build a third-party out-of-tree kernel module called u-dma-buf:
SUMMARY = "User space mappable DMA Buffer"
DESCRIPTION = "${SUMMARY}"
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM =…

davidA
- 12,528
- 9
- 64
- 96
1
vote
1 answer
Yocto: what is the best practice for having a recipe install config files for another application, but only if said application is to be installed?
What is the recommended way to include config files depending on the presence of another package or recipe in an image?
For example, if the python3-supervisor recipe is included in a target image, what is the best way to write a custom recipe so…

davidA
- 12,528
- 9
- 64
- 96
1
vote
0 answers
Why does Yocto Cve Check needs artifactory and took so long to find cves?
I am new to Yocto and would like to know how Yocto Cve check works.
Cve Check finds the patched/unpatched on version number & patch added to the recipe. Is this the only 2 methods Cve Check use?
Cve Check seems to fetch the package artifactory from…

EzyHoo
- 301
- 2
- 14
1
vote
2 answers
Build custom Yocto recipe with meson and ninja
I'm trying to write a custom recipe for a library from github (Aravis). The build/install steps are done using meson and ninja.
$ meson build
$ cd build
$ ninja
$ ninja install
Before writing/adding the recipe, I've added meson, ninja and…

il_mix
- 553
- 8
- 20
1
vote
1 answer
Yocto - Why do runtime variables (RDEPENDS, RPROVIDES, etc), require package name overrides?
essentially I don't understand why variables like RDEPENDS require a package name conditional override such as "RDEPENDS_${PN}" while other variables, including DEPENDS, do not require this. Isn't putting the package name as a conditional after the…

exliontamer
- 95
- 12
1
vote
1 answer
How can I install a file to /boot in yocto?
I need to add a file to the /boot directory produced by a yocto build. I've created a recipe that is trying to do this:
SRCREV = "48cabcbc64484ca6c201746e526a11b4b43eb359"
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI +=…

Dave
- 43
- 4
1
vote
1 answer
Yocto: add a statement in the default service file within a recipe
I'd need to add a Restart statement within a default .service file, and was looking to an alternate solution to replacing the .service file with a custom one (which works).
The idea would be just adding the following "delta" requirement in a, e.g.,…

gtrevi
- 97
- 1
- 8
1
vote
3 answers
Is there a solution for the odd error of bitbake?
When I used yocto to build my first linux system and after 'bitbake imx-image-multimedia' was excuted, I faced the odd error:
ERROR: gnu-config-native-20190501+gitAUTOINC+b98424c249-r0 do_unpack: Unpack failure for URL:…

Xiuhua Yang
- 7
- 1
- 3
1
vote
1 answer
Yocto & Rust - recipe fails to generate correct build dependencies
I am trying to build a Rust application for Yocto which uses a number of bindgen generated bindings to custom ioctl calls. My recipe includes the following dependency line:
DEPENDS += " clang ncurses ncurses-native libsdl2"
export LIBCLANG_PATH =…

mark
- 7,381
- 5
- 36
- 61
1
vote
1 answer
Create Yocto Filesystem of type rootfs.img
I'm trying to create filesystem of extension rootfs.img from Yocto. Adding IMAGE_FSTYPE="img" is failing, saying img is not recognized because its definition is not defined in any meta class.
I have looked into using wic, but cant find the command…

psy
- 181
- 1
- 8
1
vote
2 answers
Installing an RPM in Yocto
So I have a Yocto build and I need to install this 3rd party RPM. I've created a recipe for it using the link to the source RPM. Problem is when implementing the do_install() function.
I need to install it, and it's installed via rpm --install…

Artmonk14
- 19
- 3