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 <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>
This commit is contained in:
parent
e0cecc326a
commit
75fa573ef9
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user