Commit Graph

16 Commits

Author SHA1 Message Date
Sonic Zhang
880eec8f33 depmod.pl: output correct dep format according to kernel version
All kernel version except for 2.4 has the same dep output format.
(Possibly related to era of kernels 3.0+)

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-09-09 18:58:08 +02:00
Mike Frysinger
8ce1ad3097 depmod.pl: add recursive sanity check
If modules contain circular dependencies, the depmod script will follow
the circle forever.  So add a simple sanity check to abort rather than
chew up the CPU.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-11-16 07:15:00 -05:00
Mike Frysinger
4c8a721b45 depmod.pl: recurse through module dependencies
The previous fix up loaded dependencies two deep, but really that was an
incomplete fix as we need to load dependencies all the way down.  So change
the code to run recursively through all dependencies.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-07-09 00:28:48 -04:00
Mike Frysinger
2b6497ba84 depmod.pl: updates and fixes galore
The helper script needs updating to match latest busybox modprobe behavior
in that all dependencies need to be listed, not just the immediate ones.
Along the way, fix symbol prefixed ports, optimize the output, and add
some more depmod compatible options.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-05-05 20:14:12 -04:00
Mike Frysinger
dbd18f639c exported symbols may be weak, so allow symbols marked as W 2007-11-18 06:13:58 +00:00
Mike Frysinger
d611cccd81 add support for --symbol-prefix/-P 2007-07-13 04:37:12 +00:00
Denis Vlasenko
9213a9e0f2 whitespace cleanup 2006-09-17 16:28:10 +00:00
"Robert P. J. Day"
63fc1a9e08 Standardize on the vi editing directives being on the first line. 2006-07-02 19:47:05 +00:00
Mike Frysinger
bc6584977a remove cvs $Id tag 2006-06-07 16:31:05 +00:00
Rob Landley
9a990aaba8 Patch from Atsushi Nemoto:
This patch make depmod.pl more robust in cross environment.  If native
nm did not recognize target's object, you can override it with NM
environment variable.
2006-06-02 21:30:40 +00:00
Mike Frysinger
fa6c4844b2 fix spelling mistakes 2006-05-26 01:48:17 +00:00
Rob Landley
d049812571 Patch from Stuart Hughes upgrading depmod.pl 2006-03-21 16:35:50 +00:00
Eric Andersen
c7bda1ce65 Remove trailing whitespace. Update copyright to include 2004. 2004-03-15 08:29:22 +00:00
Eric Andersen
cb81e6484d Update a bunch of docs. Run a script to update my email addr. 2003-07-14 21:21:08 +00:00
"Steven J. Hill"
adb058b0de Fixed the script. It always put output to 'stdout' and never to
the 'modules.dep' file.
2002-10-08 21:33:51 +00:00
Eric Andersen
c126f8ffb6 This depmod script will create a modules.dep file, just like the depmod
binary from modutils.  This one, however, can be run on the _host_
system (need not be run on the target) and is fully cross platform, so
even if your target is ARM or powerpc or whatever, this will still
work.  When used to support the new modprobe applet, this allows
busybox to fully supplant modutils for architectures supported by
busybox insmod.
 -Erik
2001-07-30 19:32:03 +00:00