Sample Header Ad - 728x90

How do I remove ntpd from the final image with my own recipe?

1 vote
1 answer
249 views
I want to get rid of all ntpd related stuff from my yocto linux image. Currently I include the meta-openembedded layer, which is responsible that the NTP service ntpd is installed on my final image. Since I don't need it and want to keep my image as small as possible, I would like to know how I can remove it with my own recipe without messing around with the meta-openembedded layer. I tried to create a recipe recipes-support/ntp/ntp_%.bbappend recipe in which I set the follwing: FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" CONFIG_NTPD = "n" But this does not seem to work. So my question would be how I can deactivate a recipe with another recipe or exclude it from the final image. I have also tried it from a python() {} or do_install:append() block with d.setVar("CONFIG_NTPD", "n") but also without success. This would even have the charming advantage that I could link the removal of the NTP packets to another variable.
Asked by schande (115 rep)
Nov 9, 2023, 10:31 AM
Last activity: Jul 12, 2024, 08:44 PM