Skip to contentSkip to conversation

subdir-ccflags problem

DISCUSSION Johannes Berg 3 participants 3 messages Apr 21, 2010 – Apr 22, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 7 lines · Johannes Berg

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

#2 lore raw
Quoted 6 lines · Michal Marek
Quoted 5 lines · Johannes Berg

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.

Quoted 6 lines
Quoted 2 lines

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