Currently, the fetchdir is picking the BBLAYERS_FETCH_DIR value which points to COREBASE. The directory structure is kind of messy since all layers are checked out under the poky dir. By adding a parameter to choose the fetchdir location, the user can have a clearer directory structure.
Do you have a patch in mind for this?
Not yet, but I can prepare one in the next few days.
I'm in two minds whether we change the default to COREBASE/../, or add an option to override in fetch, or both.
Patches sent to the mailing list: https://lists.openembedded.org/g/bitbake-devel/message/12218 https://lists.openembedded.org/g/bitbake-devel/message/12219