PDA

View Full Version : Auto Custom Kernel Compile


HomeTurf
August 9th, 2010, 10:08
Hello, was showing a friend how to make a custom kernel when I thought of something...

I was wondering anyone knew of a script that creates a custom kernel configuration file for the machine its currently on.

Yes you can do it by checking out your hardware and creating a new MYKERNEL file and compiling it just as the handbook tells you too.
I was thinking more of a script that goes through dmesg and pulls out all the devices and options that the kernel actually used to boot the system. Actually come to think of it, is there a list like this that the system creates and stores somewhere on the file system by chance?
In Summary: say you got computers of all types sizes, shapes, colors, and personalities,
(yes that was a joke) does anyone know of a script that creates a new GENERIC file for each computer.
I just thought it would be cool to make a script that has the bare minimum requirement to get the current configuration of the computer up and running. That way people who dont understand the build your custom kernel part of the handbook can still get their own custom kernel.
In the meantime i think ill start writing a script to do just this... but why reinvent the wheel if its already out there

thanks guys

SirDice
August 9th, 2010, 10:12
does anyone know of a script that creates a new GENERIC file for each computer.
You should NOT edit GENERIC. Make a copy of it, with another name.

HomeTurf
August 9th, 2010, 10:22
You should NOT edit GENERIC. Make a copy of it, with another name.

Oops, should of bothered to proof read :r
in-case it was not obvious i meant MYKERNEL
thank you

trasz@
August 10th, 2010, 10:32
Just for the record, there is a tool in NetBSD called "adjustkernel" that does what you describe - only for NetBSD, of course, not FreeBSD.