GPIO hardware buttons control with gpio-keys

Hi,

I feel stupid not understanding this. I use this as a guide: Compile Kernel on RPI2 from RBP2-sources-osmc
I use this command to get osmc: git clone GitHub - osmc/osmc: OSMC (Open Source Media Center) is a free and open source media center distribution
I go to this directory: cd ~/osmc/package/kernel-osmc
There I run: sudo make rbp2
This will give me a package to install.
Now I would like to make changes. (Include an extra driver in the kernel.) According to the “guide” I should modify this file: rbp2-000-add-kernel-config.patch
When I run sudo make rbp2 the latest sources are downloaded. Somewhere is the scripts the rbp2-000-add-kernel-config.patch creates the .config file. This file is used to configure the build of the kernel?
If I check this file after the build my changes aren’t there so there’s my misunderstanding. My problem with adding it to Makefile and kconfig is that I have no idea which of the files to change and how to change it. I can make changes to the .config file with sudo make menuconfig but I think those changes won’t survive the next sudo make rbp2 command.
I would love to continu but I have no idea what I’m doing.

Regards,

Rob.