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

David McCullough david_mccullough at mcafee.com
Mon May 31 00:06:48 EDT 2010


Jivin Jate Sujjavanich lays it down ...
> 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.

Are you having problems with a kernel included with the uClinux-dist or one
that you have plgged in ?

It's just that we don't seem to be seeing this error here.

Can you elaborate of what the failure is or give us an error log ?

Thanks,
Davidm

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

-- 
David McCullough,      david_mccullough at mcafee.com,  Ph:+61 734352815
McAfee - SnapGear      http://www.mcafee.com         http://www.uCdot.org



More information about the uClinux-dev mailing list