2010/11/23 Randy Dunlap <randy.dunlap@oracle.com>:
This is what I get from "make" after "make randconfig".
No.
I'm using script below to build kernel - nothing really unusual. Log
and config for this failed build are attached to previous email
import os, sys, time
from hexer_io import *
class BuildKernel:
def __init__(self, options, config):
self.options = options
self.config = config
self.timestamp = ""
def generate_timestamp(self):
self.timestamp = time.strftime("%y-%m-%d-%H-%M-%S",
time.gmtime())
print("timestamp = " + self.timestamp)
def check_dirs(self):
if not os.path.isdir(self.config["KERNEL_DIR"]):
print("KERNEL_DIR=" +
self.config["KERNEL_DIR"] + " doesn't exist")
sys.exit(1)
if not os.path.isdir(self.config["KERNEL_OBJ_DIR"]):
print("KERNEL_OBJ_DIR=" +
self.config["KERNEL_OBJ_DIR"] + " doesn't exist")
sys.exit(1)
if not os.path.isdir(self.config["HEXER_DIR"] + "/builds/"):
os.system("mkdir " + self.config["HEXER_DIR"]
+ "/builds/")
def kernel_make_mrproper(self):
print("make mrproper")
os.system("cd " + self.config["KERNEL_DIR"] + " &&
LANG=\"C\" make mrproper &> /dev/null")
os.system("cd " + self.config["KERNEL_DIR"] + " &&
LANG=\"C\" make O=" + self.config["KERNEL_OBJ_DIR"] + " mrproper &>
/dev/null")
def kernel_make_clean(self):
print("make clean")
os.system("cd " + self.config["KERNEL_DIR"] + " &&
LANG=\"C\" make O=" + self.config["KERNEL_OBJ_DIR"] + " clean &>
/dev/null")
def kernel_make_randconfig(self):
print("make randconfig")
os.system("cd " + self.config["KERNEL_DIR"] + " &&
LANG=\"C\" make O=" + self.config["KERNEL_OBJ_DIR"] + " randconfig &>
/dev/null")
os.system("cp " + self.config["KERNEL_OBJ_DIR"] +
"/.config " + self.config["HEXER_DIR"] + "/builds/" + self.timestamp +
"-config")
def kernel_make(self):
print("make")
os.system("cd " + self.config["KERNEL_DIR"] + " &&
LANG=\"C\" make O=" + self.config["KERNEL_OBJ_DIR"] + " &> " +
self.config["HEXER_DIR"] + "/builds/" + self.timestamp + "-buildlog")
def build_random_kernel(self, loop):
while True:
IOStopFile.get_stop_file(self.config)
self.generate_timestamp()
#self.kernel_make_clean()
self.kernel_make_randconfig()
self.kernel_make()
if not loop:
break
def build(self):
self.kernel_make_mrproper()
if self.options.mode == "brk":
self.build_random_kernel(self.options.loop)
def run(self):
self.check_dirs()
self.build()
--
Slawa!
N.P.S.
Chwała tobie, Szatanie, cześć na wysokościach
Nieba, gdzie królowałeś, chwała w głębokościach
Piekła, gdzie zwyciężony, trwasz w dumnym milczeniu!
Uczyń, niechaj ma dusza spocznie z Tobą w cieniu
Drzewa Wiedzy, gdy swoje konary rozwinie,
Jak sklepienie kościoła, który nie przeminie!
--