At the moment defining download mirror (PREMIRRORS) requires the use of a custom bbclass. Ideally this should be able to be configured more simply in local.conf.
There is a syntax that can be used in conf files, see local.conf's example of SSTATE_MIRRORS. Perhaps this bug should be about documenting this format more widely?
I had another look at this. At the very least there is a need for further documentation on this option because it's easy to get "wrong". The two problems I had were: (a) If you don't have a trailing \n in your PREMIRRORS then you get lots of "too many values to unpack while evaluating" errors at parse time. This could be fixed by adding an extra carriage return to the start of PREMIRRORS_append in poky.bbclass. (b) Not defining the initial regex correctly resulting in completely broken mirror fetch URLs, e.g. for http it has to be http://.*/.* I wonder if it would simply be easier to add a single mirror URL variable, which if defined would add mirror entries to the end of PREMIRRORS for all protocols? This would allow people to configure mirrors easily whilst still retaining the existing flexibility for those that need it.
(a) at least has been fixed in master.
Commit 0dd3f7ccd170c in oe-core master addresses this, so I'm marking this issue as resolved.