Include systemd-journal-remote with Bitbake

911 views Asked by At

I am using an embedded Linux system based on Yocto/Open Embedded Linux and the systemd-journald-remote program is missing.

When I look at the systemd recipe the program is mentioned. It seems like it is not compiled or added by default to the image. I understand how to add normal recipes but unfortunately I don't understand how to add such a "subpackage".

The Bitbake documentation is unfortunately overwhelming for a beginner like me. Can someone help me?

2

There are 2 answers

6
Oleksandr Kravchuk On

Create bbappend for systemd in your meta-layer with following path recipes-core/systemd/systemd_%.bbappend and:

PACKAGECONFIG_append = " \
    microhttpd \
"
0
Mubin Icyer On

You can add it into your image .bb or .bbappend file with following parameter:

IMAGE_INSTALL += "systemd-journal-remote"

This will add systemd-journal-remote into your image. Install the image on your target board, log in to your target and configure the file /etc/systemd/journal-remote.conf.

Then, enable the service with systemctl enable systemd-journal-remote, and then restart it with systemctl restart systemd-journal-remote.