Skip to contentSkip to conversation

2.5.50 Up and running but

DISCUSSION Matt Young 3 participants 3 messages Dec 12, 2002 Kbuild

lore
Share & tools
lore

Matt Young

author
#0 lore raw

Boot couldn't find the module dependency file, even though I did make modules and make modules_install

Also the make config did not select the right Intel processor nor is there a mouse driver

Having fun anyway.

#1 lore raw
Quoted 2 lines · On Wed, 11 Dec 2002 22:59:10 -0800 Matt Young <[email protected]> wrote:

Boot couldn't find the module dependency file, even though I did make modules and make modules_install

Yeah, the make rule for depmod got removed in one of the module merges. This will put it back. (Untested, my init scripts run depmod so it's not a big deal for me.) Rusty, am I being stupid or is this okay now that depmod works?

Makefile +1 -0
@@ -157,7 +157,6 @@
 OBJDUMP		= $(CROSS_COMPILE)objdump
 AWK		= awk
 GENKSYMS	= /sbin/genksyms
+DEPMOD		= /sbin/depmod
 KALLSYMS	= /sbin/kallsyms
 PERL		= perl

MODFLAGS = -DMODULE
@@ -516,7 +515,7 @@
# Install modules

.PHONY: modules_install
-modules_install: _modinst_ $(patsubst %, _modinst_%, $(SUBDIRS)) +modules_install: _modinst_ $(patsubst %, _modinst_%, $(SUBDIRS)) _modinst_post

.PHONY: _modinst_
_modinst_:
@@ -524,20 +523,6 @@
@rm -f $(MODLIB)/build
@mkdir -p $(MODLIB)/kernel
@ln -s $(TOPDIR) $(MODLIB)/build
+
+# If System.map exists, run depmod. This deliberately does not have a +# dependency on System.map since that would run the dependency tree on +# vmlinux. This depmod is only for convenience to give the initial +# boot a modules.dep even before / is mounted read-write. However the +# boot script depmod is the master version.
+ifeq "$(strip $(INSTALL_MOD_PATH))" ""
+depmod_opts :=
+else
+depmod_opts := -b $(INSTALL_MOD_PATH) -r
+endif
+.PHONY: _modinst_post
+_modinst_post:
+ if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi

.PHONY: $(patsubst %, _modinst_%, $(SUBDIRS))
$(patsubst %, _modinst_%, $(SUBDIRS)) :
.

Quoted 1 line

Also the make config did not select the right Intel processor

???

Quoted 1 line

nor is there a mouse driver

What kind of mouse? What config option?

Matt

#2 lore raw

In message <[email protected]> you write:

Quoted 4 lines
Quoted 1 line · On Wed, 11 Dec 2002 22:59:10 -0800 Matt Young <[email protected]> wrote:

Boot couldn't find the module dependency file, even though I did make modul

es

Quoted 4 lines
Quoted 1 line

and make modules_install

Yeah, the make rule for depmod got removed in one of the module merges. This will put it back. (Untested, my init scripts run depmod so it's not a big dea

l

Quoted 2 lines

for me.) Rusty, am I being stupid or is this okay now that depmod works?

Yep, that's fine: the original modprobe replacement didn't need modules.dep, but Adam Richter has 1300 modules and he complained about the speed (and provided the patch to modprobe to use modules.dep, so what could I say?)

Hopefully when Linus comes back he'll take my patches, Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.