This is a copy of openSuSE Forum message #62:
S.A.K.C. - SUSE Automated Kernel Compiler - Version 2.00 - Page 7

Lightbulb Re: S.A.K.C. - SUSE Automated Kernel Compiler - Version 2.50

I am Happy to announce S.A.K.C. Version 2.50 with the Klist bash script file functions now combined with sakc. I have added a GPL statement and a help request. Here is what you are in store for:


S.A.K.C. Version 2.50 includes all of the features of the previous versions plus all text output from your Kernel Configuration, Compiling and Installation are saved to a text file for viewing right after the new Kernel is installed and later as well. As your new Kernel compiles, the minutes tick off for you to see.

Please download and enjoy S.A.K.C. Version 2.50. I welcome your comments....

If you start sakc with "sakc -h" or "sakc --help" here is what you will get:

Code:
            S.A.K.C. - SUSE Automated Kernel Compiler - Version 2.50            

Your S.A.K.C. Startup and help options are:

/home/yourname/bin/sakc -h --help :to show this help 

OR

/home/yourname/bin/sakc [kernel_file_name.bz2]

The kernel_file_name.bz2 name is optional and will be requested if not supplied.

S.A.K.C. is designed to compile a kernel source file in openSUSE.
Copyright (C) 2011 by James D. McDaniel, jmcdaniel3@austin.rr.com

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
If you start sakc with no command line options the Original klist menu will be displayed (if you do not enter a kernel source file name when you start sakc):

Code:
            S.A.K.C. - SUSE Automated Kernel Compiler - Version 2.50

 S.A.K.C. Location/Name: /home/yourname/bin/sakc

 Kernel Compile Folder: /home/yourname/Kernel
 Kernel Source  Folder: /home/yourname/Downloads

 1) linux-2.6.35.10.tar.bz2
 2) linux-2.6.35.9.tar.bz2
 3) linux-2.6.36.2.tar.bz2
 4) linux-2.6.37-rc7.tar.bz2
 5) linux-2.6.37-rc8.tar.bz2

Enter the Kernel Source File Number to Compile (q=Quit):
Copy and Paste the text of this script into a text editor and save it as the file sakc in your home area bin folder (~/bin/sakc). The script has become too large to be posted in a message here and is now included in SUSE Paste.

S.A.K.C. - SUSE Automated Kernel Compiler - Version 2.50

Open the above Link in a new Tab. Select the Download option in the top right and then select Open With Kwrite or other text editor and then save the bash script text file as ~/bin/sakc. This script must be marked executable to be used. Please run the following Terminal command:

Code:
chmod +x ~/bin/sakc
To use sakc, download the latest kernel source files from ...

The Linux Kernel Archives

Into your downloads folder. Open up a terminal session, change to your downloads folder and run the command:

Code:
sakc kernel_file_name.bz2
OR --- Open up a terminal session, Start sakc from anywhere and have it display a list of source files to select from to compile:

Code:
sakc
SAKC includes several user designated settings. Make sure to read, modify and create these files and folders as required to use sakc properly. This is just the portion of the sakc script at the top you need to read and modify as required.:

Code:
#
# Make Sure the Following Folder/File names are correct and exist!!!
#

# Where do your Keep/Download Your Kernel Source Files? This Folder Name Must Exist!

kernel_folder=~/Downloads

# Where do you want to place your Compiled Kernels? This Folder Name Must Exist!

compile_folder=~/Kernel

# Where is SAKC located and what is it called  (folder/name)
# Don't Like the name sakc?  Save it as anything you like, 
# but make sure this is the name/location that you used!

sakc_name=~/bin/sakc

#
# Kernel Compile/Configuration Log File. Do you wish to save all information for viewing later?
#

log_file=true
log_file_location=~/Documents

#
# Do You Wish SAKC to play a Sound When the Compile is complete? (true / false)
# play is included with the --> sox <-- application found in YaST
#

Play_Sound=true

wav_Player=/usr/bin/play
wav_File=/usr/share/sounds/alsa/test.wav
Normally to compile a kernel source file you should consider doing the following:

Open YaST / Software / Software Management - Select the View Button on the top left and pick Patterns. Now, you will see several Patterns listed and you want to select:

Code:
   Development 

[X] Base Development
[X] Linux Kernel Development
[X] C/C++ Development
Then Press the Accept button on the bottom right and allow these applications to install.

If you have any comments, problems or requests, please let me know.

Thank You,


Copyright © 2004-2011 All rights reserved.