Right now, I'm trying to apply the patch from the below link to my Yocto base manually.
It's working fine.
I want to apply the same patch while building the Yocto source.
How to achieve this?
Where do I keep this patch file and how to apply the patch?
Please help me to move further.
As Christian Eggers mentioned, it is recommended to create a new layer and recipes that will apply the changes required. Most of the time patches are applied trough appends to the recipe. If your layer has a high enough priority changes will be applied when building.
While a bit outdated the principles remain the same as in the document below:
For more details on how to create a layer and a recipe I would recommend the Yocto Project documentation.
Usually it is best practice not making changes to the poky layer itself. Instead you should make your changes in a .bbappend file in you own layer.
In case of the patch you have mentioned, I'm not sure whether this approach is possible. I would simply create a local clone of the poky repository and apply and commit the patch there.