Hi,

On Tue, May 02, 2023 at 06:17:27PM -0400, Anthony Abboud wrote:
> HI Yocto Community,
> 
> I am currently working on build a custom Boot2Qt image to learn about
> How-To's since it's my first time playing with Yocto. I am successfully
> able to build an image for my system; manually inserting and launching my
> Qt application works great.
> 
> Now I want to include this app and some files into the rootfs of the image.
> I modified the recipe by adding the following lines at the end to attempt
> this:
> 
> ```
> SRC_URI += " \
> file://qtApp_qml \
> file://startup.sh \
> file://fb.modes \
> "

Image recipes by default don't support SRC_URI or normal build related
tasks/configs. Thus it's better to have a custom recipe to build the
sources into binary packages, which then can be added to the image
via IMAGE_INSTALL variable, see
https://docs.yoctoproject.org/singleindex.html#customizing-images

That said, this trick will enable SRC_URI handling in image recipes:

python __anonymous() {
    d.delVarFlag("do_fetch", "noexec")
    d.delVarFlag("do_unpack", "noexec")
}

My use case for this was image specific config files for tests, which
are really specific to images and which don't belong to any other SW
component/recipe.

Cheers,

-Mikko
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59847): https://lists.yoctoproject.org/g/yocto/message/59847
Mute This Topic: https://lists.yoctoproject.org/mt/98649960/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to