I'm patching and rebuilding psmouse.ko. The patch contains a config option and I'd like to be able to easily set it.
My make call:
Code:
KDIR=/lib/modules/$(uname -r)/build
make -C $KDIR M="$PWD/drivers/input/mouse" psmouse.ko
I've tried to just set the the option on the command line like
Code:
make CONFIG_OPTION=y ...
I've also tried copying the config file over
Code:
cp $KDIR/.config config
echo CONFIG_OPTION=y >> config
export KCONFIG_CONFIG=$PWD/config
make ...
So far the only thing that works, which feels messy is to rsync the kernel headers from KDIR on top of the source I'm building.
Any ideas?