include/kernel.mk: enhance built-in/missing modules detection when packaging kmods
authorNicolas Thill <nico@openwrt.org>
Tue, 8 Nov 2011 14:00:36 +0000 (14:00 +0000)
committerNicolas Thill <nico@openwrt.org>
Tue, 8 Nov 2011 14:00:36 +0000 (14:00 +0000)
SVN-Revision: 28856

include/kernel.mk

index 0df0337c493d3df08c69bd886c760ea0bc83471e..1591c361354f299d01840a9eb1f3fd187590872c 100644 (file)
@@ -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))