Hello, I'm stuck on something that I would have assumed trivial and can't managed to do and hope someone can point me to a best practice.
I want to customize various config file of an image I'm building (e.g. network interfaces, sshd banner, hostapd, etc..). To make this simple, I wrote my own recipe called 'custom-config' and bundled in there all my config files. Then copying them in the on_install. do_install () { install -m 0755 -d ${D}${sysconfdir} install -b -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir} install -b -m 0644 ${WORKDIR}/hostapd.conf ${D}${sysconfdir} .... } It works great for files that are not provided by packages (e.g. udhcpd.conf), however it does not work for files already provided by another package (e.g. hostapd.conf). I've tried adding the backup flag to install but this did not help. It seems the recommended way to do this is by extending each individual recipe with bbappend and provide an updated config file. This works great, although quite heavy for just updating a single config file. More over, this does not work when the config file is not in the recipe but coming from sources archive. This is the case with hostapd.conf from recipe hostapd. Questions: - Is my idea of a single 'config' recipe completely stupid ? is there any way to make it work ? It seems the simpler approach. - If not possible and I have to stick with bbappend to every recipe concerned, then how could I do it in the case of a config file coming from the source package instead of the recipe ? Thanks for your help ! Best, Laurent
signature.asc
Description: OpenPGP digital signature
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto