All of lore.kernel.org
 help / color / mirror / Atom feed
* subdir-ccflags problem
@ 2010-04-21  7:09 Johannes Berg
  2010-04-22 10:21 ` Michal Marek
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2010-04-21  7:09 UTC (permalink / raw)
  To: Michal Marek; +Cc: linux-kbuild

Hi,

When I specify subdir-ccflags in a Makefile, e.g. net/Makefile, but then
build using M=net/wireless/, kbuild doesn't seem to pick it up.

To me, that seems like a bug, but to my untrained eye it would appear to
be quite hard to fix. Thoughts?

johannes


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: subdir-ccflags problem
  2010-04-21  7:09 subdir-ccflags problem Johannes Berg
@ 2010-04-22 10:21 ` Michal Marek
  2010-04-22 16:46   ` Sam Ravnborg
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Marek @ 2010-04-22 10:21 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-kbuild

On 21.4.2010 09:09, Johannes Berg wrote:
> Hi,
> 
> When I specify subdir-ccflags in a Makefile, e.g. net/Makefile, but then
> build using M=net/wireless/, kbuild doesn't seem to pick it up.
> 
> To me, that seems like a bug, but to my untrained eye it would appear to
> be quite hard to fix. Thoughts?

For M=, this can't be fixed, because make M=$dir means "build external
module which resides in $dir" (so the parent directories have no
relevance). But even for 'make dir/subdir/' it would be hard to fix :-/.

Michal

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: subdir-ccflags problem
  2010-04-22 10:21 ` Michal Marek
@ 2010-04-22 16:46   ` Sam Ravnborg
  0 siblings, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2010-04-22 16:46 UTC (permalink / raw)
  To: Michal Marek; +Cc: Johannes Berg, linux-kbuild

On Thu, Apr 22, 2010 at 12:21:29PM +0200, Michal Marek wrote:
> On 21.4.2010 09:09, Johannes Berg wrote:
> > Hi,
> > 
> > When I specify subdir-ccflags in a Makefile, e.g. net/Makefile, but then
> > build using M=net/wireless/, kbuild doesn't seem to pick it up.
> > 
> > To me, that seems like a bug, but to my untrained eye it would appear to
> > be quite hard to fix. Thoughts?
> 
> For M=, this can't be fixed, because make M=$dir means "build external
> module which resides in $dir" (so the parent directories have no
> relevance). But even for 'make dir/subdir/' it would be hard to fix :-/.

Agree with Michal on this one. This is not easy to fix at all.

	Sam

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-04-22 16:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-21  7:09 subdir-ccflags problem Johannes Berg
2010-04-22 10:21 ` Michal Marek
2010-04-22 16:46   ` Sam Ravnborg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.