diff options
| author | Sebastian Kemper <sebastian_ml@gmx.net> | 2021-02-20 11:45:49 +0100 |
|---|---|---|
| committer | Sebastian Kemper <sebastian_ml@gmx.net> | 2021-04-18 12:10:58 +0200 |
| commit | 3ead65a2983649c58836d8cff2a2e120cf15c812 (patch) | |
| tree | 3708e62ece4d0629110790f86a89b7cf3becc968 | |
| parent | ec7ac009993a7c2c4318d2920273f5a3a6d9dbed (diff) | |
rtpengine: fix Module.symvers handling
This sets PKG_EXTMOD_SUBDIRS so kernel.mk can find the rtpengine
Module.symvers file.
Also, this puts KERNEL_MAKE_FLAGS into the make flags used to compile
the kernel module. 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.
While updating make flags this also adds PKG_JOBS for completeness'
sake.
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
| -rw-r--r-- | net/rtpengine/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/net/rtpengine/Makefile b/net/rtpengine/Makefile index 5d6966e..e031698 100644 --- a/net/rtpengine/Makefile +++ b/net/rtpengine/Makefile @@ -31,6 +31,10 @@ PKG_BUILD_PARALLEL:=0 PKG_BUILD_DEPENDS:=gperf/host +# With below variable set, $(PKG_SYMVERS_DIR)/rtpengine.symvers gets generated +# from kernel-module/Module.symvers. +PKG_EXTMOD_SUBDIRS:=kernel-module + include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/nls.mk @@ -239,10 +243,10 @@ define Build/Compile ifneq ($(CONFIG_PACKAGE_kmod-ipt-rtpengine),) RTPENGINE_VERSION=$(PKG_VERSION) $(MAKE) \ + $(PKG_JOBS) \ -C $(PKG_BUILD_DIR)/kernel-module \ KSRC=$(LINUX_DIR) \ - ARCH=$(LINUX_KARCH) \ - CROSS_COMPILE=$(TARGET_CROSS) + $(KERNEL_MAKE_FLAGS) endif ifneq ($(CONFIG_PACKAGE_iptables-mod-rtpengine),) @@ -262,8 +266,10 @@ endef define Build/InstallDev endef -$(eval $(call BuildPackage,rtpengine-no-transcode)) +# KernelPackage calls need to go first, otherwise hooks like +# collect_module_symvers won't get added. $(eval $(call KernelPackage,ipt-rtpengine)) +$(eval $(call BuildPackage,rtpengine-no-transcode)) $(eval $(call BuildPackage,iptables-mod-rtpengine)) $(eval $(call BuildPackage,rtpengine)) $(eval $(call BuildPackage,rtpengine-recording)) |
