From 75fa573ef9336b57d1cfb86bfcaaed4872f64ac6 Mon Sep 17 00:00:00 2001 From: Alexey Romanov Date: Tue, 24 Oct 2023 18:30:23 +0300 Subject: [PATCH] package/pkg-kernel-module: add BR2_MAKE_HOST_DEPENDENCY Commit 0b9efc991f ("linux: use BR2_MAKE") switched LINUX_MAKE to $(BR2_MAKE) to avoid build issue with kernel version >= 6.2 and GNU Make version < 3.82. However, the same issue is actual for kernel modules as well. Using $(BR2_MAKE) should guarantee a consistent behavior between kernel and kernel-modules builds. Signed-off-by: Alexey Romanov Signed-off-by: Sergey Bobrenok [yann.morin.1998@free.fr: minor coding style] Signed-off-by: Yann E. MORIN --- package/pkg-kernel-module.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/pkg-kernel-module.mk b/package/pkg-kernel-module.mk index fcd6b8bc29..4f64a73f11 100644 --- a/package/pkg-kernel-module.mk +++ b/package/pkg-kernel-module.mk @@ -50,11 +50,13 @@ LINUX_NEEDS_MODULES = y endif # The kernel must be built first. -$(2)_DEPENDENCIES += linux +$(2)_DEPENDENCIES += \ + linux \ + $$(BR2_MAKE_HOST_DEPENDENCY) # This is only defined in some infrastructures (e.g. autotools, cmake), # but not in others (e.g. generic). So define it here as well. -$(2)_MAKE ?= $$(MAKE) +$(2)_MAKE ?= $$(BR2_MAKE) # If not specified, consider the source of the kernel module to be at # the root of the package.