We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 00e98a9 + 96d97f2 commit b09916eCopy full SHA for b09916e
scripts/Makefile.modpost
@@ -43,7 +43,13 @@ _modpost: __modpost
43
include include/config/auto.conf
44
include scripts/Kbuild.include
45
46
+# When building external modules load the Kbuild file to retreive EXTRA_SYMBOLS info
47
ifneq ($(KBUILD_EXTMOD),)
48
+
49
+# set src + obj - they may be used when building the .mod.c file
50
+obj := $(KBUILD_EXTMOD)
51
+src := $(obj)
52
53
# Include the module's Makefile to find KBUILD_EXTRA_SYMBOLS
54
include $(if $(wildcard $(KBUILD_EXTMOD)/Kbuild), \
55
$(KBUILD_EXTMOD)/Kbuild, $(KBUILD_EXTMOD)/Makefile)
0 commit comments