[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: External module assembler output.



jbi130@xxxxxxxxx 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.


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




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