Yosef Karo, Translation:Shulchan Aruch — Orach Chaim 366…
“ Therefore, there is a custom to gather a bit of flour from every house in order to make one loaf that will be the eruv (the Magid and Hagahot HaRaava"d chapter 1 from the laws of Eruvin) , and this is the custom in these countries. One should be careful that the loaf fulfills the measurements detailed below in chapter 368 paragraph 3. Even if some flour is left over and all of it is not made into bread, it is still an eruv, because this is no worse than if one person makes the eruv for everyone. ”
