Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

External module assembler output.

2 views
Skip to first unread message

jbi...@yahoo.com

unread,
Jun 7, 2005, 12:05:42 PM6/7/05
to
How can I invoke make to get a .s listing of a source file in my
external module directory?

For example, from the kernel top level directory I can do a 'make
drivers/net/tun.s'. I'd like to do the same but for a file in my
external module directory.

Thanks.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/


Jim Cromie

unread,
Jun 7, 2005, 1:50:12 PM6/7/05
to
jbi...@yahoo.com wrote:

man gcc | more +/'compilation proper'
Unrecognized input files, not requiring compilation or assembly,
are ignored.

-S Stop after the stage of compilation proper; do not assemble.
The output is in the form of an
assembler code file for each non-assembler input file specified.

By default, the assembler file name for a source file is made
by replacing the suffix .c, .i,
etc., with .s.

jbi...@yahoo.com

unread,
Jun 7, 2005, 1:58:49 PM6/7/05
to
Jim Cromie <jcr...@divsol.com> writes:

> jbi...@yahoo.com wrote:
>
> >How can I invoke make to get a .s listing of a source file in my
> >external module directory?
> >
> >For example, from the kernel top level directory I can do a 'make
> >drivers/net/tun.s'. I'd like to do the same but for a file in my
> >external module directory.
> >
> >Thanks.
> >
> >
> >--
> >Kernelnewbies: Help each other learn about the Linux kernel.
> >Archive: http://mail.nl.linux.org/kernelnewbies/
> >FAQ: http://kernelnewbies.org/faq/
> >
> >
>
> man gcc | more +/'compilation proper'
> Unrecognized input files, not requiring compilation or
> assembly, are ignored.

I have specified a target manually to get this. I'm looking for an
easier way, so the same compile options get set when I compile the
module.. So I don't have to specify all the includes and flags that
I get by setting KBUILD_VERBOSE=1.

Timur Tabi

unread,
Jun 7, 2005, 2:49:08 PM6/7/05
to
jbi...@yahoo.com wrote:
> How can I invoke make to get a .s listing of a source file in my
> external module directory?

EXTRA_CFLAGS += -Wa,-aldh=$*.s

--
Timur Tabi
Staff Software Engineer
timur...@ammasso.com

One thing a Southern boy will never say is,
"I don't think duct tape will fix it."
-- Ed Smylie, NASA engineer for Apollo 13

0 new messages