From 7de2766a02a93360a52626d2e477a9ba2ad40875 Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Tue, 8 Nov 2011 14:00:36 +0000 Subject: [PATCH] include/kernel.mk: enhance built-in/missing modules detection when packaging kmods SVN-Revision: 28856 --- include/kernel.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/kernel.mk b/include/kernel.mk index 0df0337c49..1591c36135 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -157,8 +157,11 @@ $(call KernelPackage/$(1)/config) if [ -e $$$$$$$$mod ]; then \ mkdir -p $$(1)/$(MODULES_SUBDIR) ; \ $(CP) -L $$$$$$$$mod $$(1)/$(MODULES_SUBDIR)/ ; \ + elif grep -q "$$$$$$$${mod##$(LINUX_DIR)/}" "$(LINUX_DIR)/modules.builtin"; then \ + echo "NOTICE: module '$$$$$$$$mod' is built-in."; \ else \ - echo "WARNING: module '$$$$$$$$mod' does not exist, is it built-in?" ; \ + echo "ERROR: module '$$$$$$$$mod' is missing."; \ + exit 1; \ fi; \ done; $(call ModuleAutoLoad,$(1),$$(1),$(AUTOLOAD)) -- 2.25.1