apex
apex

Reputation: 849

remove systemd service in yocto?

I want to remove a systemd service 'timesyncd' for a test-image1 where as keep the same service for another image test-image2. The first image runs on 0x86 arch and the second runs on ARM. For removing the timesyncd, I have created a systemd_%.bbappend file and added this line:

PACKAGECONFIG_remove = "timesyncd"

This works fine just for removing it, but how can I remove the service in one image and keep it in another. Is there some sort of if else inside bitbake or can we create two bbappend file to achieve this?

Upvotes: 1

Views: 1677

Answers (1)

Florian Berndl
Florian Berndl

Reputation: 1474

Thanks @LetThe2nd and @Erik Botö.

There are severall OVERRIDES possible in yocto, to use the MACHINEOVERRIDES in your bbapend file to remove an package from PACKAGECONFIG:

PACKAGECONFIG_remove_<MACHINETYPE> = "<package-to-remove>"

OVERRIDES

Upvotes: 1

Related Questions