LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-18-2016, 01:00 PM   #1
dfatlq
Member
 
Registered: May 2012
Posts: 49

Rep: Reputation: Disabled
How to you have kbuild send output to a different directory?


Hi,

I want to tell kbuild to output the generated files (for a module) to a subdirectory. That way I can share to source across multiple kernel version builds and have the output go to its own directory.

I saw a patch was created in 2003 for an O= variable but tried (the O, not the patch) that and didn't work.

How do I tell it to use a subdir for output?

TIA!!
 
Old 01-21-2016, 01:52 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Please show all the exact steps you took to try the O= solution. Might as well include kernel version too. It does work and should work. Or if you prefer you can look at the linux/README in case something's changed since I last read it.
 
Old 01-21-2016, 09:57 PM   #3
dfatlq
Member
 
Registered: May 2012
Posts: 49

Original Poster
Rep: Reputation: Disabled
Kernel version is 2.6.32-5-686 on Debian 6

I basically added an O= to the make command line

$(MAKE) -C $(KDIR) M=$(CURDIR) V=$(V) O=$(KVER) modules
 
  


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
Need help to send output to file sagar666 Linux - Server 2 03-30-2014 11:51 PM
Kbuild problem when trying to build module with make: cannot find Kbuild.include purnish_dave Linux - Kernel 2 01-13-2014 05:40 PM
[SOLVED] how to send the output of send command to a file auma78 Linux - Newbie 2 01-23-2011 12:06 AM
specifying kbuild dependency directory johnu Linux - Kernel 0 04-19-2010 10:14 AM
Can kbuild execute non-kbuild makefiles? xuanadoo Linux - Newbie 0 10-15-2006 02:41 AM

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

All times are GMT -5. The time now is 02:10 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