aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile.lib
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2012-01-08 15:54:43 -0500
committerMichal Marek <mmarek@suse.cz>2012-01-08 15:54:43 -0500
commit5bb0571bfddcdcd3fbf42a58fcce4d0b743fe62f (patch)
treeb00945462931c1793c5fdc4e6a19eb2f9e3cdbce /scripts/Makefile.lib
parent603d8c0adb0f7576f92fc435c69be9406dc60762 (diff)
kbuild: Fix comment in Makefile.lib
KBUILD_MODNAME is not defined for files that are linked into multiple modules, and trying to change reality to match documentation would result in all sorts of trouble. E.g. options for built-in modules would be called either foo_bar.param, foo.param, or bar.param, depending on the configuration. So just change the comment. Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/Makefile.lib')
-rw-r--r--scripts/Makefile.lib6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 5d986d9adf1b..2ce2e2194f26 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -93,9 +93,9 @@ obj-dirs := $(addprefix $(obj)/,$(obj-dirs))
93# already 93# already
94# $(modname_flags) #defines KBUILD_MODNAME as the name of the module it will 94# $(modname_flags) #defines KBUILD_MODNAME as the name of the module it will
95# end up in (or would, if it gets compiled in) 95# end up in (or would, if it gets compiled in)
96# Note: It's possible that one object gets potentially linked into more 96# Note: Files that end up in two or more modules are compiled without the
97# than one module. In that case KBUILD_MODNAME will be set to foo_bar, 97# KBUILD_MODNAME definition. The reason is that any made-up name would
98# where foo and bar are the name of the modules. 98# differ in different configs.
99name-fix = $(subst $(comma),_,$(subst -,_,$1)) 99name-fix = $(subst $(comma),_,$(subst -,_,$1))
100basename_flags = -D"KBUILD_BASENAME=KBUILD_STR($(call name-fix,$(basetarget)))" 100basename_flags = -D"KBUILD_BASENAME=KBUILD_STR($(call name-fix,$(basetarget)))"
101modname_flags = $(if $(filter 1,$(words $(modname))),\ 101modname_flags = $(if $(filter 1,$(words $(modname))),\