A theoretical decomposition of mean skin friction generation into physical phenomena across the whole profile of the incompressible zero-pressure-gradient smooth-flat-plate boundary layer is derived from a mean streamwise kinetic-energy budget in an absolute reference frame (in which the undisturbed fluid is not moving). The Reynolds-number dependences in the laminar and turbulent cases are investigated from direct numerical simulation datasets and Reynolds-averaged Navier-Stokes simulations, and the asymptotic trends are consistently predicted by theory. The generation of the difference between the mean friction in the turbulent and laminar cases is identified with the total production of turbulent kinetic energy (TKE) in the boundary layer, represented by the second term of the proposed decomposition of the mean skin friction coefficient. In contrast, the analysis introduced by Fukagata et al. on a streamwise momentum budget in the wall reference frame, relates the turbulence-induced excess friction to the Reynolds shear stress weighted by a linear function of the wall distance. The wall-normal distribution of the linearly-weighted Reynolds shear stress differs from the distribution of TKE production involved in the present discussion, which consequently draws different conclusions on the contribution of each layer to the mean skin friction coefficient. At low Reynolds numbers, the importance of the buffer-layer dynamics is confirmed. At high Reynolds numbers, the present decomposition quantitatively shows for the first time that the generation of the turbulence-induced excess friction is dominated by the logarithmic layer. This is caused by the well-known decay of the relative contributions of the buffer layer and wake region to TKE production with increasing Reynolds numbers. This result on mean skin friction, with a physical interpretation relying on an energy budget, is consistent with the well-established general importance of the logarithmic layer at high Reynolds numbers, contrary to the friction breakdown obtained from the approach of Fukagata et al. based on a momentum budget. The new decomposition suggests that it may be worth investigating new drag reduction strategies focusing on TKE production and on the nature of the logarithmic layer dynamics. The decomposition is finally extended to the pressure-gradient case and to channel and pipe flows.