kernel: rework bcm47xx backport, fix build errors on the brcm47xx target (#21974)