We should require any YP Compatible v2 layer to set LAYERSERIES_COMPAT_X in the layer.conf file.
http://lists.openembedded.org/pipermail/openembedded-core/2018-April/149712.html
Merged to master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=003e90886584f0b92bdebf23fc1661443b6d50f2