Commit a8fae364 authored by Kai Germaschewski's avatar Kai Germaschewski

kbuild: Fix KBUILD_MODNAME

The KBUILD_MODNAME patch which got included lately dated back a couple
of months ago and thus got the following wrong:
o multi-part components which don't live in the local subdir
o using foo-y instead of foo-objs
parent 37256d28
......@@ -130,8 +130,8 @@ c_flags = -Wp,-MD,$(depfile) $(CFLAGS) $(NOSTDINC_FLAGS) \
$(basename_flags) $(modname_flags) $(export_flags)
# Finds the multi-part object the current object will be linked into
modname-multi = $(subst $(space),_,$(strip $(foreach m,$(multi-used),\
$(if $(filter $(*F).o,$($(m:.o=-objs))),$(m:.o=)))))
modname-multi = $(subst $(space),_,$(sort $(foreach m,$(multi-used),\
$(if $(filter $(subst $(obj)/,,$*.o), $($(m:.o=-objs)) $($(m:.o=-y))),$(m:.o=)))))
# Shipped files
# ===========================================================================
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment