Is there a way to patch buildroot?

For my project I need to add dnsmasq to my build.
That is easy to do using make menuconfig, problem is that the menu misses the option to enable nftset.
I manually updated Config.in and dnsmasq.mk in /nerves/env/platform/buildroot/package/dnsmasq, to add the new selection.
After cleaning, recompiling my dnsmasq is okay.

Now for the question, how can I make this reproducable?
If (when) I upgrade/redownload buildroot my changes will be lost.

Afaik the path is to add a custom buildroot package, which happens to be a copy of the package you want to customize including the customizations (+ unique name).

Yes, I was afraid that would be it.

Today I got back to it, I added dnsmasq as an extra package, but even though I renamed it, it caused an issue with the existing package inside buildroot, so I had to delete it and remove it from package/Config.in.