What is the right way to apply a patch to a dts while building