From d2d32dcd5f4bb2d028452419fb2e014b7b31a37a Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sun, 27 Dec 2020 21:59:28 +0100 Subject: kernel: lantiq: fix Module.symvers handling If an external module uses exported symbols from another external module, Kbuild needs to have full knowledge of all symbols to avoid spitting out warnings about undefined symbols. Use PKG_EXTMOD_SUBDIRS to point to the build directory which contains the Module.symvers. Pass KERNEL_MAKE_FLAGS to the external module build, to inject KBUILD_EXTRA_SYMBOLS. KBUILD_EXTRA_SYMBOLS holds a space separated list of Module.symvers, which list all exported symbols. Signed-off-by: Mathias Kresin --- package/kernel/lantiq/ltq-tapi/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'package/kernel/lantiq/ltq-tapi') diff --git a/package/kernel/lantiq/ltq-tapi/Makefile b/package/kernel/lantiq/ltq-tapi/Makefile index a04f7d38e5..77728644f6 100644 --- a/package/kernel/lantiq/ltq-tapi/Makefile +++ b/package/kernel/lantiq/ltq-tapi/Makefile @@ -19,6 +19,7 @@ PKG_MAINTAINER:=John Crispin PKG_CHECK_FORMAT_SECURITY:=0 PKG_FIXUP:=autoreconf +PKG_EXTMOD_SUBDIRS:=src include $(INCLUDE_DIR)/package.mk @@ -39,6 +40,9 @@ define KernelPackage/ltq-tapi/config source "$(SOURCE)/Config.in" endef +MAKE_FLAGS += \ + $(KERNEL_MAKE_FLAGS) + CONFIGURE_ARGS += \ ARCH=$(LINUX_KARCH) \ --enable-linux-26 \ -- cgit v1.2.3