···43include include/config/auto.conf44include scripts/Kbuild.include45046ifneq ($(KBUILD_EXTMOD),)0000047# Include the module's Makefile to find KBUILD_EXTRA_SYMBOLS48include $(if $(wildcard $(KBUILD_EXTMOD)/Kbuild), \49 $(KBUILD_EXTMOD)/Kbuild, $(KBUILD_EXTMOD)/Makefile)
···43include include/config/auto.conf44include scripts/Kbuild.include4546+# When building external modules load the Kbuild file to retreive EXTRA_SYMBOLS info47ifneq ($(KBUILD_EXTMOD),)48+49+# set src + obj - they may be used when building the .mod.c file50+obj := $(KBUILD_EXTMOD)51+src := $(obj)52+53# Include the module's Makefile to find KBUILD_EXTRA_SYMBOLS54include $(if $(wildcard $(KBUILD_EXTMOD)/Kbuild), \55 $(KBUILD_EXTMOD)/Kbuild, $(KBUILD_EXTMOD)/Makefile)