[yocto] busybox udhcpd service file

Lukas Böhm lukas.boehm at iseg-hv.de
Wed Sep 30 00:28:27 PDT 2015


Hello,

I want to use the busybox udhcpd server in conjunction with systemd. As there is 
no service file included in the recipe (v1.22.1) and no udhcpd.conf I made a 
bbappend to add this. Unfortunatelly the service file is not added to the final 
image but the conf-file.
My busybox_%.bbappend looks as follows:

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI += " \
		file://udhcpd.conf \
		file://udhcpd.service \
	"
SYSTEMD_PACKAGES += " \
		${PN}-udhcpd \
	"
SYSTEMD_SERVICE_${PN}-udhcpd = "udhcpd.service"
FILES_${PN}-udhcpd += "${systemd_unitdir}/system/udhcpd.service 
${sysconfdir}/udhcpd.conf"

do_install_append () {
   install -d ${D}${systemd_unitdir}/system
   install -d ${D}${sysconfdir}
   install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir}
   install -m 0644 ${WORKDIR}/udhcpd.service 
${D}${systemd_unitdir}/system/udhcpd.service
}
-----------------------------
The strange thing is, that the service file is installed to 
${WORKDIR}/image/lib/systemd/system but not to the final image.

Any hints how to make it will be highly appreciated.
Thanks

Lukas Böhm




More information about the yocto mailing list