aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel-build.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-10-23 11:26:48 +0200
committerFelix Fietkau <nbd@nbd.name>2020-11-13 13:16:37 +0100
commit5d7606562940b52206712bb4bc274ad39521c3e1 (patch)
tree2c29fa3dfea4994fa3c759d25e9aa5ef4dc379db /include/kernel-build.mk
parent92b707f61bfb9bf767b8be4e4193a23277f939bb (diff)
downloadupstream-5d7606562940b52206712bb4bc274ad39521c3e1.tar.gz
upstream-5d7606562940b52206712bb4bc274ad39521c3e1.tar.bz2
upstream-5d7606562940b52206712bb4bc274ad39521c3e1.zip
build: pass KBUILD_EXTRA_SYMBOLS with symvers files for kernel module packages
This replaces the previous (deprecated) method of collecting symvers data in $(PKG_BUILD_DIR)/Module.symvers, which does not work on newer kernels Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/kernel-build.mk')
-rw-r--r--include/kernel-build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 9dfb19ccc7..600cf1d771 100644
--- a/include/kernel-build.mk
+++ b/include/kernel-build.mk
@@ -136,6 +136,7 @@ define BuildKernel
$(LINUX_DIR)/.modules: export PKG_CONFIG_LIBDIR=$$(STAGING_DIR_HOST)/lib/pkgconfig
$(LINUX_DIR)/.modules: $(STAMP_CONFIGURED) $(LINUX_DIR)/.config FORCE
$(Kernel/CompileModules)
+ mkdir -p $(PKG_SYMVERS_DIR)
touch $$@
$(LINUX_DIR)/.image: export STAGING_PREFIX=$$(STAGING_DIR_HOST)