Commit 16768877 authored by Doug Kehn's avatar Doug Kehn Committed by Peter Korsgaard
Browse files

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: default avatarDoug Kehn <rdkehn@yahoo.com>
Reviewed-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 20a36cd8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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