Important alert: (current site time 7/15/2013 9:06:34 PM EDT)
 

VB icon

easy kernel compiler v1.0

Email
Submitted on: 8/25/2003 11:20:28 PM
By: phillip mcelraft  
Level: Beginner
User Rating: Unrated
Compatibility: 5.0 (all versions)
Views: 8270
author picture
(About the author)
 
     to make linux kernel compiling easier i hope
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
				
=**************************************
= Name: easy kernel compiler v1.0
= Description:to make linux kernel compiling easier i hope
= By: phillip mcelraft
=
=This code is copyrighted and has= limited warranties.Please see http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=531&lngWId=6=for details.=**************************************

#!/usr/bin/perl
print"this is easy kernel compile v1.0\n";
print"_____________________________________\n";
print"--EASY KERNEL COMPILER VERSION 1.0 --\n";
print"-----------------BY-------------------\n";
print"_________P__H_________I__L____________\n";
print"making new directory for you new kernel\n";
system('mkdir /home/src');
print"bringing up the kernel website..........\n";
system('/usr/bin/mozilla http:www.kernel.org\n";
print"pick your kernel\n";
print"changing to your source directory\n";
system(' cd /home/kern/ && ls *.*');
print"enter in your kernel file name:\n";
$SELECT=<STDIN>;
print"sending kernel to /usr/src\n";
system('mv $SELECT /usr/src/');
print"changing to source directory\n";
system('cd /usr/src/");
print"now in";
system('pwd');
print"listing files.....\n";
system('ls *.*');
print"moving your old kernel\n";
system('mv linux linux.old');
print"enter in your linux kernel file name\n";
$SELECT=<STDIN>;
print"uncompressing kernel";
system('tar zxvf $SELECT');
print"configuring your kernel....this may take a while\n";
system('make config');
print"configuration ended\n";
print"making dependencies.......may also take a while\n";
system('make dep');
print"now building kernel.........may as well get some mountain dew dude, this will take a while\n";
system('make zImage');
system('emacs /etc/lilo.conf');
print"enter in this: image=/boot/vmlinux -(location of kernel)\n";
print"then this: label=linux -this is the name of your os\n";
print"now type in root=/dev/hda1 or what ever the root partition is\n";
print"then vga=ask- this will ask you if you wish to have vga mode\n";
 
print"now the final step....\n";
system('/sbin/lilo');


Other 3 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Beginner category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.