[PATCH] depmod -r dummy

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Feb 17 13:08:05 UTC 2009


On Tue, Feb 17, 2009 at 12:00:12PM +0100, Natanael Copa wrote:
>Hi,
>
>The attatched patch makes it possible to run 'make modules_install' with
>busybox depmod.
>
>The linux kernel makefile runs depmod -r which is a compatibility option
>that does nothing.

Did module-init-tools ever support any depmod -r ?
Perhaps fix the kernel instead since it needs (IIRC) module-init-tools anyway
which supposedly never did anything real with -r?

>--- busybox-1.13.2/modutils/depmod.c.orig	2009-02-12 12:53:11.000000000 +0000
>+++ busybox-1.13.2/modutils/depmod.c	2009-02-12 12:57:29.000000000 +0000
>@@ -37,6 +37,7 @@
> 	ARG_e = (1<<3), /* with -F, print unresolved symbols */
> 	ARG_F = (1<<4), /* System.map that contains the symbols */
> 	ARG_n = (1<<5)  /* dry-run, print to stdout only */
>+	ARG_r = (1<<6)  /* Compat dummy. Linux Makefile uses it */
> };
> 
> static int FAST_FUNC parse_module(const char *fname, struct stat *sb,
>@@ -138,7 +139,7 @@
> 	struct utsname uts;
> 	int tmp;
> 
>-	getopt32(argv, "aAb:eF:n", &moddir_base, NULL);
>+	getopt32(argv, "aAb:eF:nr", &moddir_base, NULL);
> 	argv += optind;
> 
> 	/* goto modules location */

>_______________________________________________
>busybox mailing list
>busybox at busybox.net
>http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list