[yocto] Missing service file

JH jupiter.hce at gmail.com
Thu Jul 18 05:14:30 PDT 2019


Thanks Maciej,

On 7/18/19, Maciej Pijanowski <maciej.pijanowski at 3mdeb.com> wrote:
>
> On 18.07.2019 12:01, JH wrote:
>> Hi,
>>
>> I set up a service file at following myapp.bb file, but that service
>> file was not installed to /lib/systemd/system. What could I be wrong
>> here?
> Not installed means it's not in the final image on the target? Which
> package gets installed into the
> image? I guess the ${PN} package.

It is in the package build:
sysroot-destdir/lib/systemd/system/myapp.service
package/lib/systemd/system/myapp.service
image/lib/systemd/system/myapp.service

> Have you inspected the recipe
> work/YOUR_TARGET/RECIPE_NAME/RECIPE_VERSION/image dir?
> Maybe it is present there, but not in the package you are installing
> (check the coThanks Maciej,ntent of the pacakges-split dir as well).

All installed files are in pacakges-split dir except that service file.

> You may use the:
>
> FILES_${PN} += "/lib/systemd/system/${PN}.service
>
> to force packaging the file into the ${PN} package.

Hmm, that caused an error unparsed line

Thank you.

- jh


More information about the yocto mailing list