From 16768877e324f6e3e1291613ae5db9af0da5a2bf Mon Sep 17 00:00:00 2001 From: Doug Kehn Date: Tue, 1 Sep 2015 20:37:53 -0500 Subject: [PATCH] package/pkg-kernel-module.mk: module build fails Observed the following when building cryptodev-linux: >>> cryptodev-linux 1.7 Building kernel module(s) grep: /.config: No such file or directory ERROR: Kernel does not support loadable modules Fix LINUX_DIR reference when determining if kernel configuration supports loadable modules. Signed-off-by: Doug Kehn Reviewed-by: Thomas Petazzoni Acked-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- package/pkg-kernel-module.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/pkg-kernel-module.mk b/package/pkg-kernel-module.mk index 6fb7704e32..7628352d9c 100644 --- a/package/pkg-kernel-module.mk +++ b/package/pkg-kernel-module.mk @@ -60,7 +60,7 @@ $(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 \ + @if ! grep -Fqx 'CONFIG_MODULES=y' $$(LINUX_DIR)/.config; then \ echo "ERROR: Kernel does not support loadable modules"; \ exit 1; \ fi