subdir-ccflags problem
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
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
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