On Fri, 27 Apr 2007, Parav K Pandit wrote:
> Hi,
>
> I have written one function in assembly for my kernel module.
> Function is in module3.s file.
> I have added the module3.o file in the object list in the Makefile.
> But it shows compile time warning and following output.
>
> What do I need to do to compile assembly code in my kernel module.
>
> CC [M] /home/parav/cache_improve/test_module/module1.o
> CC [M] /home/parav/cache_improve/test_module/module2.o
> as -a32 -o /home/parav/cache_improve/test_module/module3.o
> /home/parav/cache_improve/test_module/module3.s
> LD [M] /home/parav/cache_improve/test_module/sdk3_module.o
> Building modules, stage 2.
> MODPOST
> Warning: could not find /home/parav/cache_improve/test_module/.module3.o.cmd
> for /home/parav/cache_improve/test_module/module3.o
> *** Warning: "test_func"
> [/home/parav/cache_improve/test_module/sdk3_module.ko] undefined!
> *** Warning: "" [/home/parav/cache_improve/test_module/sdk3_module.ko]
> undefined!
>
> I expect CC[M] kind of command for the module3.o file also so that
> .module3.o.cmd file gets generated.
>
> Regards,
> Parav Pandit
Just name the source module3.S
^______ not .s
>
Cheers,
Dick Johnson
Penguin : Linux version 2.6.16.24 on an i686 machine (5592.62 BogoMips).
New book: http://www.AbominableFirebug.com/
_
****************************************************************
The information transmitted in this message is confidential and may be
privileged. Any review, retransmission, dissemination, or other use of this
information by persons or entities other than the intended recipient is
prohibited. If you are not the intended recipient, please notify Analogic
Corporation immediately - by replying to this message or by sending an email to
[EMAIL PROTECTED] - and destroy all copies of this information, including any
attachments, without reading or disclosing them.
Thank you.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/