LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   making 2.6 kernel packages (https://www.linuxquestions.org/questions/slackware-14/making-2-6-kernel-packages-313089/)

xushi 04-14-2005 02:51 AM

making 2.6 kernel packages
 
When i compile my kernel, i usually compile it with

Code:

make
make modules_install
make install

Is it possible to just use checkinstall to create packages and save me the trouble of recompiling later?

kind of like

Code:

make
checkinstall make modules_install
checkinstall


Bruce Hill 04-14-2005 03:15 AM

Don't use checkinstall for your kernels, and if you're on 2.6.x you only need:
make xconfig (or your choice)
make
make modules_install

Build it somewhere under ~/ as Linus says in the ./linux-x.x.x/README

KMcD 04-14-2005 03:20 AM

xushi, your question was asked before. Have a look at this thread.

xushi 04-14-2005 04:46 AM

Quote:

Don't use checkinstall for your kernels, and if you're on 2.6.x
How, then, can i make a kernel package, similar to Pat's 2.4.29 tgz packages? I have 2 slow machines i need to compile 2.6 on them, and it would literally take days to set it up properly.

I'd rather make a package of my 2.6, install it there, and just enable/disable the differences.

Quote:

xushi, your question was asked before.
Sorry about that, didn't see it.

I think i'll give checkinstall a try, and post the results. I don't see any real reason for it not to work.

Thanks again

KMcD 04-14-2005 05:26 AM

Quote:

Originally posted by xushi
I have 2 slow machines i need to compile 2.6 on them, and it would literally take days to set it up properly.
are this machines networked together by any chance. if so you could use distcc to reduce compile time. Type
Code:

man distcc
for instructions on how to do this.

shilo 04-14-2005 05:28 PM

There is a README that PV provides on all the mirrors. It contains stuff for 2.4 and 2.6 kernels. I'll try and post with the 2.4 stuff hacked out.

Quote:

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.
make oldconfig > /dev/null
make bzImage
make clean
rm .version

OK, that's it. Now just pack up /usr/src/linux-2.x.x, the
/usr/src/linux symlink, and /install/slack-desc.
You can find the method for making a Slackware package in the other SlackBuild scripts.

Bruce Hill 04-14-2005 06:18 PM

SlackBuild is the way to go to make your own Slackpacks.


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