I did sell a set of M5/M6 brake calipers to a chap in Belgium where he put them to use on a 1 series track car. To make them fit a set of adaptor brackets had to be made and I believe he also fitted a larger master cylinder although I don't know where that was sourced from I'm afraid.
If it's of any interest, I did fit the front calipers from an M4 to my car in conjunction with 370mm discs (repainted silver because I'm not a fan of the blue or liberal application of M logo's). Of course, they not going to be as strong as the M5 calipers but they are lighter and can be retrofitted using purely OE parts without any custom fabrication which was the big attraction for me as it means easy maintenance going forward.
Over the standard setup they are a big improvement, the brakes feel much stronger and offer far better pedal feel, very similar to Porsche's sports cars. I've not driven it hard enough yet to encounter any fading.
This was the thread I did on them;
https://z4-forum.com/forum/viewtopic.php?t=110562