How to create a directory in multiple packages?

Peter Kjellerstedt
2020-12-14T17:43:24Z

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}?

//Peter