Hi Felix,

I presume you are talking about
https://github.com/thiagoralves/OpenPLC_v3/tree/master? In that case, what
*actually* runs in that installation script is
https://github.com/thiagoralves/OpenPLC_v3/blob/master/background_installer.sh,
which is a highly general purpose distribution targeted approach, which
basically relies on being able to pull in packages at random. This is
nowhere near reproducible, and therefore will cause you a lot of pain if
you want to put it into a recipe. So what you really need to do is:
1. make sure that all dependencies are already available as recipes so you
can treat them as DEPENDS/RDEPENDS. The entry point for working through it
is probably
https://github.com/thiagoralves/OpenPLC_v3/blob/b2ef6d15d0ec92110cf44ad3f58e364db60dec72/background_installer.sh#L241
2. factor out the hidden systemd service into a proper file and use the
systemd.bbclass mechanisms to install it:
https://github.com/thiagoralves/OpenPLC_v3/blob/b2ef6d15d0ec92110cf44ad3f58e364db60dec72/background_installer.sh#L215
3. understand whatever magic is needed additionally, starting point
probably is
https://github.com/thiagoralves/OpenPLC_v3/blob/b2ef6d15d0ec92110cf44ad3f58e364db60dec72/background_installer.sh#L250

Plus whatever goes wrong along the way. :-(

Greetz,
Josef

On Sun, Oct 20, 2024 at 11:20 AM Marco Cavallini via lists.yoctoproject.org
<koansoftware=gmail....@lists.yoctoproject.org> wrote:

> Hello Felix,
> probably I don't have enough details to give you a complete hint.
> However, the solution usually suggested is to create your own recipe,
> perhaps using "recipetool create" [1] and then adapt its content (this is
> what I usually explain during my Yocto training courses).
> Then you can include in your recipe the installation and the management of
> a launcher script and its systemd service for example (if you are using
> systemd) [2].
>
> [1]
> https://docs.yoctoproject.org/next/dev-manual/new-recipe.html?highlight=systemd
> [2]
> https://wiki.koansoftware.com/index.php/Add_a_systemd_service_file_into_a_Yocto_image
>
> Marco Cavallini
> Yocto Project ambassador
>
> 
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64059): https://lists.yoctoproject.org/g/yocto/message/64059
Mute This Topic: https://lists.yoctoproject.org/mt/109099192/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to