Hello Cengizhan Yapicioglu,
For create a custom layer, you could refer to GitHub - yoctocookbook/meta-custom: Example meta-custom Yocto layer .
The attached is an example about how meta-freescale including dynamic-layers layer, please pay attention to meta-freescale_bak/conf/layer.conf configuration, especially BBFILES variable definition.
Have a great day,
Yiping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------