public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Joel Becker <Joel.Becker@oracle.com>
To: murtuja bharmal <murtuja_bharmal@yahoo.com>
Cc: linux-kbuild <linux-kbuild@vger.kernel.org>
Subject: Re: Kbuild Makefile output
Date: Fri, 16 May 2008 09:02:49 -0700	[thread overview]
Message-ID: <20080516160249.GB499@mail.oracle.com> (raw)
In-Reply-To: <114572.24054.qm@web95110.mail.in2.yahoo.com>

On Fri, May 16, 2008 at 12:36:30PM +0100, murtuja bharmal wrote:
> Actaually foo.c is common file for kernel space and
> user space and bar.c is only a part of kernel space.
> Anyway if we can change object file name for all
> source file without changing source file name, then
> also no issue but I just want to know whether it is
> possible or not.

	In general, kbuild wants to find a source file with the same
name as the object file.  That you can't change.  It also expects to
build object files in the same directory as their source files.  This is
why I suggested a special directory where you symlink all the required
sources for a kernel build, then let kbuild do the rest.
	To sum up - pick the names you want for the files in a kernel
build.  Set them in mymodule-objs.  Then if those names are different
than your actual source file, come up with a rule to change the name.

Joel

-- 

"It is not the function of our government to keep the citizen from
 falling into error; it is the function of the citizen to keep the
 government from falling into error."
	- Robert H. Jackson

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127

      reply	other threads:[~2008-05-16 16:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <339763.26248.qm@web95104.mail.in2.yahoo.com>
2008-05-15 17:42 ` Kbuild Makefile output Sam Ravnborg
2008-05-15 18:01   ` murtuja bharmal
2008-05-15 18:31   ` murtuja bharmal
2008-05-15 20:58     ` Joel Becker
2008-05-16  6:03       ` murtuja bharmal
2008-05-16  9:32         ` Joel Becker
2008-05-16 11:36           ` murtuja bharmal
2008-05-16 16:02             ` Joel Becker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080516160249.GB499@mail.oracle.com \
    --to=joel.becker@oracle.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=murtuja_bharmal@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox