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 04-15-2010, 01:47 PM   #1
johnu
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
kbuild dependency help


I am working on a module which is built in multiple stages. Two of these stages rely on objects within the same sub directory (and sometimes you might want to skip the one of the stages...). To break this up the authors of the module decided to create two targets, both using different links to the directory where the source files are stored.

The result is that kbuild tries to build the same object files twice. The problem is because the link name differs between the two stages, the command line used to build the objects differs on the two stages. And because Kbuild uses the command line as a dependency, it ends up always rebuilding the object files twice for every single build.

Is there an elegant way around this (make kbuild ignore the command-line part of the dependency)?

If not, is it possible to put a dependency on each of the .o files that could run sed on the .cmd file, and replace the link names in the command line so the command line is always consistent?


Any comments appreciated

Thanks,

John
 
  


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
help w/ kbuild rrlangly Linux - Kernel 1 03-21-2010 06:05 AM
linux-kbuild-2.6.24 radiodee1 Debian 7 01-30-2008 05:34 AM
Can kbuild execute non-kbuild makefiles? xuanadoo Linux - Newbie 0 10-15-2006 02:41 AM
linux-kbuild-2.6.17 davcefai Debian 3 06-27-2006 03:28 PM
kbuild error Barakanooz Linux - Hardware 0 10-04-2005 06:19 PM

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

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