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
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: