public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Boaz Harrosh <bharrosh@panasas.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.29-rcx triviality - How to have foo.ko module with same name as foo.c source file
Date: Sun, 15 Mar 2009 11:12:10 +0100	[thread overview]
Message-ID: <20090315101210.GA5669@uranus.ravnborg.org> (raw)
In-Reply-To: <49BCD2F6.6030903@panasas.com>

On Sun, Mar 15, 2009 at 12:05:42PM +0200, Boaz Harrosh wrote:
> Since sometime in the 2.6.29-rc I'm no longer able to produce an
> out-of-tree module that has the same base-name as a source file.
> 
> This is what I had in 2.6.28:
> <Kbuild>
>     obj-m += foo.o
> </Kbuild>
> Where foo.c is a source file in the same directory.
> 
> But since 2.6.29-rcx it will no longer build my foo.ko module. I
> had to change it to:
> <Kbuild>
>     foo_mod-y = foo.o
>     obj-m += foo_mod.o
> </Kbuild>
> Which changed my module name in scripts and packages.

We use the single .c file for a module with the same name as the
module all over the kernel.

What is more likely is that your module started to include an
additional sourcefile (antoehr .o) in which case you no longer
can have a source file sharing the name of the module.

> P.S:
>   Just asking I realized that I can just add an "mv ..." command to my make file.

Using mv is no-no..

	Sam

  reply	other threads:[~2009-03-15 10:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-15 10:05 2.6.29-rcx triviality - How to have foo.ko module with same name as foo.c source file Boaz Harrosh
2009-03-15 10:12 ` Sam Ravnborg [this message]
2009-03-15 10:14   ` Boaz Harrosh
2009-03-15 10:20     ` Boaz Harrosh

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=20090315101210.GA5669@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=bharrosh@panasas.com \
    --cc=linux-kernel@vger.kernel.org \
    /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