Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bb0571b authored by Michal Marek's avatar Michal Marek
Browse files

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: default avatarMichal Marek <mmarek@suse.cz>
parent 603d8c0a
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -93,9 +93,9 @@ obj-dirs := $(addprefix $(obj)/,$(obj-dirs))
# already
# already
# $(modname_flags) #defines KBUILD_MODNAME as the name of the module it will 
# $(modname_flags) #defines KBUILD_MODNAME as the name of the module it will 
# end up in (or would, if it gets compiled in)
# end up in (or would, if it gets compiled in)
# Note: It's possible that one object gets potentially linked into more
# Note: Files that end up in two or more modules are compiled without the
#       than one module. In that case KBUILD_MODNAME will be set to foo_bar,
#       KBUILD_MODNAME definition. The reason is that any made-up name would
#       where foo and bar are the name of the modules.
#       differ in different configs.
name-fix = $(subst $(comma),_,$(subst -,_,$1))
name-fix = $(subst $(comma),_,$(subst -,_,$1))
basename_flags = -D"KBUILD_BASENAME=KBUILD_STR($(call name-fix,$(basetarget)))"
basename_flags = -D"KBUILD_BASENAME=KBUILD_STR($(call name-fix,$(basetarget)))"
modname_flags  = $(if $(filter 1,$(words $(modname))),\
modname_flags  = $(if $(filter 1,$(words $(modname))),\