mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 18:35:55 +02:00
include/kernel.mk: enhance built-in/missing modules detection when packaging kmods
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28856 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c68728567a
commit
d5d1a22de6
@ -157,8 +157,11 @@ $(call KernelPackage/$(1)/config)
|
|||||||
if [ -e $$$$$$$$mod ]; then \
|
if [ -e $$$$$$$$mod ]; then \
|
||||||
mkdir -p $$(1)/$(MODULES_SUBDIR) ; \
|
mkdir -p $$(1)/$(MODULES_SUBDIR) ; \
|
||||||
$(CP) -L $$$$$$$$mod $$(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 \
|
else \
|
||||||
echo "WARNING: module '$$$$$$$$mod' does not exist, is it built-in?" ; \
|
echo "ERROR: module '$$$$$$$$mod' is missing."; \
|
||||||
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
done;
|
done;
|
||||||
$(call ModuleAutoLoad,$(1),$$(1),$(AUTOLOAD))
|
$(call ModuleAutoLoad,$(1),$$(1),$(AUTOLOAD))
|
||||||
|
Loading…
Reference in New Issue
Block a user