* Re: Challenges around the usage of different "HOSTCFLAGS" for kernel build configuration and module
[not found] ` <CA+r1Zhj3AQAbL_Hu4w=gX8kaR0zKoYhTmAYyVcvBMPLXpfZ3gA@mail.gmail.com>
@ 2016-10-19 7:25 ` SF Markus Elfring
2016-10-19 19:51 ` Jim Davis
0 siblings, 1 reply; 5+ messages in thread
From: SF Markus Elfring @ 2016-10-19 7:25 UTC (permalink / raw)
To: Jim Davis; +Cc: linux-kbuild, Michal Marek, linux-kernel, kernel-janitors
>> Can it be that the passing of the adjusted parameter "HOSTCFLAGS" has got a significant
>> influence (with unwanted side effects) in this use case?
>
> That's probably it. If I strip down your advanced original example to just
>
> make defconfig
> make HOSTCFLAGS=-S
>
> then I get a similar error:
>
> HOSTCC scripts/basic/fixdep
> scripts/basic/fixdep: 1: scripts/basic/fixdep: .file: not found
…
> and so forth.
Thanks that you could reproduce my observation also with a simple example
on your test system.
> The problem is that, with -S, fixdep isn't build as an executable:
>
> jim@krebstar:~/linux-next/scripts/basic$ file fixdep
> fixdep: assembler source, ASCII text
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?
* Does this issue indicate further development challenges?
* How are the chances that the involved software dependencies can be
handled better in more detail?
> I'm guessing that in your original example you wanted to look at the
> assembly output gcc produced;
Yes. - I became interested in this use case once more.
> you'd probably have better luck using objdump for that.
This approach can occasionally work to some degree. I am looking for
a better (or more convenient) solution.
I got the impression that I need to put special build parameters into
the make files directly so far while I would prefer to pass extra settings
as command line arguments for the tool "make".
Will it make sense to distinguish such parameters for development phases
(or stages) like "kernel build configuration" and corresponding
"module generation" any more?
Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Challenges around the usage of different "HOSTCFLAGS" for kernel build configuration and module
2016-10-19 7:25 ` Challenges around the usage of different "HOSTCFLAGS" for kernel build configuration and module SF Markus Elfring
@ 2016-10-19 19:51 ` Jim Davis
2016-10-19 22:03 ` Segher Boessenkool
2016-10-20 6:33 ` SF Markus Elfring
0 siblings, 2 replies; 5+ messages in thread
From: Jim Davis @ 2016-10-19 19:51 UTC (permalink / raw)
To: SF Markus Elfring
Cc: linux-kbuild, Michal Marek, linux-kernel, kernel-janitors
On Wed, Oct 19, 2016 at 12:25 AM, SF Markus Elfring
<elfring@users.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.
--
Jim
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Challenges around the usage of different "HOSTCFLAGS" for kernel build configuration and module
2016-10-19 19:51 ` Jim Davis
@ 2016-10-19 22:03 ` Segher Boessenkool
2016-10-20 7:37 ` SF Markus Elfring
2016-10-20 6:33 ` SF Markus Elfring
1 sibling, 1 reply; 5+ messages in thread
From: Segher Boessenkool @ 2016-10-19 22:03 UTC (permalink / raw)
To: Jim Davis
Cc: SF Markus Elfring, linux-kbuild, Michal Marek, linux-kernel,
kernel-janitors
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@users.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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Challenges around the usage of different "HOSTCFLAGS" for kernel build configuration and module
2016-10-19 19:51 ` Jim Davis
2016-10-19 22:03 ` Segher Boessenkool
@ 2016-10-20 6:33 ` SF Markus Elfring
1 sibling, 0 replies; 5+ messages in thread
From: SF Markus Elfring @ 2016-10-20 6:33 UTC (permalink / raw)
To: Jim Davis; +Cc: linux-kbuild, Michal Marek, linux-kernel, kernel-janitors
> make defconfig; make EXTRA_CFLAGS="-g" drivers/md/; objdump -S drivers/md/whatever.o
Such a command looks promising.
* I find it safer when double ampersand will be used as control operator
instead of semicolon there.
* I get the impression from an other command like "find . -name '?akefile' -exec ack --with-filename EXTRA_CFLAGS '{}' \;"
that the suggested parameter "EXTRA_CFLAGS" will not achieve an effect
at places where I am interested in at the moment.
It seems that further fine-tuning can become interesting and challenging
for involved make variables.
Regards,
Markus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Challenges around the usage of different "HOSTCFLAGS" for kernel build configuration and module
2016-10-19 22:03 ` Segher Boessenkool
@ 2016-10-20 7:37 ` SF Markus Elfring
0 siblings, 0 replies; 5+ messages in thread
From: SF Markus Elfring @ 2016-10-20 7:37 UTC (permalink / raw)
To: Segher Boessenkool
Cc: Jim Davis, linux-kbuild, Michal Marek, linux-kernel,
kernel-janitors
> Don't forget -r when running objdump on an object file.
Thanks for your reminder.
> But, you want to use make drivers/md/whatever.s if you want to see
> the assembler code.
Thanks for your advice!
This is one kind of "generation convenience" I was looking for.
Was my software development attention too limited for another moment
so that I did not directly pick an opportunity up from the description
like "dir/file.[ois] - Build specified target only"
(by the command "make help") that I can get assembler source files
for Linux modules so easy on demand?
Would you like to point any places out in the make scripts which
show relevant commands for such build targets?
> And that doesn't work for build-time tools,
I got the impression that they can trigger further software development challenges.
Should their source files (and corresponding make parameters) be improved anyhow?
> which I think is what the original discussion was about.
I see a few change possibilities there. Will it be useful to reconsider
the generation parameters for build-time tools in comparison to components
from other Linux software areas?
Will a variable like "EXTRA_CFLAGS" achieve a desired effect at more places?
Regards,
Markus
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-10-20 7:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4f2251fc-94ee-41d3-cc03-a39cee5a084c@users.sourceforge.net>
[not found] ` <CA+r1ZhjmaXi+Nf8vNsMwzfuSkYOByC6D_F=GkehneqfnSO7iCQ@mail.gmail.com>
[not found] ` <1238ba8e-a297-6de5-2e6a-50e6e72e77d3@users.sourceforge.net>
[not found] ` <CA+r1ZhhqEBvV0ivz=MvaHhRquhFS2mxddJ-GOx81ZeSerKsD3g@mail.gmail.com>
[not found] ` <ec3a7283-3c41-9879-49ae-8924b8daf65f@users.sourceforge.net>
[not found] ` <CA+r1Zhj3AQAbL_Hu4w=gX8kaR0zKoYhTmAYyVcvBMPLXpfZ3gA@mail.gmail.com>
2016-10-19 7:25 ` Challenges around the usage of different "HOSTCFLAGS" for kernel build configuration and module SF Markus Elfring
2016-10-19 19:51 ` Jim Davis
2016-10-19 22:03 ` Segher Boessenkool
2016-10-20 7:37 ` SF Markus Elfring
2016-10-20 6:33 ` SF Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox