Cummins will build medium-duty engines for Daimler Trucks :