[uClinux-dev] run busybox's depmod.pl separately from the kernel

Jate Sujjavanich jsujjavanich at syntech-fuelmaster.com
Fri May 28 11:14:26 EDT 2010


In the modules_install target, the current top level Makefile sets DEPMOD to user/busybox/depmod.pl. The latest 2.4/2.6 kernels try to run this perl script as depmod, but it's not compatible with the kernel's argument format.

This proposed patch disables the kernel's DEPMOD and runs the busybox script separately.


--- Makefile	11 May 2009 20:18:42 -0000	1.14
+++ Makefile	28 May 2010 14:44:57 -0000
@@ -202,7 +202,8 @@
 modules_install:
 	. $(LINUXDIR)/.config; if [ "$$CONFIG_MODULES" = "y" ]; then \
 		[ -d $(ROMFSDIR)/lib/modules ] || mkdir -p $(ROMFSDIR)/lib/modules; \
-		$(MAKEARCH_KERNEL) -C $(LINUXDIR) INSTALL_MOD_PATH=$(ROMFSDIR) DEPMOD="../user/busybox/examples/depmod.pl" modules_install; \
+		$(MAKEARCH_KERNEL) -C $(LINUXDIR) INSTALL_MOD_PATH=$(ROMFSDIR) DEPMOD="true" modules_install; \
+		user/busybox/examples/depmod.pl -b $(ROMFSDIR)/lib/modules -F $(LINUXDIR)/System.map; \
 		rm -f $(ROMFSDIR)/lib/modules/*/build; \
 		find $(ROMFSDIR)/lib/modules -type f -name "*o" | xargs -r $(STRIP) -R .comment -R .note -g; \
 	fi




More information about the uClinux-dev mailing list