How to define a Yocto layer: from bitbake-layers create-layer to layer.conf
A Yocto layer is not just a directory; it is a metadata collection declared by layer.conf. This article starts from create-layer, explains BBFILES/BBFILE_PATTERN/priority/compatibility line by line, and gives verification commands.