From: Sebastian Kemper Date: Sat, 20 Feb 2021 11:04:12 +0000 (+0100) Subject: dahdi-linux: fix Module.symvers handling X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=89a23c43407956f93f24bf07920363cedbf5b00c;p=feed%2Ftelephony.git dahdi-linux: fix Module.symvers handling This sets PKG_EXTMOD_SUBDIRS so kernel.mk can find the DAHDI Module.symvers file. Also, this puts KERNEL_MAKE_FLAGS into the make flags. This way Module.symvers files of other modules are made available, plus there is no need anymore to specify ARCH and CROSS_COMPILE, as KERNEL_MAKE_FLAGS already takes care of that. TARGET_CONFIGURE_OPTS is dropped because this seems out of place (configure vs. compile). Signed-off-by: Sebastian Kemper --- diff --git a/libs/dahdi-linux/Makefile b/libs/dahdi-linux/Makefile index 1a6be89..d8956da 100644 --- a/libs/dahdi-linux/Makefile +++ b/libs/dahdi-linux/Makefile @@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=dahdi-linux PKG_VERSION:=3.1.0 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/dahdi-linux/releases @@ -20,6 +20,10 @@ PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:=LICENSE PKG_MAINTAINER:=Vittorio Gambaletta +# With below variable set, $(PKG_SYMVERS_DIR)/dahdi-linux.symvers gets +# generated from drivers/dahdi/Module.symvers. +PKG_EXTMOD_SUBDIRS:=drivers/dahdi + include $(INCLUDE_DIR)/package.mk define KernelPackage/dahdi @@ -86,10 +90,8 @@ define Build/Prepare endef define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - ARCH="$(LINUX_KARCH)" \ - $(TARGET_CONFIGURE_OPTS) \ - CROSS_COMPILE="$(TARGET_CROSS)" \ + $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ + $(KERNEL_MAKE_FLAGS) \ KSRC="$(LINUX_DIR)" endef