On 12/14/20 11:43 AM, Peter Kjellerstedt wrote: > Say we have a recipe that creates an empty /etc/foo directory. Now we > want to add a new file in that directory /etc/foo/bar and package it as > ${PN}-bar. This means the creation of the /etc/foo directory is moved > from the ${PN} package to the ${PN}-bar package. Is there any way to > make ${PN} continue to create an empty /etc/foo, or is the only > alternative to introduce an /etc/foo/.dummy and package it in ${PN}?
try adjust the order of the PACKAGES variant. Something like: PACKAGES = "${PN}-bar ... ${PN}" FILES_${PN}-bar = "/etc/foo/bar" FILES_${PN} = "/etc/foo" That SHOULD package the file 'bar' in -bar, and the directory in ${PN}. (Some of the people commenting this isn't less then optimal, actually it's not that unusual.. Typical case I see is creating a directory in /var or /usr/share for datafiles and the main package owns the directory, with sub-packages [or other packages] contributing data into that directory.) --Mark > //Peter > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#145629): https://lists.openembedded.org/g/openembedded-core/message/145629 Mute This Topic: https://lists.openembedded.org/mt/78956546/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-