[yocto] busybox udhcpd service file

Daniel. danielhilst at gmail.com
Mon Oct 5 10:10:05 PDT 2015


I would suggest you to setup build history and look files installed by
busybox package.

2015-10-05 13:13 GMT-03:00 Khem Raj <raj.khem at gmail.com>:
> On Wed, Sep 30, 2015 at 12:28 AM, Lukas Böhm <lukas.boehm at iseg-hv.de> wrote:
>> 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 \
>>         "
I don't really understand what you said. The udhcpd.conf file was
installed on image but not
the udhcpd.service file? Is that right? Can you check if busybox
already ships udhcpd.conf file?

>> 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.
>
> Did you inherit systemd ?
>
>
>> Thanks
>>
>> Lukas Böhm
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


Cheers,

-- 
"Do or do not. There is no try"
  Yoda Master



More information about the yocto mailing list