Skip to contentSkip to conversation

Why linux26-modules before linux26

Buildroot Brian Beattie 4 participants 4 messages Aug 2, 2008 – Aug 4, 2008

lore
Share & tools
lore
#0 lore raw

I have a kernel that does not want to compile the modules before the rest of the kernel. I've worked around that, but it does raise a question that maybe somebody knows the answer to, why are the makefiles set to compile the kernel-modules so early compared to the rest of the kernel?

Signature · 6 lines
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting a bad thing?

Brian Beattie   LFS12947 | "Honor isn't about making the right choices.
beattie at beattie-home.net | It's about dealing with the consequences."
www.beattie-home.net     | -- Midori Koto
#1 lore raw
Quoted 5 lines · Brian Beattie

I have a kernel that does not want to compile the modules before the rest of the kernel. I've worked around that, but it does raise a question that maybe somebody knows the answer to, why are the makefiles set to compile the kernel-modules so early compared to the rest of the kernel?

This was added by Steven, IIRC. I don't see a reason why the modules are built before the kernel.

Steven, can you please explain?

#2 lore raw
Quoted 11 lines · Bernhard Fischer
Quoted 5 lines · Brian Beattie

I have a kernel that does not want to compile the modules before the rest of the kernel. I've worked around that, but it does raise a question that maybe somebody knows the answer to, why are the makefiles set to compile the kernel-modules so early compared to the rest of the kernel?

This was added by Steven, IIRC. I don't see a reason why the modules are built before the kernel.

Steven, can you please explain?

why should it make a difference? shouldn't kernel modules be buildable independently from the kernel proper? AFAIK, all that's required of the kernel tree is to do the equivalent of "make modules_prepare", no?

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
Have classroom, will lecture.

http://crashcourse.ca Waterloo, Ontario, CANADA
========================================================================

#3 lore raw
In reply to Bernhard Fischer
Quoted 7 lines · Brian Beattie
Quoted 5 lines

I have a kernel that does not want to compile the modules before the rest of the kernel. I've worked around that, but it does raise a question that maybe somebody knows the answer to, why are the makefiles set to compile the kernel-modules so early compared to the rest of the kernel?

Quoted 5 lines

This was added by Steven, IIRC. I don't see a reason why the modules are built before the kernel.

Steven, can you please explain?

Originally when I added that, the modules were getting built and installed after the root file system image had been created. Thus, no modules in the final image. If someone has a better method of doing this, please feel free to submit a patch.

-Steve