LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   is there a hardware specific kernel builder tool? (http://www.linuxquestions.org/questions/slackware-14/is-there-a-hardware-specific-kernel-builder-tool-4175438339/)

gtludwig 11-22-2012 04:35 PM

is there a hardware specific kernel builder tool?
 
I used to spend hours at kernel configuration and compilation in my early Slackware life back in 2005 and 2006. After a while I just gave up re-compiling kernel. Nowadays I just use -current's huge.s kernel config mainly out of lazyness for the long process of kernel building.

I know Gentoo has the genkernel tool. Is there anything similar for use with Slackware?

ottavio 11-23-2012 07:07 AM

From slackware/slackware64-14.0/source/k/README.TXT:

Code:

Since I should document this somewhere, here's the procedure
for building the Slackware kernel package.  I do not patch the official
kernel sources, but it's not exactly a virgin either.

=============================================================
Version specific notes (if any):
=============================================================
 
For a 2.6.x kernel (much easier):

  Untar Linus' source in /usr/src.
  Make all files owned by root:root with reasonable perms.
  Install a suitable .config, or use make menuconfig, etc.

  An example would be to use one of the config files here:
  # cat config-generic-3.2.29 > /usr/src/linux-3.2.29/.config

  Then run the build programs:

  make oldconfig
  make bzImage
  make clean
  make prepare
  rm .version

That's it!  You now have a clean Slackware-configured Linux source
tree.


TobiSGD 11-23-2012 07:22 AM

From what I can see in the Gentoo documentation, genkernel does nothing more than compiling a generic kernel. It does not create a hardware specific kernel.
Slackware ships with a generic kernel by default, all you have to do is to create an initrd and modify your Lilo configuration.

mudangel 11-24-2012 06:44 AM

Code:

make localmodconfig

Didier Spaier 11-24-2012 07:33 AM

Quote:

Originally Posted by mudangel (Post 4835984)
Code:

make localmodconfig

But first ensure that you have all modules needed (in particular by your removable devices) loaded, otherwise these modules won't be compiled as they will be disabled in kernel's configuration.

AlleyTrotter 11-24-2012 12:25 PM

Let me add if you are going to use make 'localmodconfig'
Check out the script in linux source 'scripts/Kconfig/streamline_config.pl
This explains how Steven Rostedt the author uses localmodconfig
I helped Stephen test this script and on my 13.37 system I got down to just 64 modules.
Makes for fast compiles of the kernel
Just my 2 cents
John


All times are GMT -5. The time now is 07:04 PM.