--- zzzz-none-000/linux-5.4.213/scripts/Makefile.modpost 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/scripts/Makefile.modpost 2024-08-14 09:02:15.000000000 +0000 @@ -76,6 +76,13 @@ # Include the module's Makefile to find KBUILD_EXTRA_SYMBOLS include $(if $(wildcard $(src)/Kbuild), $(src)/Kbuild, $(src)/Makefile) + +# modpost option for external modules +MODPOST += -e + +input-symdump := Module.symvers $(KBUILD_EXTRA_SYMBOLS) +output-symdump := $(KBUILD_EXTMOD)/Module.symvers + endif MODPOST += $(subst -i,-n,$(filter -i,$(MAKEFLAGS))) -s -T - $(wildcard vmlinux)