Formation of spheroidal galaxies: the sub-mm view