From: Mikko Rapeli <mikko.rapeli@linaro.org>
To: Anthony Abboud <antabboud@gmail.com>
Cc: yocto@lists.yoctoproject.org
Subject: Re: [yocto] Trouble Adding Files to rootfs
Date: Wed, 3 May 2023 10:25:57 +0300 [thread overview]
Message-ID: <ZFIMhfY3c8rMnarr@nuoska> (raw)
In-Reply-To: <CAEAv8SAsr=37-qCpzYU88=SO+vRWdkcz9kcD0B8SrODj77XZaA@mail.gmail.com>
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
next prev parent reply other threads:[~2023-05-03 7:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-02 22:17 Trouble Adding Files to rootfs Anthony Abboud
2023-05-03 0:51 ` Mohammed Hassan
2023-05-03 1:06 ` MOHAMMED HASSAN
2023-05-03 7:25 ` Mikko Rapeli [this message]
2023-05-03 8:12 ` MOHAMMED HASSAN
2023-05-03 8:33 ` [yocto] " Josef Holzmayr
2023-05-03 16:05 ` Anthony Abboud
[not found] ` <175BADC4F55E7349.14539@lists.yoctoproject.org>
2023-05-03 16:08 ` Anthony Abboud
[not found] ` <175BADF4585BE3A9.14539@lists.yoctoproject.org>
2023-05-03 16:13 ` Anthony Abboud
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZFIMhfY3c8rMnarr@nuoska \
--to=mikko.rapeli@linaro.org \
--cc=antabboud@gmail.com \
--cc=yocto@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.