1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 17:15:00 +02:00

include/kernel.mk: don't check for modules.builtin on 2.6.32-

modules.builtin is only available in 2.6.33 and later, so fall back to
assuming it's built-in for older kernels.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29018 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
jogo 2011-11-13 11:45:09 +00:00
parent 3095cc8090
commit 0620a234d1

View File

@ -157,12 +157,16 @@ $(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 \ elif [ -e "$(LINUX_DIR)/modules.builtin" ]; then \
if grep -q "$$$$$$$${mod##$(LINUX_DIR)/}" "$(LINUX_DIR)/modules.builtin"; then \
echo "NOTICE: module '$$$$$$$$mod' is built-in."; \ echo "NOTICE: module '$$$$$$$$mod' is built-in."; \
else \ else \
echo "ERROR: module '$$$$$$$$mod' is missing."; \ echo "ERROR: module '$$$$$$$$mod' is missing."; \
exit 1; \ exit 1; \
fi; \ fi; \
else \
echo "WARNING: module '$$$$$$$$mod' missing and modules.builtin not available, assuming built-in."; \
fi; \
done; done;
$(call ModuleAutoLoad,$(1),$$(1),$(AUTOLOAD)) $(call ModuleAutoLoad,$(1),$$(1),$(AUTOLOAD))
$(call KernelPackage/$(1)/install,$$(1)) $(call KernelPackage/$(1)/install,$$(1))