From: Adrian Bunk <bunk@stusta.de>
To: Aubrey <aubreylee@gmail.com>
Cc: Erik Mouw <erik@harddisk-recovery.com>, linux-kernel@vger.kernel.org
Subject: Re: The assemble file under the driver folder can not be recognized when the driver is built as module
Date: Mon, 10 Apr 2006 19:42:52 +0200 [thread overview]
Message-ID: <20060410174252.GD2408@stusta.de> (raw)
In-Reply-To: <6d6a94c50604100627q297b7335yb58288356aaa8edd@mail.gmail.com>
On Mon, Apr 10, 2006 at 09:27:18PM +0800, Aubrey wrote:
>...
> Makefile is simple.
> ===============================
> ----snip----
> obj-$(CONFIG_FB_BFIN_7171) += bfin_ad7171fb.o rgb2ycbcr.o
> ----snip----
> ===============================
> There are two files, bfin_ad7171fb.c and rgb2ycbcr.S under the folder
> " ./drivers/video".
> It should be OK because the driver can pass the compilation when
> select it as built-in.
> It just failed when select it as module.
>
> Thanks your any hints.
You can't build an object only built from an assembler file.
But you don't want to get two modules, you want one module built from
two source files.
IOW, you want:
obj-$(CONFIG_FB_BFIN_7171) += bfin_ad7171fb.o
bfin_ad7171fb-objs := bfin_ad7171fb_main.o rgb2ycbcr.o
Note that this requires renaming bfin_ad7171fb.c to bfin_ad7171fb_main.c.
> Regards,
> -Aubrey
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2006-04-10 17:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-10 10:16 The assemble file under the driver folder can not be recognized when the driver is built as module Aubrey
2006-04-10 11:28 ` Erik Mouw
2006-04-10 13:27 ` Aubrey
2006-04-10 17:33 ` Sam Ravnborg
2006-04-10 17:42 ` Adrian Bunk [this message]
2006-04-10 18:04 ` linux-os (Dick Johnson)
2006-04-10 18:24 ` Sam Ravnborg
2006-04-10 19:12 ` linux-os (Dick Johnson)
2006-04-10 19:30 ` Sam Ravnborg
2006-04-11 2:58 ` Aubrey
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=20060410174252.GD2408@stusta.de \
--to=bunk@stusta.de \
--cc=aubreylee@gmail.com \
--cc=erik@harddisk-recovery.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