I don't know if it helps at all, but it's definitely different in secondary. Obviously the boys who want to play football play together- but there's generally more space, which leaves room for other sports and games, and more chance to "find your tribe".
I had a Y7 tutor group a few years ago, and there were boys who were into football, but also boys who skateboarded, did watersports, and also some who were into art/DT/making things- so they were all able to find a group and make friends. Friendships also become more mixed again as they go up through secondary, so that helps too!
There's a much bigger pool of potential friends too.
I do think it really helps for boys to have something that they are into- my impression was that the boys tended to form friendship groups based around shared interests, whereas the girls were more focused on their interpersonal dynamics.
It does help if you are into something that is not too obscure- music, art, drama can all be great ways of making friends too! I think, for children struggling with friendships at primary, clubs outside of school can be a real lifeline.
Climbing can be another good one for sporty kids who don't like team/contact sports.
And as they get older, thinks like skating, water sports, climbing etc are often seen as "cooler" by a lot of their peers than football!