From: Boaz Harrosh <openosd@gmail.com>
To: "Américo Wang" <xiyou.wangcong@gmail.com>
Cc: hacklu <embedway.linux@gmail.com>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: how about KBUILD_MODNAME
Date: Tue, 03 Aug 2010 13:24:41 +0300 [thread overview]
Message-ID: <4C57EE69.4080209@gmail.com> (raw)
In-Reply-To: <20100803101544.GJ5129@cr0.nay.redhat.com>
On 08/03/2010 01:15 PM, Américo Wang wrote:
>
> And it doesn't make sense to hold two drivers in one .c file.
>
I meant when two drivers share the same .c file. But instead of
using a third common module they just share it by duplicating
the code. example:
<Kbuild>
drv1-y := drv-one.o common.o
obj-$(CONFIG_DRV1) += drv1.o
drv2-y := drv-two.o common.o
obj-$(CONFIG_DRV2) += drv2.o
</Kbuild>
When compiling common.o the KBUILD_MODNAME fails to be set
Cheers
Boaz
next prev parent reply other threads:[~2010-08-03 10:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201008031037022524247@gmail.com>
2010-08-03 7:11 ` how about KBUILD_MODNAME hacklu
2010-08-03 8:36 ` Américo Wang
2010-08-03 9:35 ` hacklu
2010-08-03 10:00 ` Sam Ravnborg
2010-08-03 10:12 ` Américo Wang
2010-08-03 9:52 ` Boaz Harrosh
2010-08-03 9:56 ` Boaz Harrosh
2010-08-03 10:15 ` Américo Wang
2010-08-03 10:24 ` Boaz Harrosh [this message]
2010-08-03 11:02 ` Sam Ravnborg
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=4C57EE69.4080209@gmail.com \
--to=openosd@gmail.com \
--cc=embedway.linux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=xiyou.wangcong@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.