include/kernel.mk: enhance built-in/missing modules detection when packaging kmods

SVN-Revision: 28856
lede-17.01
Nicolas Thill 2011-11-08 14:00:36 +00:00
parent 9906717bfb
commit 7de2766a02
1 changed files with 4 additions and 1 deletions

View 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))