From 2e95747ab9b6b0bf97007ce2733321c90462249a Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Thu, 3 Sep 2015 14:54:20 +0200 Subject: [PATCH] core/pkg-kernel-module: drop now-useless check for CONFIG_MODULES MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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" Cc: Peter Korsgaard Cc: Thomas Petazzoni Cc: Noé Rubinstein Cc: Jan Viktorin Reviewed-by: Arnout Vandecappelle (Essensium/Mind) Signed-off-by: Peter Korsgaard --- package/pkg-kernel-module.mk | 4 ---- 1 file changed, 4 deletions(-) diff --git a/package/pkg-kernel-module.mk b/package/pkg-kernel-module.mk index f6730b882d..200c91dfef 100644 --- a/package/pkg-kernel-module.mk +++ b/package/pkg-kernel-module.mk @@ -65,10 +65,6 @@ $(2)_MODULE_SUBDIRS ?= . # includes and other support files (Booo!) define $(2)_KERNEL_MODULES_BUILD @$$(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), \ $$(LINUX_MAKE_ENV) $$($$(PKG)_MAKE) \ -C $$(LINUX_DIR) \ -- 2.30.2