LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-10-2011, 01:44 PM   #1
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
building external module, howto override CONFIG_ option?


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?
 
Old 11-12-2011, 02:34 PM   #2
jthill
Member
 
Registered: Mar 2010
Distribution: Arch
Posts: 211

Rep: Reputation: 67
Why not just make menuconfig as needed and make drivers/input/mouse/psmouse.ko? If your config option isn't in drivers/input/mouse/Kconfig just pop that file open and put it in.
 
Old 11-12-2011, 02:44 PM   #3
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Original Poster
Rep: Reputation: 67
This is for an automated PKGBUILD for Arch. What you're suggesting is similar to my attempt to use KCONFIG_CONFIG, but that variable doesn't seem to do anything for making a module. For now (and probably permanently) I've just removed the CONFIG option from the patch.

For reference: https://github.com/mmonaco/synaptics-led
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto use one module's dev/functions in another module. urup Linux - Kernel 5 06-27-2008 06:39 AM
why the override-expire option is not effect ? jiawj Linux - Networking 0 04-11-2006 05:04 AM
Can't find option Root filesystem in NFS while building kernel benjaminrtz Linux - Newbie 1 01-25-2006 03:29 PM
external mouse does not override touchpad netcrusher88 Linux - Laptop and Netbook 0 12-13-2005 09:15 AM
building .src.rpm -> unknown option gletare Fedora 2 11-05-2005 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration