mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 06:36:34 +00:00
core/pkg-kernel-module: drop now-useless check for CONFIG_MODULES
This reverts commit 8df95d9 (pkg-kernel-module: die if kernel module support is disabled). Now that we force-enable support for modules in the kernel config, we need not check it. Besides, the check was broken, because it did not use $$ to dereference LINUX_DIR, thus leading to systematic build failures when a package using the kernel-module infra was enabled. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Peter Korsgaard <jacmet@uclibc.org> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Noé Rubinstein <noe.rubinstein@gmail.com> Cc: Jan Viktorin <viktorin@rehivetech.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
b7c32c98bc
commit
2e95747ab9
@ -65,10 +65,6 @@ $(2)_MODULE_SUBDIRS ?= .
|
|||||||
# includes and other support files (Booo!)
|
# includes and other support files (Booo!)
|
||||||
define $(2)_KERNEL_MODULES_BUILD
|
define $(2)_KERNEL_MODULES_BUILD
|
||||||
@$$(call MESSAGE,"Building kernel module(s)")
|
@$$(call MESSAGE,"Building kernel module(s)")
|
||||||
@if ! grep -Fqx 'CONFIG_MODULES=y' $(LINUX_DIR)/.config; then \
|
|
||||||
echo "ERROR: Kernel does not support loadable modules"; \
|
|
||||||
exit 1; \
|
|
||||||
fi
|
|
||||||
$$(foreach d,$$($(2)_MODULE_SUBDIRS), \
|
$$(foreach d,$$($(2)_MODULE_SUBDIRS), \
|
||||||
$$(LINUX_MAKE_ENV) $$($$(PKG)_MAKE) \
|
$$(LINUX_MAKE_ENV) $$($$(PKG)_MAKE) \
|
||||||
-C $$(LINUX_DIR) \
|
-C $$(LINUX_DIR) \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user