I have discovered a much universal way to generate kernel with modified device tree as described here.
@Tarask1n, could you scriptify this rather than making your script device specific?