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.
-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 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.
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