1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
8 # An InstallGuide for compiling a new kernel
9 # For SUN systems running SunOS 4.x
13 my ($arch, $hostname);
14 $arch = `/bin/uname -m`;
16 $hostname = `/bin/uname -n`;
18 $hostname =~ tr/a-z/A-Z/;
20 &Print("Starting compile with command \"/etc/config $hostname\"");
21 &Print("in directory /usr/sys/$arch/conf");
24 $rc = chdir("/usr/sys/$arch/conf");
25 &ErrorMsg("Could not change to dir", "/usr/sys/$arch/conf") if (!$rc);
27 $rc = system("/etc/config $hostname");
29 &Print("Returned code $rc");
30 &ErrorMsg("Stopping compile") if ($rc);
33 &Print("Finishing compile with command \"make vmunix\"");
34 &Print("in directory /usr/sys/$arch/$hostname");
35 &Print("New kernel will be /usr/sys/$arch/$hostname/vmunix");
36 &Print("and should be installed as /vmunix");
38 $rc = chdir("/usr/sys/$arch/$hostname");
39 &ErrorMsg("Could not change to dir", "/usr/sys/$arch/$hostname") if (!$rc);
41 $rc = system("make vmunix");
43 &Print("Returned code $rc");