Sort modules according to modules.order
commit8f769bfb5d66f147a382ad5281779872c89ee0dc
authorScott James Remnant <scott@ubuntu.com>
Fri, 23 Jan 2009 19:45:26 +0000 (23 19:45 +0000)
committerScott James Remnant <scott@ubuntu.com>
Fri, 23 Jan 2009 19:45:26 +0000 (23 19:45 +0000)
treeb632662da0d9d67ebb13103225eb9969134411fd
parent7374c51939d770e88c6248ed0db9f932d0b353ea
Sort modules according to modules.order

Patch from SuSE by Tejun Heo <htejun@gmail.com>

Kbuild now generates and installs modules.order along with modules.
This patch updates depmod such that it sorts module list according to
the file before generating output files.  Modules which aren't on
modules.order are put after modules which are ordered by
modules.order.

This makes modprobe to prioritize modules according to kernel
Makefile's just as built-in modules are link-ordered by them.

Signed-off-by: Scott James Remnant <scott@ubuntu.com>
depmod.c