From: Erik Mouw <erik@harddisk-recovery.com>
To: Aubrey <aubreylee@gmail.com>
Cc: 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 13:28:18 +0200 [thread overview]
Message-ID: <20060410112817.GE12896@harddisk-recovery.com> (raw)
In-Reply-To: <6d6a94c50604100316j43bcc32p6fa781c0ce47182d@mail.gmail.com>
On Mon, Apr 10, 2006 at 06:16:56PM +0800, Aubrey wrote:
> I've written a framebuffer driver and put it under the folder
> "./drivers/video", it consists of two files" mydriver.c and myfun.S".
Why would you write a driver in assembly in the first place? That makes
it highly unportable, I bet you can't compile your driver for x86 and
ARM from the same source. There are only four drivers in the whole
kernel tree that have an assembly part, but those are so tied to their
platform (Acorn, Amiga) that they aren't portable anyway.
> When I build it into the kernel image, everything is ok.
> But when I build it as module, I got the following error message:
> ===========================================
> aubrey@linux:~/cvs/kernel/uClinux-dist> make V=1
> --------snip---------
> make -f scripts/Makefile.build obj=drivers/video
> make -f scripts/Makefile.build obj=drivers/video/backlight
> make[3]: *** No rule to make target `drivers/video/rgb2ycbcr.c',
> needed by `drivers/video/rgb2ycbcr.o'. Stop.
> make[2]: *** [drivers/video] Error 2
> make[1]: *** [drivers] Error 2
> make[1]: Leaving directory `/home/aubrey/cvs/kernel/uClinux-dist/linux-2.6.x'
> make: *** [linux] Error 1
> ===========================================
>
> Make ask me for ".c" file. But it's an assemble file indeed.
> Is it a bug of kernel script? (I'm using 2.6.16)
I haven't seen your Makefile so I can't see what's wrong, but see
drivers/scsi/arm/Makefile for an example.
Erik
--
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
next prev parent reply other threads:[~2006-04-10 11:28 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 [this message]
2006-04-10 13:27 ` Aubrey
2006-04-10 17:33 ` Sam Ravnborg
2006-04-10 17:42 ` Adrian Bunk
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=20060410112817.GE12896@harddisk-recovery.com \
--to=erik@harddisk-recovery.com \
--cc=aubreylee@gmail.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