Re: [PATCH] Makefile: Document ability to make file.lst and file.S

From: AmÃrico Wang
Date: Wed Jan 13 2010 - 22:26:19 EST


On Thu, Jan 14, 2010 at 1:31 AM, Joe Perches <joe@xxxxxxxxxxx> wrote:
> On Wed, 2010-01-13 at 18:14 +0100, Andi Kleen wrote:
>> On Wed, Jan 13, 2010 at 08:40:35AM -0800, Joe Perches wrote:
>> > On Wed, 2010-01-13 at 16:53 +0100, Andi Kleen wrote:
>> > > On Wed, Jan 13, 2010 at 10:36:39AM -0500, William Allen Simpson wrote:
>> > > > What make command would you suggest to get the interleaved asm?
>> > > make path/to/file.lst
>> > > (or .S -- you might need uptodate binutils if the lst listing is messed up)
>> > I didn't know that was possible.
>> The trap is that it doesn't work well on most systems with too
>> old binutils (unless the gcc is really ancient)
>
> Then that might as well go into the help.
>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>

Good patch,

Acked-by: WANG Cong <xiyou.wangcong@xxxxxxxxx>

> ---
> diff --git a/Makefile b/Makefile
> index 9f64552..484cff4 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1248,7 +1248,9 @@ help:
> Â Â Â Â@echo Â' Âfirmware_install- Install all firmware to INSTALL_FW_PATH'
> Â Â Â Â@echo Â' Â Â Â Â Â Â Â Â Â Â(default: $$(INSTALL_MOD_PATH)/lib/firmware)'
> Â Â Â Â@echo Â' Âdir/ Â Â Â Â Â Â- Build all files in dir and below'
> - Â Â Â @echo Â' Âdir/file.[ois] Â- Build specified target only'
> + Â Â Â @echo Â' Âdir/file.[oisS] - Build specified target only'
> +    @echo Â' Âdir/file.lst  Â- Build specified mixed source/assembly target only'
> + Â Â Â @echo Â' Â Â Â Â Â Â Â Â Â Â(requires a recent binutils and recent build (System.map))'
>    Â@echo Â' Âdir/file.ko   - Build module including final link'
> Â Â Â Â@echo Â' Âmodules_prepare - Set up for building external modules'
> Â Â Â Â@echo Â' Âtags/TAGS Â Â Â - Generate tags file for editors'
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html
> Please read the FAQ at Âhttp://www.tux.org/lkml/
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/