My guess is that you are on a recent release, which as changed syntax. To
add files to packages, you need:

FILES:${PN} += ...

But I agree with the other responders, please be as precise as possible.
Name your used versions please, for one thing.
The other part is that things will not be added to an image automatically
just because you wrote a recipe. You have to add them explicitly. Its a bit
dated by now, but I think most of this is explained in the various
livecoding sessions:
https://www.youtube.com/playlist?list=PLD4M5FoHz-TxMfBFrDKfIS_GLY25Qsfyj

Greetz


On Wed, May 3, 2023 at 10:12 AM MOHAMMED HASSAN <[email protected]>
wrote:

> On Tue, May 2, 2023 at 03:17 PM, 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:
>
> ```
>
> Ignore my previous posts Ive made some mistakes there.
> 1) Create a custom recipe file.
>
>
> SRC_URI += " \
> file://qtApp_qml \
> file://startup.sh \
> file://fb.modes \
> "
>
>
> Add line S="${WORKDIR}"
>
>
> do_install() {
>   install -d ${D}/home/root
>   install -m 755 ${WORKDIR}/qtApp_qml ${D}/home/root/
>
>   install -d ${D}/etc/init.d
>   install -m 755 ${WORKDIR}/startup.sh ${D}/etc/init.d/
>
>   install -d ${D}/etc
>   install -m 755 ${WORKDIR}/fb.modes ${D}/etc/
> }
>
> FILES_${PN} += " \
>         /home/root/qtApp_qml \
>         /etc/init.d/startup.sh \
>         /etc/fb.modes \
> "
> ```
>
>
> Run bitbake recipename
> If it runs successfully,  then add the below in your local.conf folder.
> CORE_IMAGE_EXTRA_INSTALL_append += " recipename "
> Next bitbake target
>
>
> But I'm simply unable to get those three files to show up at all in the
> final build (both the folders and files!).
>
> I've tried a few variations I saw around but still nothing. Any idea
> what's missing?
>
> Would it be possible for you to share what changes you have tried. To be
> honest I am a beginner too and want too learn more, so I got curious.
> Also the above will most probably work, but in case you solve it with any
> other method, then please post here for other's reference.
>
>
>
> Thanks!
> Anthony
>
>
> Best Regards,
> Hassan
>
>
>
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59851): https://lists.yoctoproject.org/g/yocto/message/59851
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