mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
package/pkg-kernel-module: add BR2_MAKE_HOST_DEPENDENCY
Commit0b9efc991f("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 <avromanov@sberdevices.ru> Signed-off-by: Sergey Bobrenok <SIBobrenok@sberdevices.ru> [yann.morin.1998@free.fr: minor coding style] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit75fa573ef9) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
0bc9bf9888
commit
6489cb62b2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user