[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161019220346.GA20054@gate.crashing.org>
Date: Wed, 19 Oct 2016 17:03:47 -0500
From: Segher Boessenkool <segher@...nel.crashing.org>
To: Jim Davis <jim.epost@...il.com>
Cc: SF Markus Elfring <elfring@...rs.sourceforge.net>,
linux-kbuild@...r.kernel.org, Michal Marek <mmarek@...e.com>,
linux-kernel <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: Re: Challenges around the usage of different "HOSTCFLAGS" for kernel build configuration and module generation
On Wed, Oct 19, 2016 at 12:51:44PM -0700, Jim Davis wrote:
> On Wed, Oct 19, 2016 at 12:25 AM, SF Markus Elfring
> <elfring@...rs.sourceforge.net> wrote:
> >
> > Are you interested that a software generation parameter like "-S"
> > (for output of assembler source files) could be directly supported
> > for a special build variant?
>
> No, if you want to see the assembly code then something like
>
> make defconfig; make EXTRA_CFLAGS="-g" drivers/md/; objdump -S
> drivers/md/whatever.o
>
> seems easy enough. You could write a little shell wrapper to save
> some keystrokes if you find you're running those commands frequently.
Don't forget -r when running objdump on an object file. But, you
want to use make drivers/md/whatever.s if you want to see the
assembler code.
And that doesn't work for build-time tools, which I think is what
the original discussion was about.
Segher
Powered by blists - more mailing lists