2.6.29-rcx triviality - How to have foo.ko module with same nameas foo.c source file

From: Boaz Harrosh
Date: Sun Mar 15 2009 - 06:06:51 EST


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.

[Q]
Is it possible to build a module with exact same base-name as it's single
source file?

P.S:
Just asking I realized that I can just add an "mv ..." command to my make file.
But is this expected behaviour?

Thanks in advance
Boaz
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/