Skip to content

Commit cb48199

Browse files
committed
kbuild: modpost: handle KBUILD_EXTRA_SYMBOLS only for external modules
KBUILD_EXTRA_SYMBOLS makes sense only when building external modules. Moreover, the modpost sets 'external_module' if the -e option is given. I replaced $(patsubst %, -e %,...) with simpler $(addprefix -e,...) while I was here. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 944cfe9 commit cb48199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Makefile.modpost

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ modpost = scripts/mod/modpost \
7878
$(if $(CONFIG_MODULE_SRCVERSION_ALL),-a,) \
7979
$(if $(KBUILD_EXTMOD),-i,-o) $(kernelsymfile) \
8080
$(if $(KBUILD_EXTMOD),-I $(modulesymfile)) \
81-
$(if $(KBUILD_EXTRA_SYMBOLS), $(patsubst %, -e %,$(KBUILD_EXTRA_SYMBOLS))) \
81+
$(if $(KBUILD_EXTMOD),$(addprefix -e ,$(KBUILD_EXTRA_SYMBOLS))) \
8282
$(if $(KBUILD_EXTMOD),-o $(modulesymfile)) \
8383
$(if $(CONFIG_SECTION_MISMATCH_WARN_ONLY),,-E) \
8484
$(if $(KBUILD_MODPOST_WARN),-w)

0 commit comments

Comments
 (0)